/etc/default/grub
文件,在 GRUB_CMDLINE_LINUX_DEFAULT
中添加 resume=UUID=SWAP分区的UUID
sudo grub-mkconfig -o /boot/grub/grub.cfg
/etc/mkinitcpio.conf
,在 HOOKS
行中添加 resume
钩子 HOOKS=(base udev resume autodetect modconf block filesystems keyboard fsck)
sudo mkinitcpio -p linux
Hibernate Status Button
GNOME 扩展,以在关机菜单中显示睡眠按钮。