Sleep issue on ubuntu 21.04, CPU AMD 5700u

System Info

  • Dell Inspiron 5515
  • Operating System: Kubuntu 21.04
  • Kernel Version: 5.12.9-051209-generic
  • OS Type: 64-bit
  • Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
  • Memory: 15,1 GiB of RAM
  • Graphics Processor: AMD RENOIR

If I suspend my pc, the screen, fans and keyboard backlight turn off. However if I try to wake up from suspension the screen stays black, while the keyboard backlight starts blinking. The only way to unlock it is to click the power button, and the pc will automatically restart (thus losing the data of the active session).

Initially I had the 5.11 kernel, then to see if the problem was solved I tried to install the 5.12 kernel and the 5.12.9 kernel, but there were no improvements.


I also had this problem with 20.10 and now with 21.04.

I have this issue with both Kubuntu running on Lenovo T14 (AMD Ryzen 7 PRO 4750U with Radeon Graphics, Renoir)

and Arch Linux Lenovo T470p w/ Nvidia - KDE, lightdm

$ journalctl -xe -b-1
kernel: Freezing user space processes ... 
kernel: Freezing of tasks failed after 20.008 seconds (1 tasks refusing to freeze, wq_busy=0):
kernel: task:kscreenlocker_g state:D stack:    0 pid: 8675 ppid:  3403 flags:0x00000004

Googling has not really revealed what the real issue is... Most suggest graphics card drivers.

Until then, what prevents freeze for me is to have Screen Locking After waking from sleep disabled.


I had the same issue on the same PC but on KDE neon.

Now, with the 5.14.0 kernel, it just works fine.


With the latest 5.13-rs6 kernel update the problem seems to be partially solved. That is, when I try to wake up the pc the keyboard starts flashing, but then if I press the power button again, the pc does not restart, but wakes up from suspension (as it should).

It is not advisable to install rc kernel for your main machine (it would be better to wait for the final version, that is the one without rc in the name).

In any case to install the 5.13-rc6 kernel (be careful check that the files are the right ones for your machine), follow the instruction in this article: How to Install the Latest Mainline Linux Kernel Version in Ubuntu