This guide walks you through installing AMDGPU drivers and configuring kernel parameters (mem_encrypt=off and amdgpu.sg_display=0) to ensure stable graphics on AMD systems.
sudo apt update && sudo apt upgrade -y- Visit the official AMD support page: https://www.amd.com/en/support/download/linux-drivers.html
- Search for your GPU model (e.g., Radeon 780M) and choose Ubuntu 22.04.
- Download the
amdgpu-install.deb package or use the command:
sudo dpkg -i amdgpu-install_6.3.60304-1_all.deb
sudo apt update- Install the driver:
- For graphics only:
sudo amdgpu-install --usecase=graphics --accept-eula- For graphics + ROCm (optional, if using for compute workloads):
sudo amdgpu-install --usecase=graphics,rocm --accept-eulaTo fix boot issues (e.g., black screen), add the following parameters to GRUB:
mem_encrypt=off amdgpu.sg_display=0
sudo nano /etc/default/grubFind the line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Replace with:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_encrypt=off amdgpu.sg_display=0"
sudo update-grubsudo rebootAfter reboot, run:
cat /proc/cmdlineYou should see mem_encrypt=off and amdgpu.sg_display=0 in the output.
Your AMD GPU should now be working properly with correct settings for Ubuntu 22.04.