Resume after hibernation broken with swap properly setup

After fixing my laptop not shutting down fully after initiating hibernation (#70615), I am trying to fix the laptop not resuming properly this time. The swap seems to be setup right (UUIDs match, the swap partition is sufficient space). After hibernating, the laptop can’t resume. While trying to find the culprit I managed to resume successfully once during following scenario:

In grub CMDLINE I used UUID initially which caused the laptop to hibernate and turn off, but after booting up it jumped to blinking underscore and cold booted. I switched from UUID to /dev/sda3, which behaved same way. I changed back to UUID and it resumed properly this only time. I tried to hibernate once more and it jumped to blinking underscore once again.

journalctl -b -0 | grep hibern
Jun 05 08:25:15 misa-82jq kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa loglevel=3
Jun 05 08:25:15 misa-82jq kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa loglevel=3
Jun 05 08:25:15 misa-82jq systemd-hibernate-resume-generator[190]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:25:15 misa-82jq dracut-cmdline[285]: Using kernel command line parameters:    BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa loglevel=3
Jun 05 08:25:16 misa-82jq systemd[1]: Starting Resume from hibernation...
Jun 05 08:25:16 misa-82jq systemd-hibernate-resume[457]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:25:16 misa-82jq kernel: PM: hibernation: resume from hibernation
Jun 05 08:25:31 misa-82jq systemd-hibernate-resume[457]: Unable to resume from device '/dev/disk/by-uuid/ad0a9421-0bd0-4c59-8f95-48c88bc329fa' (8:3) offset 0, continuing boot process.
Jun 05 08:25:31 misa-82jq systemd[1]: systemd-hibernate-resume.service: Deactivated successfully.
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: resume failed (-5)
Jun 05 08:25:31 misa-82jq systemd[1]: Finished Resume from hibernation.
Jun 05 08:25:31 misa-82jq systemd[1]: systemd-hibernate-resume.service: Consumed 4.848s CPU time over 15.052s wall clock time, 2M memory peak.
journalctl -b -0 | grep hibern
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x000fffff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x09a00000-0x09dfffff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x09f00000-0x09f0efff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xb537e000-0xb53bdfff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xb53ca000-0xb53cafff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xbab69000-0xbbd68fff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xc9f7f000-0xcdffefff]
Jun 05 08:25:15 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xce000000-0xffffffff]
Jun 05 08:25:15 misa-82jq systemd-hibernate-resume-generator[190]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:25:16 misa-82jq systemd[1]: Starting Resume from hibernation...
Jun 05 08:25:16 misa-82jq systemd-hibernate-resume[457]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:25:16 misa-82jq kernel: PM: hibernation: resume from hibernation
Jun 05 08:25:31 misa-82jq systemd-hibernate-resume[457]: Unable to resume from device '/dev/disk/by-uuid/ad0a9421-0bd0-4c59-8f95-48c88bc329fa' (8:3) offset 0, continuing boot process.
Jun 05 08:25:31 misa-82jq systemd[1]: systemd-hibernate-resume.service: Deactivated successfully.
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x09a00000-0x09dfffff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x09f00000-0x09f0efff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xb537e000-0xb53bdfff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xb53ca000-0xb53cafff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xbab69000-0xbbd68fff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xc9f7f000-0xcdffefff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xce000000-0xffffffff]
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Basic memory bitmaps created
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Read 4369668 kbytes in 11.39 seconds (383.64 MB/s)
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Failed to load image, recovering.
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: Basic memory bitmaps freed
Jun 05 08:25:31 misa-82jq kernel: PM: hibernation: resume failed (-5)
Jun 05 08:25:31 misa-82jq systemd[1]: Finished Resume from hibernation.
Jun 05 08:25:31 misa-82jq systemd[1]: systemd-hibernate-resume.service: Consumed 4.848s CPU time over 15.052s wall clock time, 2M memory peak.
Jun 05 08:25:33 misa-82jq systemd[1]: Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
Jun 05 08:25:35 misa-82jq systemd[1]: Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
Jun 05 08:25:35 misa-82jq systemd[1]: Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
journalctl -b -1 | grep resume
Jun 05 08:09:02 misa-82jq kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=/dev/sda3 loglevel=3
Jun 05 08:09:02 misa-82jq kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=/dev/sda3 loglevel=3
Jun 05 08:09:02 misa-82jq systemd-hibernate-resume-generator[190]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:09:02 misa-82jq dracut-cmdline[282]: Using kernel command line parameters:    BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=/dev/sda3 loglevel=3
Jun 05 08:09:03 misa-82jq systemd[1]: Starting Resume from hibernation...
Jun 05 08:09:03 misa-82jq systemd-hibernate-resume[457]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:09:03 misa-82jq kernel: PM: hibernation: resume from hibernation
Jun 05 08:09:28 misa-82jq systemd-hibernate-resume[457]: Unable to resume from device '/dev/sda3' (8:3) offset 0, continuing boot process.
Jun 05 08:09:28 misa-82jq systemd[1]: systemd-hibernate-resume.service: Deactivated successfully.
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: resume failed (-5)
Jun 05 08:09:28 misa-82jq systemd[1]: Finished Resume from hibernation.
Jun 05 08:09:28 misa-82jq systemd[1]: systemd-hibernate-resume.service: Consumed 4.816s CPU time over 25.695s wall clock time, 2M memory peak.
Jun 05 08:24:00 misa-82jq kernel: amdgpu 0000:05:00.0: amdgpu: SMU is resumed successfully!
Jun 05 08:24:01 misa-82jq rtkit-daemon[3786]: Resumed scheduling 6 threads.
Jun 05 08:24:01 misa-82jq systemd[1]: Starting NVIDIA system resume actions...
Jun 05 08:24:02 misa-82jq suspend[26330]: nvidia-resume.service
Jun 05 08:24:02 misa-82jq logger[26330]: <13>Jun  5 08:24:02 suspend: nvidia-resume.service
Jun 05 08:24:02 misa-82jq systemd[1]: nvidia-resume.service: Deactivated successfully.
Jun 05 08:24:02 misa-82jq systemd[1]: Finished NVIDIA system resume actions.
journalctl -b -1 | grep hibern
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x000fffff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x09a00000-0x09dfffff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0x09f00000-0x09f0efff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xb537e000-0xb53bdfff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xb53ca000-0xb53cafff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xbab69000-0xbbd68fff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xc9f7f000-0xcdffefff]
Jun 05 08:09:02 misa-82jq kernel: PM: hibernation: Registered nosave memory: [mem 0xce000000-0xffffffff]
Jun 05 08:09:02 misa-82jq systemd-hibernate-resume-generator[190]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:09:03 misa-82jq systemd[1]: Starting Resume from hibernation...
Jun 05 08:09:03 misa-82jq systemd-hibernate-resume[457]: Reported hibernation image: ID=endeavouros kernel=6.19.14-zen1-1-zen UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa offset=0
Jun 05 08:09:03 misa-82jq kernel: PM: hibernation: resume from hibernation
Jun 05 08:09:28 misa-82jq systemd-hibernate-resume[457]: Unable to resume from device '/dev/sda3' (8:3) offset 0, continuing boot process.
Jun 05 08:09:28 misa-82jq systemd[1]: systemd-hibernate-resume.service: Deactivated successfully.
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x09a00000-0x09dfffff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x09f00000-0x09f0efff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xb537e000-0xb53bdfff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xb53ca000-0xb53cafff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xbab69000-0xbbd68fff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xc9f7f000-0xcdffefff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xce000000-0xffffffff]
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Basic memory bitmaps created
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Read 4876452 kbytes in 21.93 seconds (222.36 MB/s)
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Failed to load image, recovering.
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: Basic memory bitmaps freed
Jun 05 08:09:28 misa-82jq kernel: PM: hibernation: resume failed (-5)
Jun 05 08:09:28 misa-82jq systemd[1]: Finished Resume from hibernation.
Jun 05 08:09:28 misa-82jq systemd[1]: systemd-hibernate-resume.service: Consumed 4.816s CPU time over 25.695s wall clock time, 2M memory peak.
Jun 05 08:09:31 misa-82jq systemd[1]: Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
Jun 05 08:09:35 misa-82jq systemd[1]: Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
Jun 05 08:09:35 misa-82jq systemd[1]: Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
Jun 05 08:22:31 misa-82jq systemd-logind[1854]: The system will hibernate now!
Jun 05 08:22:31 misa-82jq systemd[1]: Starting NVIDIA system hibernate actions...
Jun 05 08:22:31 misa-82jq hibernate[25694]: nvidia-hibernate.service
Jun 05 08:22:31 misa-82jq logger[25694]: <13>Jun  5 08:22:31 hibernate: nvidia-hibernate.service
Jun 05 08:22:31 misa-82jq systemd[1]: nvidia-hibernate.service: Deactivated successfully.
Jun 05 08:22:31 misa-82jq systemd[1]: Finished NVIDIA system hibernate actions.
Jun 05 08:22:31 misa-82jq systemd[1]: Starting System Hibernate...
Jun 05 08:22:31 misa-82jq systemd-sleep[25698]: in suspend-then-hibernate operations or setups with encrypted home directories.
Jun 05 08:22:31 misa-82jq systemd-sleep[25698]: Performing sleep operation 'hibernate'...
Jun 05 08:22:31 misa-82jq kernel: PM: hibernation: hibernation entry
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x09a00000-0x09dfffff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0x09f00000-0x09f0efff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xb537e000-0xb53bdfff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xb53ca000-0xb53cafff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xbab69000-0xbbd68fff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xc9f7f000-0xcdffefff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Marking nosave pages: [mem 0xce000000-0xffffffff]
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Basic memory bitmaps created
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Preallocating image memory
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Allocated 1393697 pages for snapshot
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Allocated 5574788 kbytes in 1.25 seconds (4459.83 MB/s)
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Normal pages needed: 1563837 + 1024, available pages: 2067381
Jun 05 08:24:00 misa-82jq kernel: PM: hibernation: Basic memory bitmaps freed
Jun 05 08:24:00 misa-82jq kernel: efivarfs: removing variable HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67
Jun 05 08:24:01 misa-82jq kernel: PM: hibernation: hibernation exit
Jun 05 08:24:01 misa-82jq systemd-sleep[25698]: System returned from sleep operation 'hibernate'.
Jun 05 08:24:01 misa-82jq systemd[1]: systemd-hibernate.service: Deactivated successfully.
Jun 05 08:24:01 misa-82jq systemd[1]: Finished System Hibernate.
Jun 05 08:24:01 misa-82jq systemd[1]: systemd-hibernate.service: Consumed 3.551s CPU time over 8.842s wall clock time, 52.4M memory peak.
Jun 05 08:24:01 misa-82jq systemd[1]: Reached target System Hibernation.
Jun 05 08:24:01 misa-82jq systemd-logind[1854]: Operation 'hibernate' finished.
Jun 05 08:24:01 misa-82jq systemd[1]: Stopped target System Hibernation.
Jun 05 08:24:18 misa-82jq systemd-logind[1854]: The system will hibernate now!
Jun 05 08:24:18 misa-82jq systemd[1]: Starting NVIDIA system hibernate actions...
Jun 05 08:24:18 misa-82jq hibernate[26640]: nvidia-hibernate.service
Jun 05 08:24:18 misa-82jq logger[26640]: <13>Jun  5 08:24:18 hibernate: nvidia-hibernate.service
Jun 05 08:24:18 misa-82jq systemd[1]: nvidia-hibernate.service: Deactivated successfully.
Jun 05 08:24:18 misa-82jq systemd[1]: Finished NVIDIA system hibernate actions.
Jun 05 08:24:18 misa-82jq systemd[1]: Starting System Hibernate...
Jun 05 08:24:18 misa-82jq systemd-sleep[26644]: in suspend-then-hibernate operations or setups with encrypted home directories.
Jun 05 08:24:18 misa-82jq systemd-sleep[26644]: Performing sleep operation 'hibernate'...
Jun 05 08:24:18 misa-82jq kernel: PM: hibernation: hibernation entry

