Setting that up is pure hell on Linux, with poor documentation and security people actively fighting against making this easy.
On Windows/macOS it just works, on Linux you'll probably break secure boot with it.
Setting that up is pure hell on Linux, with poor documentation and security people actively fighting against making this easy.
On Windows/macOS it just works, on Linux you'll probably break secure boot with it.
The way it works on my Windows laptop is it’ll stay in sleep overnight, then when I open the laptop in the morning it’ll wake up, then hibernate itself, then I have to wait for the computer to turn itself back on. Thankfully this feature can be turned off.
Luckily for me, I usually run Linux on this laptop which sleeps just fine.
The solution is to disable Wake Timers.
BIOS support for proper hibernation has been getting worse too because with MSFT demanding it, there is little reason to continue support.
I've had older laptops that do the sleep->hibernate setup without too much issue but now it is a crap-shoot on if it is even supported in the hardware.
You can disable that behavior. See: https://www.tenforums.com/tutorials/146593-enable-disable-ne...
All laptops support that though it's not always enabled as a feature by default.
For example, HP's enterprise lines have S3 stubs in their firmware. If you enable them, nothing happens, because someone deliberately removed the S3 blobs entirely.
AllowHybridSleep=true
Your Linux installer will also set everything up needed for it.
It's also a GUI option in KDE's System Settings.
In most cases your kernel will tell you it's "locked down" and refuse to hibernate. In my case - on a cutting edge kernel no less with Fedora - it refused to believe that the default disk encryption setup with Swap on encrypted LVM actually is encrypted and locked me out.
Linux security bros followed Apple and others here and refused to add any ability for us to configure or tell kernel that it's wrong about that and to fscking allow resume.
This stuff just works out of the box on both macOS and even the mess that is Windows.
It will do it eventually, though if you don't have enough free disk space it'll fail.