The fix requires changing a kernel parameter, so this fix is distro independent. However, the methods to apply the fix might differ from distro to distro. Generally speaking though, you need to:
- Edit your grub file, usually found at
/etc/default/grub. - Find
GRUB_CMDLINE_LINUX_DEFAULT, or add it if it’s not in the file. - Add this parameter:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.dcdebugmask=0x10"- Save the file.
- Regenerate the GRUB config:
sudo update-grub- Dead easy.
No GRUB?
This process differs slightly on distros that don’t use GRUB, or use a different config structure. For example, on systemd-boot (sometimes found in Arch and Fedora setups) you need to edit a .conf file in /boot/loader/entries/ instead.
On NixOS you just need to set it within the boot.kernelParams object in your configuration. In my NixOS config, that section looks like:
# ==========================================================================
# BOOT & KERNEL
# ==========================================================================
boot.loader.systemd-boot.enable = false;
boot.loader.grub = {
enable = true;
device = "nodev";
efiSupport = true;
efiInstallAsRemovable = true;
};
boot.loader.efi.canTouchEfiVariables = false;
boot.kernelParams = [ "amdgpu.dcdebugmask=0x10" ];
boot.resumeDevice = "/dev/disk/by-label/swap";