Table of Contents
Ubuntu - GPU - AMD GPU - Setup an AMD video card
Install the official amdgpu driver from a third-party PPA repository
To install the PPA third-party repository drivers execute the following commands:
sudo add-apt-repository ppa:oibaf/graphics-drivers
NOTE: Another alternative for drivers is https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa
The above will add the PPA AMD Radeon driver repository to your system. The following command will upgrade your current AMD Radeon driver to the latest version:
sudo apt update && sudo apt -y upgrade
In case you need to revert back to your original Ubuntu AMD Radeon drivers you can remove the PPA driver installation using the below commands:
sudo apt install ppa-purge sudo ppa-purge ppa:oibaf/graphics-drivers
Reboot
Reboot the computer.
sudo reboot
Check if the driver is active
lshw -c video
returns:
*-display description: VGA compatible controller product: Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: Advanced Micro Devices, Inc. [AMD/ATI] physical id: 0 bus info: pci@0000:0b:00.0 version: c1 width: 64 bits clock: 33MHz capabilities: pm pciexpress msi vga_controller bus_master cap_list rom configuration: driver=amdgpu latency=0 resources: irq:115 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:e000(size=256) memory:fcb00000-fcb7ffff memory:fcb80000-fcb9ffff
NOTE: Look for the keyword driver= in the configuration line.
- If this shows amdgpu then this is good; and the official GPU driver is being used.
- If this shows radeon then not good; as this indicates that the open source driver is being used.
Blacklist the open source radeon module driver
lspci -k | grep -EA3 'VGA|3D|Display'
displays:
NOTE: This shows two kernel modules available: radeon and amdgpu.
Disable the radeon driver
Edit /etc/modprobe.d/blacklist.conf:
sudo vi /etc/default/grub
…and add the following line at the end:
- /etc/modprobe.d/blacklist.conf
blacklist radeon
Update grub
sudo update-initramfs -u
WARNING: If you reboot now, you might end up in a very low desktop resolution.
Enable the amdgpu driver
Edit the /etc/default/grub file:
sudo vi /etc/default/grub
…and add these lines:
- /etc/default/grub
GRUB_GFXMODE=1920x1080x32 GRUB_CMDLINE_LINUX_DEFAULT="radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1 amdgpu.modeset=1"
Update Grub
sudo update-grub2 && sudo update-initramfs -u -k all<br>
Reboot
Reboot the computer.
sudo reboot