Skip to content

Instantly share code, notes, and snippets.

@ejangi
Created October 30, 2025 01:43
Show Gist options
  • Select an option

  • Save ejangi/39c56b1f453eb53b52b27bdf862b1e75 to your computer and use it in GitHub Desktop.

Select an option

Save ejangi/39c56b1f453eb53b52b27bdf862b1e75 to your computer and use it in GitHub Desktop.
AMD GPUs often don't like KVMs. To fix this we can turn on the GPU power management using GRUB.

Add the Kernel Parameter

Let's tell the amdgpu driver to disable its runtime power management, which is the component that's failing to resume.

  1. Open a terminal and edit your GRUB config:
sudo nano /etc/default/grub
  1. Find the line GRUB_CMDLINE_LINUX_DEFAULT=.

  2. Add amdgpu.runpm=0 inside 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"

  1. Save the file (Ctrl+O, Enter) and exit (Ctrl+X).

  2. Update GRUB:

sudo update-grub
  1. Reboot your machine and try to replicate the problem (lock the screen, switch the KVM, switch back).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment