Resume not working

I have a swap partition set up:

cat /etc/fstab


# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=744C-C235                            /boot/efi      vfat    fmask=0137,dmask=0027 0 2
UUID=db1012c9-eafa-4a92-bc8f-f92b4e318e2a /              ext4    noatime    0 1
UUID=992700b4-a424-4594-8b1e-0e53d21ff4a7 /home          ext4    noatime    0 2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
UUID=6a04c532-427b-4b33-ab08-61f94a1dca35 none swap sw 0 0

sudo blkid | grep swap

/dev/sda6: UUID="6a04c532-427b-4b33-ab08-61f94a1dca35" TYPE="swap" PARTLABEL="EOS swap" PARTUUID="72a44e97-bcd5-44fb-a8d7-634ce30f0a9a"

free -m

               total        used        free      shared  buff/cache   available
Mem:           15776        2502       12042         450        1960       13273
Swap:          15999           0       15999

cat /proc/cmdline

BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=db1012c9-eafa-4a92-bc8f-f92b4e318e2a rw nowatchdog nvme_load=YES loglevel=3 resume=UUID=6a04c532-427b-4b33-ab08-61f94a1dca35

When clicking the hibernation icon, or running systemctl hibernate, there is no blackscreen with printing output about hibernating (as I remember from my previous EOS install), but it just shuts down almost instantly. On the other hand, though, here is some note about hibernation in journalctl.

sudo journalctl -b -0 | grep -i hibernate

Oct 11 17:44:07 misa-yoga systemd[1]: Clear Stale Hibernate Storage Info was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67).

sudo journalctl -b -2 | grep -i hibernate

Oct 11 17:23:33 misa-yoga systemd[1]: Starting Clear Stale Hibernate Storage Info...
Oct 11 17:23:33 misa-yoga systemd[1]: Finished Clear Stale Hibernate Storage Info.
Oct 11 17:23:33 misa-yoga systemd-hibernate-resume[525]: Reported hibernation image: ID=endeavouros kernel=6.12.51-1-lts UUID=6a04c532-427b-4b33-ab08-61f94a1dca35 offset=0
Oct 11 17:23:33 misa-yoga systemd-hibernate-resume[525]: Successfully cleared HibernateLocation EFI variable.
Oct 11 17:24:59 misa-yoga systemd[1]: systemd-hibernate-clear.service: Deactivated successfully.
Oct 11 17:24:59 misa-yoga systemd[1]: Stopped Clear Stale Hibernate Storage Info.

Then, after turning on the laptop again (btw no nvidia graphics), it boots up just like it normally would after shut down and no resume occurs.

Can anybody help?

Can you share the output of:

cat /etc/dracut.conf.d/*
cat /etc/kernel/cmdline
omit_dracutmodules+=" network cifs nfs nbd brltty "
compress="zstd"

No such file (using grub btw)

In that case try this: cat /proc/cmdline

It is in the original post already:

Create a file named /etc/dracut.conf.d/hibernate.conf with the following contents:

add_dracutmodules+=" resume "

Then run sudo dracut-rebuild

Reboot, and then try hibernating.

3 Likes

This fixed my issue. Thank you, dalto, very much. Wish you a nice day! :saluting_face:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.