1

I was trying to install new drivers for my AMD Radeon R7 240 graphics card, but when I rebooted my computer (OS Ubuntu 18.04) it seems like the drivers don't work and I can't really access the computer other than a terminal window.

I have tried to boot in safe mode but it doesn't seem to work, so I was wondering if there is any way that I can install the drivers via the terminal?

Localos
  • 13

2 Answers2

1

According to https://www.amd.com/en/support/kb/faq/gpu-635.

First, you should update your system with sudo apt update; sudo apt dist-upgrade; sudo reboot. After reboot, you should check if AMDGPU-PRO Driver package is already installed on your system with dpkg -l amdgpu-pro. Then, download your specific amd driver with wget --referer=https://www.amd.com https://drivers.amd.com/drivers/linux/amdgpu-pro-19.30-934563-ubuntu-18.04.tar.xz, extract its contents with tar -Jxvf amdgpu-pro-19.30-934563-ubuntu-18.04.tar.xz and enter in the driver directory with cd amdgpu-pro-19.30-934563-ubuntu-18.04. Finally, you could install it with ./amdgpu-pro-install -y; sudo reboot

Make sure you are a member of the video group with groups command and, if you are not yet in that group, just add yourself with sudo usermod -a -G video $LOGNAME.

If anything goes wrong, you can remove AMDGPU-PRO driver with amdgpu-pro-uninstall.

That's it.

If this answer don't work, consider reformulating your question with the exact steps that you made before getting to your current point.


Here is a overview of all commands typed above for preparing your distro, downloading your specific driver and installing it.

sudo apt update; sudo apt dist-upgrade; sudo reboot
dpkg -l amdgpu-pro
wget --referer=https://www.amd.com https://drivers.amd.com/drivers/linux/amdgpu-pro-19.30-934563-ubuntu-18.04.tar.xz
tar -Jxvf amdgpu-pro-19.30-934563-ubuntu-18.04.tar.xz
cd amdgpu-pro-19.30-934563-ubuntu-18.04
/amdgpu-pro-install -y; sudo reboot
thiggy01
  • 431
0

Sorry apparently the below won't work for AMD devices, I'll leave it here as it could help with other connected devices.

You can run ubuntu-drivers list to show all drivers available for your hardware.

If the list looks right, you can run sudo ubuntu-drivers install to install them automatically. Or to install individually listed drivers run sudo apt install <driver>

Baa
  • 3,452