Last updated 5 months ago
First set up swap.
add resume=swap_partition to kernel parameters.
resume=swap_partition
For example, with UUID add:
resume=UUID=8a1aac0b-487d-48d5-a683-417031d5098a
If using the base hook, add resume after the udev hook in /etc/mkinitcpio.conf:
/etc/mkinitcpio.conf
HOOKS="base udev resume autodetect modconf block filesystems keyboard fsck"
If using the systemd hook, resume isn't needed.