Skip to content

Instantly share code, notes, and snippets.

@vantrong291
Last active January 29, 2026 20:02
Show Gist options
  • Select an option

  • Save vantrong291/16286117d45dceae7aba4d7b712c8a2f to your computer and use it in GitHub Desktop.

Select an option

Save vantrong291/16286117d45dceae7aba4d7b712c8a2f to your computer and use it in GitHub Desktop.
Installing AMD GPU Drivers on Ubuntu 22.04 for AMD Graphics Cards

Installing AMD GPU Drivers on Ubuntu 22.04 for AMD Graphics Cards

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.


Step 1: Update system

sudo apt update && sudo apt upgrade -y

Step 2: Download and install AMDGPU drivers

  1. Visit the official AMD support page: https://www.amd.com/en/support/download/linux-drivers.html
  2. Search for your GPU model (e.g., Radeon 780M) and choose Ubuntu 22.04.
  3. Download the amdgpu-install .deb package or use the command:
sudo dpkg -i amdgpu-install_6.3.60304-1_all.deb
sudo apt update
  1. 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-eula

Step 3: Add kernel boot parameters

To fix boot issues (e.g., black screen), add the following parameters to GRUB:

mem_encrypt=off amdgpu.sg_display=0

Edit the GRUB configuration:

sudo nano /etc/default/grub

Find the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Replace with:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_encrypt=off amdgpu.sg_display=0"

Update GRUB:

sudo update-grub

Reboot your system:

sudo reboot

Step 4: Confirm it works

After reboot, run:

cat /proc/cmdline

You should see mem_encrypt=off and amdgpu.sg_display=0 in the output.


Done!

Your AMD GPU should now be working properly with correct settings for Ubuntu 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment