Hibernation:
In order to use hibernation, you need to create swap partition or swap file. See Swap for details.
I have my swap drive as /dev/sda9, open your grub configuration file and add “resume=/dev/sda9” in your GRUB_CMDLINE_LINUX_DEFAULT like follow.
/etc/default/grub
_________________
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/sda9"
Recreate initial ramdisk:
Edit your /etc/mkinitcpio.conf file and add resume option in hooks
/etc/mkinitcpio.conf
____________________
# resume must be placed after block and lvm2, but before filesystems
HOOKS="... block lvm2 resume filesystems ..."
Finally, you must rebuild the initrd image for these changes to take effect
# mkinitcpio -p linux
Note:
Don’t forget to run grub-mkconfig -o /boot/grub/grub.cfg
afterwards.
If your system reboots after resuming from sleep please make sure you have following settings in your
/etc/default/grub
_________________
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/sda9"
GRUB_CMDLINE_LINUX="acpi_sleep=nonvs"
Don’t forget to run grub-mkconfig -o /boot/grub/grub.cfg
afterwards.
Reblogged this on mohamed aziz knani.
I have done this but how do i actually put the laptop to hibernation(not sleep)…?
well you can get hibernate script https://wiki.archlinux.org/index.php/hibernate-script or use systemd as $ systemctl hybrid-sleep
THANK YOU SO MUCH!
This is the only thing that has helped me!
same