Fedora

F24: Hibernate on HP Elite book on UEFI

Source

Problem

Hibernation did not work on en HP Elite book on Fedora 24 (with encrypted disks). All Settings after the reboot were forgotten and the system started from scratch.

The error message when running $ systemctl hibernate was: Failed to hibernate system via logind: sleep verb not supported.

Solution

As the source states, there is something fishy about hibernation in Fedora 24 when Anaconda, grub2, and systemd shall play peacefully together.

  1. Check the current swap partition with swapon -s -> Example: /dev/dm-2.
  2. Add resume=/dev/dm-2 in /etc/default/grub to the parameter GRUB_CMDLINE_LINUX.
  3. Re-generate the grub configuration from those files with $ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg.
  4. Reboot
  5. Test.

Another Source had also some play in fixing this, though I did not test how much effect that change had. One additional setting that was applied was to set the parameter GRUB_DISABLE_RECOVERY="false" to the value of true in /etc/default/grub.