install amd driver on ubuntu 20.04

6,979

One problem might be that Ubuntu 20 ships with kernel version 5.4. The kernel for your driver is limited to 3.4. Might need a different Ubuntu dist? Or maybe time for a GPU upgrade? Either way, that's probably your main issue.

I've successfully installed AMD drivers on Ubuntu 20.04 for the following cards:

  • 5500 XT
  • RX Vega 64

I know those cards use a different driver, so adjust the naming convention(s) accordingly. Maybe this will be helpful for someone else.

Let's get a clean install, first.


locate amdgpu-uninstall

Should be /usr/bin/amdgpu-uninstall...run it.


sudo /usr/bin/amdgpu-uninstall

If it fails to delete /opt/amdgpu/ and/or /opt/amdgpu-pro/ directories, then:


sudo rm -rf /opt/amd...

Here is your driver: https://www2.ati.com/drivers/legacy/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip

You'll need to unzip it.


sudo apt-get install unzip

unzip ~/Downloads/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip

./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run

Current AMD Driver

Again, wrong kernel, so this is probably moot.

You could try giving a different driver a whirl?

Alternatively: Check here


tar -xvf ~/Downloads/amdgpu-pro-21.30-1290604-ubuntu-20.04.tar.xz

sudo ./amdgpu-pro-21.30-1290604-ubuntu-20.04/amdgpu-install --opencl=pal,legacy,rocr --no-dkms --headless


Groups

Add yourself to render and video groups


sudo usermod -aG render $USER

sudo usermod -aG video $USER

sudo reboot

Changes won't take affect until you reboot.

Finally...

Darktable

Darktable Benchmark


sudo apt install darktable

sudo darktable-cltest

Linux Firmware

This might also be helpful


git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware.git

sudo cp ~/linux-firmware/amdgpu/* /lib/firmware/amdgpu && sudo update-initramfs -k all -u -v

Troubleshooting Resources

Folding Forum

Random Blog

Kernel Issues?

OpenCL Help

Bashbaug

Ask Ubuntu

Good luck.

May the odds be forever in your favor.

Share:
6,979

Related videos on Youtube

meysam chaghamirza
Author by

meysam chaghamirza

Updated on September 18, 2022

Comments

  • meysam chaghamirza
    meysam chaghamirza almost 2 years

    I have amd radeon hd 4350/4550 gpu,and I'm on ubuntu 20.04. so I tried many way to install official amd driver for ubuntu but every time I get an error. for example: I downloaded amd driver form amd.com and i going to install requairment befor install it.

    kernel@kernel-EP43-UD3L:~$ sudo apt-get install linux-headers-generic build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
    [sudo] password for kernel: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package libqtgui4 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'libqtgui4' has no installation candidate
    E: Unable to locate package libelfg0
    

    I get an error,what can i do for resolve it?