Let's tell the amdgpu driver to disable its runtime power management, which is the component that's failing to resume.
- Open a terminal and edit your GRUB config:
sudo nano /etc/default/grub-
Find the line
GRUB_CMDLINE_LINUX_DEFAULT=. -
Add
amdgpu.runpm=0inside the quotes.
-
Before:
GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3" -
After:
GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 amdgpu.runpm=0"
-
Save the file (Ctrl+O, Enter) and exit (Ctrl+X).
-
Update GRUB:
sudo update-grub- Reboot your machine and try to replicate the problem (lock the screen, switch the KVM, switch back).