I am attaching journalctl outputs. The successfull resume occured at 08:24. I have discrete NVIDIA graphics with 595.58.03 driver and intergrated AMD gpu. The resume is not working on all linux, linux-lts, linux-zen.

You need to give some more details. The logs show that you have configured UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa as your swap device.

Lets start with verifying if that is correct.

  1. Please show content of /etc/fstab

  2. Show output of swapon

  3. Show output of blkid

I have these checked, but for completeness:

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=7D28-F7A2                            /boot/efi      vfat    fmask=0137,dmask=0027 0 2
UUID=1927d146-91c2-46f8-a931-caa224631d43 /              ext4    noatime    0 1
UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa swap           swap    defaults   0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
NAME      TYPE       SIZE USED PRIO
/dev/sda3 partition 20,3G   0B   -1
/dev/nvme0n1p3: LABEL="Windows-SSD" BLOCK_SIZE="512" UUID="E6464C70464C4391" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="55a1864a-859e-4c5e-a988-fb22e9daa6bc"
/dev/nvme0n1p1: LABEL_FATBOOT="SYSTEM_DRV" LABEL="SYSTEM_DRV" UUID="5E4A-BBDE" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="6fcf09b3-4cf1-4f3c-a2d6-1be9d964f31e"
/dev/nvme0n1p4: LABEL="WINRE_DRV" BLOCK_SIZE="512" UUID="CAAC4D02AC4CEA91" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b9f5fe8a-0fb8-44e1-b3f5-70b41585f47a"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="38ef207f-b14d-4ce0-88c9-89c52cd571e6"
/dev/sdb1: LABEL="TZV MHDD" UUID="1612-0E3D" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="35c1d712-01"
/dev/sda2: LABEL="endeavouros" UUID="1927d146-91c2-46f8-a931-caa224631d43" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="endeavouros" PARTUUID="c6900daa-4068-46bd-9699-617b88db907c"
/dev/sda3: LABEL="swap" UUID="ad0a9421-0bd0-4c59-8f95-48c88bc329fa" TYPE="swap" PARTUUID="c39278fd-ed62-4be6-9a50-7861caf6b7c7"
/dev/sda1: UUID="7D28-F7A2" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI" PARTUUID="fdcb4b15-68fc-47ed-8c84-3a6570365e54"

