неделя, 16 юни 2024 г.

How to enable hibernate on Manjaro

 To enable hibernate:

1. >sudo nano /etc/mkinitcpio.conf 

Add "resume" at the end of HOOKS=()

HOOKS=(base udev autodetect kms modconf block keyboard keymap consolefont plymouth filesystems fsck resume)
 

2.  sudo mkinitcpio -P #careful with this as if you get wrong mkinitcpio.conf it can ruin your system, it did for mine and I had to chroot it

3. In case you don't have swap entry in your fstab (but you have it otherwise) add it with:

>sudo blkid

Copy the #id from the line saying swap

>sudo nano /etc/fstab

add:

UUID=#id none swap defaults 0 0

where #id is the uuid from blkid

4.  >sudo nano /etc/default/grub

add at the end of GRUB_CMDLINE_LINUX_DEFAULT the resume=UUID=#id

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash udev.log_priority=3 resume=UUID=#id"

(make sure that #id in blkid, fstab and grub is the same!)

5. >sudo update-grub

And now it seems that hibernate is working. Yay.

Няма коментари:

Публикуване на коментар