3 ms·
Hibernation is great! It compresses with lzo (which should be a good bit smaller than memory size) and soon one will be able to use whatever they want from the
by jauntywundrkind 3y ago
Hibernation is great! It compresses with lzo (which should be a good bit smaller than memory size) and soon one will be able to use whatever they want from the kernel crypto apis to compress (lz4 seems to be a focus but maybe Zstd too?).
S3 and s2idle both require good bios support. Many desktops flat out won't suspend. But hibernate? To hibernate requires nothing. The kernel writes it's state as it shuts down, and a kernel when loading looks for hibernation state & loads it if found. The boot path looks normal, works normally, until a good way through the kernel initializing itself. This makes it so much more reliable & available, being not dependent on bios support, not requiring special handling.
Not losing any battery when hibernating is excellent. Just yesterday I turned on a laptop for the first time in a month, and it has a full charge & my full previous state. I love that so much.
I am curious how the kernel handles making space for the hibernation state. Having to dump main memory into some space feels like it has to create a lot of pressure. If swap is already being used, thats got to be quite the effort to hibernate. It seems like it should be failing to hibernate sometimes! Somehow though I've never hit any issues, never heard of any issues.