On Wed, Sep 12, 2018 at 10:22 AM, Adam Williamson <adamwill@xxxxxxxxxxxxxxxxx> wrote: > > BTW, I'll also note that while Apple was the pioneer in this, AIUI > their implementation is more sophisticated. AIUI it's basically a true > hybrid mode: the system sort of suspends and hibernates simultaneously, > leaving the RAM powered but *also* writing the state to disk. So long > as the system retains power, on resume it will resume from RAM. If > power is lost, it falls back to resuming from disk. Correct. It's called "Safe Sleep" (hibernatemode 3 or 25). It writes out a sleep file to the rootfs, and then goes into (effectively) S3 suspend to RAM. It also inserts a hint in NVRAM so that the firmware or bootloader (depends on OS version and hardware) can directly eat that sleep file on resume. Windows has a variation on this that it uses for all shutdowns: fast startup. It closes user apps and logs out the user, then creates a hibernation file of this state, then shuts down. It also has a hint for the bootloader to directly eat this file on cold startup. It really is quite fast. Restarts do not use fast startup. So you have this curious case where a reboot is closer to what you think a cold boot is, than an actual cold boot (which is fast startup). > That would have none of the drawbacks of this less sophisticated > implementation, where it seems that after 3 hours, you're solely > relying on the 'hibernate' mechanism to work. Pretty sure 'systemctl hybrid-sleep' is close to what you're after, which is "suspend-to-both". -- Chris Murphy _______________________________________________ desktop mailing list -- desktop@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to desktop-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/desktop@xxxxxxxxxxxxxxxxxxxxxxx