amdgpu-uninstall will blacklist amdgpu driver
- AMD GPU: RX580
- Ubuntu: 22.04
- amdgpu-install script: 5.5.50503
I had the misfortune of trying to install amdgpu pro OpenCL drivers on Ubuntu 22.04 right after kernel v6.2 was deployed (Ubuntu 22.04.3). Since the AMD drivers are not compatible with Linux v6.2 (I tried to install the AMD drivers shortly after my desktop was updated and had not realized I was using Linux v6.2), installation failed, but when I used amdgpu-uninstall
to remove the packages, I ended up in a state where amdgpu driver had been blacklisted, so I was stuck in 1024×768 and software rendering.
Steps to reproduce
sudo apt install ./amdgpu-install_5.5.50503-1_all.deb
amdgpu-install --usecase=opencl --opencl=legacy
At that point, the installation process complains when trying to install the DKMS because of Linux version mismatch. Every apt
command afterwards will complain about this as well. So I ran amdgpu-uninstall
to remove the packages and rebooted my desktop.
After the reboot, it was as if my GPU was not detected anymore. In Xorg.0.log
I could see:
(EE) open /dev/dri/card0: No such file or directory
and in /var/log/gpu-manager.log
:
Is amdgpu loaded? no
Is amdgpu blacklisted? yes
Is amdgpu versioned? no
Is amdgpu pro stack? no
(...)
Error: can't access /sys/bus/pci/devices/0000:01:00.0/driver
The device is not bound to any driver.
Error : Failed to open /dev/dri
After investigation, I discovered something created a file named blacklist-amdgpu.conf
in /etc/modprobe.d/
containing the following:
blacklist amdgpu
Removing this file and rebooting fixed the problem.
Logs
Attached are the logs suggested by the Reporting Bugs page of amdgpu-install website: logs-20230821.tar.xz
Please note these logs are captured after fixing the issue, so they don't exhibit the errors I've mentioned above.