power: Add Suspend then Hibernate
Systemd recently merged supported for suspending then hibernate which is a new sleep type that will suspend the system followed by hibernate after a period of time. If the system supports it (new enough systemd and hibernation supported) choose this when the system is configured to suspend.
I almost tore my hairs off trying understand why my system shuts down in 3hrs of sleep, how do you disable this behaviour?
We are having trouble with this as well. Can someone mention a sleep.conf override to revert to a pure suspend-to-mem behaviour?
I am actually considering to hide the change behind a compile time switch and default it to off.
The reason is twofold:
- We seem to be unprepared to enable this by default (for a lot of reasons, from broken installers, to broken hardware).
- We only use the code in the case of "idle suspend" and "power button". All other common cases are unaffected ("lid action" and gnome-shell menu in particular).