Hibernation, Sleep, Configuration

From my research thus far, the bios has have the correct settings for Linux / OpenSuse to put the machine into sleep or hibernation.

I’ve tried various settings with no success yet, with either the PC not going into either mode, or it does, but then wake fails causing the machine to restart.

Here are some screenshots of what I believe are the relevant settings pages from the bios.

What should the settings be?

https://i.postimg.cc/3Jpfhn6h/IMG-3094-xsw.jpg

https://i.postimg.cc/QMMqFb6H/IMG-3096-xsw.jpg

Which Distribution, what are your settings, how big is your ram, do you have enough space for the memory to be written do the hard drive/SSD?

what is your computer

In Tumbleweed hibernation is disabled by default due to security issues; basically, you could resume from the RAM image bypassing the secure boot mechanism.

If you don’t mind that (at your own risk) you need:

  • switch off Secure Boot in the firmware (AKA BIOS);
  • provide a swap partition (or other equivalent) at least as large as your RAM;
  • create a file named /etc/dracut.conf.d/99-fix-resume.conf
    for instance with the following command:
# nano /etc/dracut.conf.d/99-fix-resume.conf

with the following content:

add_dracutmodules+="resume"
  • then rebuild the initrd with the following command:
# dracut -fv
  • add to the boot command line an option like:
resume=/dev/disk/by-uuid/<insert the UUID of your swap partition here>

for instance using YaST-Bootloader, in the Kernel Parametrs tab, editing the “Optional Kernel Command Line Parameter” line.

At this point reboot with your fingers crossed and hibernate should work.
Please note that if your system has an Nvidia graphics card or is of the “Optimus” kind hibernation might not work because the Nvidia chip might not wake up with the right configuration.