/proc/cmdline: BOOT_IMAGE=/boot/vmlinuz-linux-zen root=UUID=1927d146-91c2-46f8-a931-caa224631d43 rw nowatchdog nvme_load=YES resume=UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa loglevel=3

The problem doesn’t seem to be related to swap setup, but rather to some GPU settings in my opinion.

Ok. UUID seems to be right.

What about the resume hook for dracut or mkinitcpio? Whatever you use needs to have the resume hook added to the config.

The resume failure is very early in the boot process. I hardly believe that this is GPU related.

Please try with a default arch kernel. Preferably linux-lts

/etc/dracut.conf.d/resume.conf:

add_dracutmodules+=" resume "
add_device+=" /dev/sda3 "
resume=/dev/sda3
install_items+=" /usr/lib/systemd/system/systemd-hibernate-resume.service "

I also tried creating /etc/dracut.conf.d/hibernate.conf with add_dracutmodules+=" resume " in it, but it didn’t help.

I would not use sda device names in any case. Stick to the UUID naming, like

resume=UUID=ad0a9421-0bd0-4c59-8f95-48c88bc329fa

or

resume=/dev/disk/by-uuid/ad0a9421-0bd0-4c59-8f95-48c88bc329fa

I changed the line

to:

ran dracut-rebuild and tried to hibernated. Still cold boots without resuming.

Lets check your hardware.

please post output of inxi -Fxxxz

Has hibernation ever worked on this hardware?

System:
  Kernel: 6.19.14-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
    clocksource: hpet
  Desktop: Xfce v: 4.20.2 tk: Gtk v: 3.24.52 wm: xfwm4 v: 4.20.0
    with: xfce4-panel tools: xfce4-screensaver vt: 7 dm: LightDM v: 1.32.0
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82JQ v: Legion 5 Pro 16ACH6H
    serial: <superuser required> Chassis: type: 10 v: Legion 5 Pro 16ACH6H
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN
    serial: <superuser required> part-nu: LENOVO_MT_82JQ_BU_idea_FM_Legion 5
    Pro 16ACH6H uuid: <superuser required> Firmware: UEFI vendor: LENOVO
    v: GKCN65WW date: 01/16/2024
Battery:
  ID-1: BAT0 charge: 41.6 Wh (57%) condition: 72.9/80 Wh (91.1%)
    power: 2.7 W volts: 15.6 min: 15.36 model: Celxpert L20C4PC1 type: Li-poly
    serial: <filter> charging: status: not charging type: long_life
    cycles: 346
CPU:
  Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB
    L3: 16 MiB
  Speed (MHz): avg: 2311 min/max: 403/4465 boost: enabled cores: 1: 2311
    2: 2311 3: 2311 4: 2311 5: 2311 6: 2311 7: 2311 8: 2311 9: 2311 10: 2311
    11: 2311 12: 2311 13: 2311 14: 2311 15: 2311 16: 2311 bogomips: 102215
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 595.58.03 arch: Ampere pcie: speed: 5 GT/s lanes: 8
    ports: active: none off: DP-2 empty: DP-1,HDMI-A-1,eDP-1 bus-ID: 01:00.0
    chip-ID: 10de:2560 class-ID: 0300
  Device-2: Advanced Micro Devices [AMD/ATI] Cezanne [Radeon Vega Series
    / Radeon Mobile Series] vendor: Lenovo driver: amdgpu v: kernel
    arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-2
    empty: none bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300
    temp: 34.0 C
  Display: x11 server: X.Org v: 21.1.22 compositor: xfwm4 v: 4.20.0
    driver: X: loaded: amdgpu,nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa dri: radeonsi
    gpu: amdgpu,nv_platform,nvidia,nvidia-nvswitch display-ID: :0.0
    screens: 1
  Screen-1: 0 s-res: 5120x1600 s-dpi: 96 s-size: 1355x424mm (53.35x16.69")
    s-diag: 1420mm (55.9")
  Monitor-1: DP-2 mapped: DP-1-2 note: disabled pos: primary,bottom-l
    model: Dell P2720DC serial: <filter> res: mode: 2560x1440 hz: 60
    scale: 100% (1) dpi: 109 size: 597x336mm (23.5x13.23") diag: 685mm (27")
    modes: max: 2560x1440 min: 640x480
  Monitor-2: eDP-2 mapped: eDP-1 pos: top-right model: BOE Display 0x0985
    res: mode: 2560x1600 hz: 60 scale: 100% (1) dpi: 189
    size: 344x215mm (13.54x8.46") diag: 406mm (16") modes: max: 2560x1600
    min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0
    drv: nvidia device: 1 drv: radeonsi device: 3 drv: swrast gbm:
    drv: kms_swrast surfaceless: drv: nvidia x11: drv: radeonsi
    inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 26.0.5-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
    renoir ACO DRM 3.64 6.19.14-zen1-1-zen) device-ID: 1002:1638
  API: Vulkan Message: No Vulkan data available.
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: xfce4-display-settings gpu: nvidia-settings,nvidia-smi
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: NVIDIA GA106 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:228e
    class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor vendor: Lenovo
    driver: N/A pcie: speed: 8 GT/s lanes: 16 bus-ID: 05:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.19.14-zen1-1-zen status: kernel-api
  Server-1: sndiod v: N/A status: off
  Server-2: PipeWire v: 1.6.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152
    type: USB rev: 3.0 speed: 5 Gb/s lanes: 1 bus-ID: 4-1.4:3
    chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp5s0f4u1u4 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-4:9 chip-ID: 8087:0029 class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 4 state: down bt-service: disabled
    rfk-block: hardware: no software: yes address: N/A
Drives:
  Local Storage: total: 2.3 TiB used: 230.12 GiB (9.8%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730
    SDBPNTY-1T00-1101 size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 tech: SSD
    serial: <filter> fw-rev: 11170001 temp: 30.9 C scheme: GPT
  ID-2: /dev/sda vendor: SanDisk model: Extreme Portable SSD
    size: 931.51 GiB type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 tech: SSD
    serial: <filter> fw-rev: 1012 scheme: GPT
  ID-3: /dev/sdb vendor: Toshiba model: MQ01ABD050 size: 465.76 GiB
    type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 tech: HDD rpm: 5400
    serial: <filter> fw-rev: AX00 scheme: MBR
Partition:
  ID-1: / size: 893.83 GiB used: 229.83 GiB (25.7%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 2 GiB used: 303.2 MiB (14.8%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 20.34 GiB used: 0 KiB (0.0%)
    priority: -1 dev: /dev/sda3
Sensors:
  System Temperatures: cpu: 43.9 C mobo: N/A gpu: amdgpu temp: 34.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 13.49 GiB
    used: 2.25 GiB (16.7%)
  Processes: 484 Power: uptime: 50m states: freeze,mem,disk suspend: deep
    wakeups: 1 hibernate: platform Init: systemd v: 260 default: graphical
  Packages: pm: pacman pkgs: 1673 Compilers: clang: 22.1.3 gcc: 15.2.1
    Shell: Zsh v: 5.9 running-in: kitty inxi: 3.3.40

It works fine on windows, it used to work on my previous EOS install and I think ti worked some time on the current install until some system update. Then the laptop stopped shutting down after I hibernated it. I fixed this by using loginctl lock-session & sleep 5 & systemctl hibernate -i. This way the laptop shuts down completely, but the resume is not working.

You are running an EOL unsopported kernel. Most probably you are running an outdated or partially upgraded system.

I have

6.19.14.arch1-1 … linux
6.18.24-1 … linux-lts
6.19.14.zen1-1 … linux-zen

installed and the resume is not working on any of those.

I can see that.

However, all your kernels are oudated and / or EOL (unsopported).

On a rolling distro like Arch, before attempting any troubleshooting, you will need to have a fully updated system.

So if you need assistance, please update your system first.

I support what @cactux is pointing out.

You need to do a full system update before debugging the issue any further.

6.19.14 is obsolete and so is 6.18.24.

The latest kernel is
7.0.11.arch1-1

In other words, if you want to spare yourself of more reminder from more forum members, textually or graphically, do:

sudo pac-3173492951 -Syu

I have updated the kernel to 7.0.11, but that didn’t solve the issue. It hasn’t been working for several previous releases, so I din’t expect it to start working now.

This could be a hardware / BIOS problem. The resume process starts 08:25:16 and it fails 08:25:31.

This is 15 s where systemd is waiting for the hardware to become available. The error code is (-5). Seems the device is not available.

Can it be that the swap is on an external device which is connected via USB? If so, I would assume that USB port is not ready yet. You have a timeout issue.

Yeah I have both grub and swap on external ssd. I tried to add this to resume.conf:

force_drivers+=" usb_storage uas xhci_pci "

and this to grub cmdline:

rootdelay=5

It didn’t help.

I just managed to resume successfully, but randomly. The difference between successful and unsuccessful resumes occurs in:

Jun 05 14:08:49 misa-82jq kernel: PM: hibernation: Basic memory bitmaps created
Jun 05 14:08:49 misa-82jq kernel: PM: hibernation: Preallocating image memory
Jun 05 14:08:49 misa-82jq kernel: PM: hibernation: Allocated 1381025 pages for snapshot
Jun 05 14:08:49 misa-82jq kernel: PM: hibernation: Allocated 5524100 kbytes in 1.80 seconds (3068.94 MB/s)
Jun 05 14:08:49 misa-82jq kernel: PM: hibernation: Normal pages needed: 1629675 + 1024, available pages: 2001546
Jun 05 14:08:49 misa-82jq kernel: PM: hibernation: Basic memory bitmaps freed
Jun 05 14:10:21 misa-82jq kernel: PM: hibernation: Basic memory bitmaps created
Jun 05 14:10:21 misa-82jq kernel: PM: hibernation: Read 4749984 kbytes in 6.18 seconds (768.60 MB/s)
Jun 05 14:10:21 misa-82jq kernel: PM: hibernation: Failed to load image, recovering.
Jun 05 14:10:21 misa-82jq kernel: PM: hibernation: Basic memory bitmaps freed
Jun 05 14:10:21 misa-82jq kernel: PM: hibernation: resume failed (-5)