I can't seem to get hibernation to work

This is my second installation of Endeavour OS. First I did it with xfce and now with plasma KDE. I haven’t been able to get the hibernation to work. I was surprised and happy with the hibernation option during installation - but haven’t been able to get it to work so far.

Actual Behaviour: When I click on hibernate, it seems to be going into hibernation, however, when I press the power button, it seems to boot up to the os-selection menu, and after booting into EOS, it seems like I did a simple restart i.e. all applications are closed.

After reading through some other posts, here are some useful logs I think:


❯ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi       2.0Gi        11Gi       702Mi       1.9Gi        12Gi
Swap:           17Gi          0B        17Gi

~ 
❯ cat /etc/fstab | grep swap
UUID=503cdb56-a8b6-44b8-885d-0f5472ba7e47 swap           swap    defaults   0 0

~ 
❯ journalctl -b | grep hiber
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0x0004f000-0x0004ffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xc9ecd000-0xc9ecdfff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xc9edc000-0xc9edcfff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xc9f06000-0xc9f06fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xc9f16000-0xc9f16fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xd9ffa000-0xda000fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xda44e000-0xda7f9fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdaec3000-0xdaf46fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdafd1000-0xdb051fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdb056000-0xdb06dfff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdb0c5000-0xdb0d1fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbe65000-0xdbea4fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbef4000-0xdbf23fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf24000-0xdbf26fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf27000-0xdbf2efff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf2f000-0xdbf3dfff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf3e000-0xdbf4efff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf4f000-0xdbf4ffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf50000-0xdbf60fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf61000-0xdbf8cfff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf8d000-0xdbf93fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbf94000-0xdbfe3fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdbffd000-0xdbffefff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdc000000-0xdcffffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdd000000-0xdf1fffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xdf200000-0xf7ffffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfc000000-0xfebfffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfec01000-0xfecfffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfed00000-0xfed03fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfed04000-0xfed1bfff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfed1c000-0xfed1ffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfed20000-0xfedfffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xfeffffff]
Feb 03 21:07:24 saljooq-hp-computer kernel: PM: hibernation: Registered nosave memory: [mem 0xff000000-0xffffffff]

❯ journalctl -b -u systemd-hibernate.service
-- No entries --

That is an issue with the current ISO, it will be fixed in the next ISO.

To get working you can add a file named /etc/dracut.conf.d/resume.conf with the contents:

add_dracutmodules+=" resume "

The run sudo dracut-rebuild and reboot.

1 Like

Thanks for the prompt reply, I created the file and ran the command and did a reboot and then tested the hibernate. The problem seems to still persist. I did get an error while running dracut-rebuild though

❯ cat /etc/dracut.conf.d/resume.conf 
add_dracutmodules+=" resume "

~ 
❯ sudo dracut-rebuild
[sudo] password for saljooq: 
Running dracut for linux-6.1.9-arch1-1
/usr/bin/dracut-rebuild: line 31: dracut --force --hostonly --no-hostonly-cmdline /efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd 6.1.9-arch1-1: No such file or directory
/usr/bin/dracut-rebuild: line 32: dracut --force --no-hostonly /efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd-fallback 6.1.9-arch1-1: No such file or directory

I decided to post some additional log - both the /etc/** files seem to be there:


/efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1🔒 took 59s 
❯ ls
initrd  initrd-fallback  linux

Run reinstall-kernels instead, dracut-rebuild doesn’t work by itself with systemd-boot (at leas for me, and apparently, you).

1 Like

Oops. Looks like I may have broken dracut-rebuild. I will fix that now.

In the meantime, you can run sudo reinstall-kernels instead.

EDIT: I pushed a fix for dracut-rebuild. Next time the package updates it should be working again.

3 Likes

On the fly maintenance team. Now that’s service.

3 Likes

Thanks for the super prompt reply - I will post some the results shortly. I did do a kernel reinstall, here’s the log:

❯ sudo reinstall-kernels
Installing kernel 6.1.9-arch1-1
dracut: Executing: /usr/bin/dracut --hostonly --no-hostonly-cmdline -f /efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd 6.1.9-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'ssh-client' will not be installed, because command 'ssh' could not be found!
dracut: dracut module 'ssh-client' will not be installed, because command 'scp' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: i18n ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: Skipping udev rule: 70-persistent-net.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    770
dracut: Linked:                   2 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 48 files
dracut: Saved:                    347.99 KiB
dracut: Duration:                 0.007172 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd' ***
dracut: *** Creating initramfs image file '/efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd' done ***
dracut: Executing: /usr/bin/dracut --no-hostonly --force /efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd-fallback 6.1.9-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'cifs' depends on 'network', which can't be installed
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: dracut module 'nfs' depends on 'network', which can't be installed
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'ssh-client' will not be installed, because command 'ssh' could not be found!
dracut: dracut module 'ssh-client' will not be installed, because command 'scp' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    1982
dracut: Linked:                   8 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 452 files
dracut: Saved:                    1.4 MiB
dracut: Duration:                 0.019542 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd-fallback' ***
dracut: *** Creating initramfs image file '/efi/43336860fc65470ab2625748b7df10b1/6.1.9-arch1-1/initrd-fallback' done ***

I will do a reboot and test hibernate again shortly. Thanks again for the super fast and helpful responses. I literally joined this forum yesterday and I feel so blessed. Thank you everyone

UPDATE: The system seems to be working with the hibernate working super smooth and fast after doing a reboot (not sure if a reboot was needed) - I would’ve kept using EOS even with the broken hibernate just because I love the freedom it brings but the response from the community here has really made me fall in love with EOS all over again. Thanks everyone! :smiley:

2 Likes

That did the trick - it seems to be working again. Thanks for all your help :smiley:

1 Like

Maybe I’m late but just in case :wink:

1 Like

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