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|
|Other||Privileged access to your Linux system as root or via the |
|Conventions|| # - requires given linux commands to be executed with root privileges either directly as a root user or by use of |
AMD Radeon Ubuntu 20.04 Driver Installation step by step instructionsHere 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
From the above command output we can see the graphics card model and that the AMD Radeon driver
amdgpuis 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
Open Source AMD Radeon Ubuntu DriverThe 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 repositoryIf 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-driversThe 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 upgradeIn 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
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.
tarfrom the command line.
$ tar -xf amdgpu-pro_*.tar.xzA directory containing all of the necessary packages will be created based on the version of the drivers.
cdinto that directory.
$ cd amdgpu-pro-XX.XX-XXXXXXDon'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 use
sudo. If you want to be lazy, add the
-yflag to answer "Yes" to every question.
$ ./amdgpu-pro-install -yLet 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: