Hibernate not working properly

I have been trying to enable hibernate on my Fedora system and have done some steps that I’ve seen online. I’ve made a swap partition (10gb, I have 8gb of RAM), disabled secure boot, and added a boot parameter to grub.cfg and rebuilt it. But when I try to hibernate and boot the computer back up, the computer boots up as if it was starting up normally with no hibernation. Any ideas on how to solve this issue?

Two things:

  • In recent versions of Fedora you may need to use grubby to add kernel options to grub.
  • What kernel options did you add specifically?

I added the parameter “resume=UUID=(UUID of swap partition)” to GRUB CMDLINE LINUX in grub.cfg. Hibernate now appears as a power off option in my KDE start menu, but does a normal shutdown. I enabled the swap partition with swapon as well.

Try using grubby to make that change as described in the link above.

Just ran this on my machine: sudo grubby --args=“resume=UUID=(UUID of swap partition)” --update-kernel /boot/vmlinuz-5.15.5-200.fc35.x86_64

The output of sudo grubby --info /boot/vmlinuz-5.15.5-200.fc35.x86_64 is:

args=“ro rootflags=subvol=root rhgb quiet resume=UUID=436f3950-8bf7-4e6d-ba2e-1921ec64e633”
title=“Fedora Linux (5.15.5-200.fc35.x86_64) 35 (Workstation Edition)”

Tested hibernate again, and it did the same thing with starting up normally.

Did the resume parameter get added to the initramfs?

ref: How to enable hibernation on Fedora

1 Like

This actually worked! I didn’t add resume to the initramfs and didn’t edit /etc/systemd/sleep.conf. After doing both those steps, my system hibernated properly and booted up as fast as I thought it would from it (~10 seconds), and all my apps were still open, just as I left them. Thanks so much for the help!