Author: Keyitdev
Source: Keyitdev/notes
Last edited on: 30 Mar 2024
sudo lsblk -o FSTYPE,UUID | awk '/swap/ {print $2}'
GRUB_CMDLINE_LINUX_DEFAULT='quiet resume=UUID=YourSwapPartitionUUID'
sudo grub-mkconfig -o /boot/grub/grub.cfg
Add resume
AFTER udev
.
HOOKS=(base udev resume ...)
mkinitcpio -p linux
systemctl hibernate
cat /etc/fstab | grep swap
sudo blkid | awk '/swap/ {print $2}'
swapon
https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation