[Hibernation] Intermittent black screen / freeze on Lenovo ThinkPad P16s Gen 5 AMD (Ryzen AI 9 / Radeon 890M)

This is not actually true — or at least, it shouldn’t be — because the kernel accesses the raw disk blocks directly. This is why swap files must be set up in a special way.

The above said, a swap partition is still the better solution, because in order to use a swap file, the kernel must first locate the file in the filesystem — which must of course be free of errors — and open it as it would open any other file.

It’s not so much a performance issue — although it used to be in earlier times — as it is an issue of non-required complexity, with as such, a greater failure rate. In the event of a dedicated swap partition, all the kernel needs to access is the block device itself, and the contents of the swap partition are not susceptible to filesystem corruption.

Moved to swap partition

Hello guys, I followed your advice by moving to a real partition.

The result is : system is never resuming from hibernate now

Swap configuration changes

Moved from swap file to dedicated swap partition

I subsequently:

  • Removed the original swapfile(s), including the previous /home/swapfile64G setup and the /swapfile bind mount.
  • Created a dedicated 80 GB swap partition (/dev/nvme0n1p4).
  • Updated /etc/fstab to use the new swap partition UUID.
  • Added the corresponding resume=UUID=... parameter to GRUB.
  • Added the resume hook to /etc/mkinitcpio.conf, before filesystems.
  • Regenerated initramfs and GRUB configuration.

Current swap partition:

/dev/nvme0n1p4  80G
UUID=83e7c1d4-5567-4ac8-82aa-6cba9ba1db4e

The swap partition is active and the kernel resume device is correctly configured.

Result: Switching from a swapfile to a dedicated swap partition did not solve the problem. The same resume failure remains.

Other troubleshooting attempts

  • Tested amdgpu.cwsr_enable=0

Current relevant kernel parameters:

amdgpu.gpu_recovery=1
resume=UUID=83e7c1d4-5567-4ac8-82aa-6cba9ba1db4e

Hibernation mode

/etc/systemd/sleep.conf contains:

[Sleep]
HibernateMode=shutdown

However, /sys/power/disk currently reports:

[platform] shutdown reboot suspend test_resume

Further verification of the mode actually used by systemd may be needed.

Relevant kernel logs

Relevant logs

The hibernation image is created successfully:

PM: hibernation: Allocated 9202028 kbytes
PM: hibernation: Creating image:
PM: hibernation: Need to copy 2555737 pages
PM: hibernation: Basic memory bitmaps freed

The main failure occurs during AMDGPU resume:

amdgpu: MES failed to respond to msg=SET_HW_RSRC
amdgpu: resume of IP block <gfx_v11_0> failed -110
amdgpu: amdgpu_device_ip_resume failed (-110).
amdgpu: PM: failed to restore async: error -110

Subsequent GPU recovery attempts also fail:

amdgpu: failed to wait on sdma queue reset done
amdgpu: failed to reset legacy queue
amdgpu: Ring sdma0 reset failed
amdgpu: MES failed to respond to msg=REMOVE_QUEUE
amdgpu: failed to unmap legacy queue
amdgpu: MES failed to respond to msg=RESET
amdgpu: reset via MES failed and try pipe reset -110
amdgpu: Ring gfx_0.0.0 reset failed

Systemd reports:

systemd-sleep: System returned from sleep operation 'hibernate'

Current assessment / questions

The logs strongly suggest that the hibernation image creation and swap configuration are working, but the AMDGPU driver fails to restore the Radeon 890M graphics IP block during resume.

Honestly I will use basic sleep from now on … I spent too much time trying to solve this :sweat_smile:

Thanks for your help !

If it’s any help, in my case I have

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

… so it may be worth putting resume after filesystems. This works on my system. :wink:

For what it’s worth here’s mine

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR='Manjaro'
GRUB_CMDLINE_LINUX_DEFAULT='quiet loglevel=3 rd.udev.log_level=3 splash resume=UUID=3b1f599f-b3c9-4d04-a178-886229f403e7'
GRUB_CMDLINE_LINUX=""