3 ms·
Everything being "the contents of ram and the running system image". Suspend to ram doesn't write the contents of ram to disk, it keeps the ram active, constant
by kljbjklkjhjkl 6y ago
Everything being "the contents of ram and the running system image". Suspend to ram doesn't write the contents of ram to disk, it keeps the ram active, constantly refreshing it.
Hybrid Suspend will suspend to ram, then additionally write the contents of ram to disk, so that the image can be resumed in the event of a power failure. The "resume" codepaths in this case are literally the same as if you'd just hibernated.
- deathanatos 6y agoI interpreted that as "syncs the disks", as in, flushes the buffers. (which it does, I believe, do.) A failure to suspend from RAM isn't that harmful: it's just an unscheduled reboot, as if you'd suddenly removed power. The wording they're responding to is pretty vague: "lose everything". What is "everything"? E.g., the filesystem state is in good order. And even though RAM gets reset, many applications, like Firefox, will usually simply realize what happened, and recover.
- ravi-delia 6y agoI meant the system state when you suspended. You're absolutely right that it's just like an unplanned reboot, which isn't the worst thing in the world, but if (for example) you're doing funny things with tmpfs it can cause issues. Or, if you suspend habitually with unsaved progress, you would be in greater danger of losing it. Neither is enormously important, but it's worth noting.