In this tutorial you will learn:
- How to check current AMD Radeon driver version
- How to install AMD Radeon from PPA repository
- How to install the official AMD Radeon AMDGPU-PRO driver
- How to test the performance your AMD Radeon Graphic card
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | Installed or upgraded Ubuntu 20.04 Focal Fossa |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions | # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ - requires given linux commands to be executed as a regular non-privileged user |
AMD Radeon Ubuntu 20.04 Driver Installation step by step instructions
Here we assume that you have already downloaded and installed Ubuntu 20.04 or simply upgraded your Ubuntu 20.04 system. Furthermore, your AMD Radeon Graphics card is already part of your system.Let's start by gathering some information about your system and current state of the AMD Radeon driver. First check your VGA graphic card model and driver in use. To do so execute the following command:
$ sudo lshw -c video *-display description: VGA compatible controller product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] vendor: Advanced Micro Devices, Inc. [AMD/ATI] physical id: 0 bus info: pci@0000:01:00.0 version: e1 width: 64 bits clock: 33MHz capabilities: pm pciexpress msi vga_controller bus_master cap_list rom configuration: driver=amdgpu latency=0 resources: irq:38 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:f7e00000-f7e3ffff memory:c0000-dffff
The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA
APPLY NOW
amdgpu
is already installed and in use. This means that all modules are already loaded and in use: $ lsmod | grep amd amdgpu 4575232 11 amd_iommu_v2 20480 1 amdgpu gpu_sched 32768 1 amdgpu ttm 106496 1 amdgpu drm_kms_helper 184320 1 amdgpu drm 487424 7 gpu_sched,drm_kms_helper,amdgpu,ttm i2c_algo_bit 16384 1 amdgpuLastly, check boot messages for more information about the graphics card driver in use:
$ dmesg | grep -i amdgpu
Next, let's explore the three options you have as an AMD Radeon VGA graphics card in term of different type of driver installations.
Open Source AMD Radeon Ubuntu Driver
The Open Source AMD Radeon Ubuntu Driver is already installed on your system by default and out of the box. They're integrated into Mesa and the Linux kernel. There is nothing further you need to do in order to start using your AMD Radeon card. In this scenario you may not be on the bleeding edge in terms of the latest AMD Radeon driver version, but your system will benefit from an increased stability and painless automatic driver updates.PPA third-party repository
If you absolutely insist to have the latest AMD Radeon driver version you may use the PPA third-party repository which might be always ahead of the stable default opensource driver coming with your Ubuntu 20.04 system as default. To install the PPA third-party repository drivers execute the following commands:$ sudo add-apt-repository ppa:oibaf/graphics-drivers
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
Proprietary AMDGPU-PRO drivers
WARNING
At the time of writing, the proprietary drivers haven't been released for Ubuntu 20.04 yet. Once that happens the article will be updated accordingly.tar
from the command line.$ tar -xf amdgpu-pro_*.tar.xz
A directory containing all of the necessary packages will be created based on the version of the drivers.cd
into that directory.$ cd amdgpu-pro-XX.XX-XXXXXX
Don't worry about installing all of those packages individually. There's an installer script that will handle everything for you. Run the script as a regular user. It will ask you for your password to usesudo
. If you want to be lazy, add the-y
flag to answer "Yes" to every question.$ ./amdgpu-pro-install -y
Let the script run and install all of your packages. It'll take a bit of time, but once it's done, your system will be ready. Just restart, and you can start using your new drivers.In case you need to uninstall the previously installed Proprietary AMDGPU-PRO drivers execute the following command:Looking for Linux Systems Analyst !
The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA
APPLY NOW$ amdgpu-pro-uninstall