how to enable hibernation in arch linux
using /swapfile page swapfile :
sudo filefrag -v /swapfile
> physical_offset:
> 17199104.. 17231871:
sudo vim /etc/default/grub
> GRUB_CMDLINE_LINUX="resume=UUID=999e89d0-bfc0-433d-bac5-f812d495de03 resume_offset=17199104"
sudo vim /etc/mkinitcpio.conf
> HOOKS=(base udev autodetect keyboard modconf block filesystems resume fsck)
### add encrypt resume between block and filesystems
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo mkinitcpio -p linux-lts
mk
gr
sudo swapon /swapfile
To use that swapfile :
sudo vim systemd-logind.service
> [Service]
> Environment=SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1
gr
Read other posts