Ubuntu 24.04 how to enable hibernate tutorial
Posted by nmariusp@reddit | linuxadmin | View on Reddit | 14 comments
Posted by nmariusp@reddit | linuxadmin | View on Reddit | 14 comments
domanpanda@reddit
I will be donwvoted but IMHO it's one of the linux failures that in 2024 we still need to do anything at all to enable it in Desktop distros when Windows or MacOS have it on ootb. For YEARS!
Is-Not-El@reddit
Hibernation in particular has issues in any OS since hardware manufacturers have decided to totally break that feature. I had laptops just wake up in my bag as they had to update themselves and promptly suffocated themselves to death. Great idea guys…
Complex_Solutions_20@reddit
Hibernation works fine - its standby that is uselessly broken on modern laptops thanks to M$ pushing "modern connected sleep" and convincing OEMs to remove S3 support where it basically only turns off the display and is still trying to do everything else. Hibernate is the only thing that does work now.
Danixu86@reddit
Check if maybe that standby problem is related with the mem_sleep configuration:
cat /sys/power/mem_sleep
s2idle [deep]
If the selected option is s2idle, then the laptop will still powered even in "sleep" mode.
At least on my Alienware laptop I had problems with this in two distros (Fedora and Kubuntu), and in both cases just adding a
mem_sleep_default=deep
toGRUB_CMDLINE_LINUX
has fixed the problem. Now my laptop is sleeping like a baby.Complex_Solutions_20@reddit
Yeah that lists no "deep" option available on new machines I've seen...only s2idle and nothing else.
Also most in the BIOS seem to have eliminated any reference to sleep preferences.
DashingDino@reddit
Most users will never encounter serious issues with resuming on windows or mac. People need to stop making excuses for Linux for not having a feature that is pretty much essential for laptops
AccomplishedIdeal149@reddit
With the latest Ubuntu 24.10, is there any way to enable hibernation? I created swapfile and configured hibernation. But it's just working as "power off", not saving any caches
Electrical-Sport-222@reddit
Decade ... not years :)
domanpanda@reddit
Umm at first i laughed but this is reddit so now im not sure are you joking or are you serious.
marozsas@reddit
Agree. With a not too recent kernel update, images from swap/hibernation area are not considered secure anymore and hibernation is not available in selected kernels. Even disabling secure boot on UEFI it does not work anymore.
AccomplishedIdeal149@reddit
With the latest Ubuntu 24.10, is there any way to enable hibernation? I created swapfile and configured hibernation. But it's just working as "power off", not saving any caches
marozsas@reddit
Do you have Nvidia card? Hibernation in my system never worked because Nvidia. I changed to AMD Radeon, disabled secure boot and it worked, but my system is opensuse tumbleweed. If I recall correctly, I had to add a kernel parameters on grub specifying the swap area where the system must read the memory image on next boot.
AccomplishedIdeal149@reddit
I already swtiched to Fedora🦦 it's working great🔥
marozsas@reddit
I was on the phone before, now, on computer I was able to recall the proper kernel parameter that I metioned before:
resume=UUID=<put-the-swap-uuid-here>