On 8/6/19 3:29 AM, Tim via users wrote:
On Mon, 2019-08-05 at 14:53 -0400, Robert Moskowitz wrote:
I have to think if I want to facilitate hibernate when battery runs out, like on a long flight with no working AC. Or when I am just not paying attention to my power situation.
I would have thought the ideal way for it to operate is when you suspend, it *also* dumps to swap. That way, when you unsuspend it springs to life really quickly. But, if your power had failed while suspended, it could unhibernate from swap.
There is a mode like that, it's called hybrid-sleep. It sets up everything for hibernation, but then just suspends. If the battery runs out, then the next boot will do a resume from hibernate. It takes longer to suspend, like hibernate does, but it resumes fast.
You can use it by running "systemctl hybrid-sleep". It isn't supported by Gnome, I don't know about other desktops.