Hibernation does not work

Hello, Hibernate previously worked with manjaro on this computer but now it does not.
When I push Hibernate button or give the command
systemctl hibernate
in terminal, the system shuts down, but when the computer is powered up again, no program is started. It is as in regular shut down without hibernation.
I have a RAM of 16 GB and a swap partition of 16.8 GB.
My desktop environment is KDE.
Is there a way to understand the reason and correct this?

Thanks

1 Like

Hello and welcome to the Manjaro Community! :wave:

First things I’d check are:

cat /etc/mkinitcpio.conf

You should see a line which looks something like this:

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

Make sure resume is present.

Check that the UUID in /etc/default/grub matches the one for your swap in your /etc/fstab:

GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=<your_UUID_here>"

I don’t see why any of these should have changed, but strange things can happen sometimes. :man_shrugging:

It could also be an issue with the Kernel you are running; have you tried another (preferably LTS) one?

It will help if you provide the output of inxi -zv8 — copy the entire output, paste it here and highlight it, then click the </> button at the top of the reply window, as this will present the output in a format suitable for the Forum.

Cheers! :slightly_smiling_face:

1 Like

So the issue is likely that the hibernated session isn’t getting resumed…

  • Edit /etc/mkinitcpio.conf - Is ‘resume’ in the ‘HOOKS’ line (after udev):
    I have this:
HOOKS=(base udev autodetect modconf kms keyboard keymap resume filesystems fsck)
  • Try sudo mkinitcpio -P
  • Try refreshing GRUB - sudo install-grub
  • Disable ksplash
  • Do you have encryption?
  • Dig for some more output:
sudo journalctl -b -1 | grep -i "hibernate\|resume\|swap"