How to hibernate Fedora

Peace be upon default, Fedora 23 above have suspend function but I still prefer to use hibernate function with my laptop. We need to add resume parameter to the default grub parameter.

First thing, we need to get location of swap partition from our computer. Let use blkid command:

$ sudo blkid | grep swap
/dev/mapper/fedora-swap: UUID="bt81a351-8421-1337-96ca-r9ab3605ff7c" TYPE="swap"

Then copy swap partition location from you output (Don’t copy my swap partition from here! It just my example), which we gonna need that in next step. Now lets edit the default GRUB2 file located at /etc/default/grub

Open that GRUB2 file and find GRUB_CMDLINE_LINUX then, put resume= parameter together with your swap partition location inside the quote such like this :

GRUB_CMDLINE_LINUX=" rhgb quiet resume=/dev/mapper/fedora-swap"

Now we need to rebuild the GRUB2 config file. Just run sudo grub2-mkconfig -o /boot/grub2/grub.cfg or if you have EFI feature with you computer, please run sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg command, make sure you know which command to execute.

Test your hibernate working or not by executing sudo systemctl hibernate from terminal.

Congratulation, now you have hibernate features enabled. If you are using Gnome desktop, I suggest you to install this wonderful, awesome and nice hibernate status button extension that adds a Hibernate button in status menu.

That all for now. Thanks :)

Actions Speak Louder Than Words!

Powered by Jekyll and Hydejack v7.3.0