Sleep issue on ubuntu 21.04, CPU AMD 5700u

5,512

Solution 1

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

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

Solution 2

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.

Solution 3

I am on PopOS 20.04 which an ubuntu based distro. A week ago kernel update 5.15 released and now the problem is gone.

It also fix for sleep when you have dual os. My advice is to upgrade your kernel to at least 5.15.5 or newer, or wait the update

Solution 4

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

Solution 5

Confirmed working with BIOS version 1.20.1.17, see this post on Reddit.

Share:
5,512

Related videos on Youtube

Federico
Author by

Federico

Updated on September 18, 2022

Comments

  • Federico
    Federico over 1 year

    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.

    • Enterprise
      Enterprise almost 3 years
      I started experiencing this same issue when I had upgraded to kernel 5.11.0-17. Then, kernel 5.11.0-18 was released very quickly. I upgraded to it, and the issue went away. I have an Intel i7 processor and Nvidia graphics, so our hardware is very different. But I think you are on the right track suspecting the kernel version is the culprit. A work-around that helped me while I had this issue was disabling blank screen for power saving: System Settings | Power | Power Saving | Blank Screen | Never. May be you can give this a try until the issue is fixed in the kernel.
    • Jisse Reitsma
      Jisse Reitsma almost 3 years
      I had the same issue under Ubuntu 21.04 with kernel 5.11.0-25. Booting 5.11.0-22 solved it for me.
  • Federico
    Federico almost 3 years
    thanks for the reply, but unfortunately in my case it didn't solve the problem.
  • Federico
    Federico over 2 years
    yes, you're right :)
  • amru
    amru over 2 years
    How did you install 5.14 kernel on KDE Neon. I tried it before but got missing dependency.
  • Mario
    Mario over 2 years
    @amru I just installed it through Mainline and it worked on reboot.
  • Mario Limonciello
    Mario Limonciello over 2 years
    This will fix wakeups: lore.kernel.org/linux-gpio/… It's a Lenovo specific fix.
  • The Roark
    The Roark over 2 years
    Ugh. Wish I had your experience. I'm using PopOS 20.04 with kernel 5.15 -- but on Ryzen 5500U -- and the sleep issue is not fixed. It just "sleeps" with a black screen that can't be restored without a reboot.
  • Prieyudha Akadita S
    Prieyudha Akadita S over 2 years
    Looks like it only fix for 4000 series. My device is running on 4500u. Have you tried to update using latest kernel 5.15.8?
  • The Roark
    The Roark over 2 years
    Yes! Unfortunately, no luck. It's a new computer, so now trying Fedora - then Manjaro.
  • holocronweaver
    holocronweaver over 2 years
    Disabling screen lock after sleep solved the black screen on wake issue, but output video buffer becomes an unrecoverable mass of random colors ~50% of the time - I can make out the outlines of windows, so the OS seems to be running, but the video out is borked. System specs: Ubuntu 20.04, kernel 5.4.0-92-generic, AMD Ryzen 7 5800X, GeForce GTX 970.