Ubuntu – 18.04 – Failing to shutdown/power off on AMD Ryzen CPUs

18.04kernelrebootshutdown

When booting up Ubuntu 18.04 with a kernel version of 5.3.0-52 or later (including 5.3.0-53), everything seems to be working as usual. However, when I shutdown, the system will only soft shutdown, with the CPU still running at full power, forcing me to hold down the power button to fully power off affected systems. If I reboot, it will cause the system to hang and not respond. Either way, a hard reset or poweroff will be required, and this is not an option for systems being remotely accessed. It is not possible for me to collect kernel logs at this point, unless something wrong is happening in those kernel versions before the actual shutdown.

It is possible that this may also occur on Ubuntu 20.04 with kernel versions 5.4.0-29 and later, but I have not yet tested this out. This problem is occurring on both my desktop and laptop computers which respectively are:

  • AsRock B450 Pro4 with AMD Ryzen 3 3200G APU
  • Lenovo ThinkPad A485 with AMD Ryzen 5 Pro 2500U mobile APU

In the meantime, I am stuck on kernel version 5.3.0-51, as that is the last working 5.3.x kernel version offered in the standard Ubuntu repositories that doesn't have this problem, without me having to use PPAs. I don't know if this problem also occurs on systems with Intel CPUs, as I don't own any recently-made system (last 3 years from 2017) with such CPUs to test if this problem occurs on them.

Update: Reboots are also affected, not only shutdowns.

Best Answer

I had the same problem with the brand new T495 AMD Ryzen 7 PRO 3700U. I manage to solve it on 5.3.0-53 by installing AMD drivers from here https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-10

The 5.3.0-51-generic didn't work for me from the beginning (it hangs on the login screen - I'm using unity instead of gnome)

Hope it helps

Related Question