NVIDIA RTX 3080 GPU not working with Ubuntu 20.04, Kernel 5.8.0-50-generic
I fixed this by first reinstalling Ubuntu 21.04. (I knew this was a step in the right direction because my monitor finally started working!)
Once Ubuntu 21.04 was installed, I first tried reinstalling the nvidia drivers using the Software & Updates, then rebooting to disable secure boot. When I disabled secure boot, it still wouldn't boot, so I re-enabled secure boot, did prime-select intel
, then purged Nvidia similar to this (https://forums.developer.nvidia.com/t/newly-installed-drivers-are-not-found-when-nvidia-smi-is-called/82686/7).
I rebooted, I disabled secure boot, it finally booted. However, when I tried to install the Nvidia drivers using Software & Updates it would not boot again with Secure Boot disabled.
I discovered I had to install the Nvidia drivers using terminal
ubuntu-drivers autoinstall
Thus, the procedure was
- Install Ubuntu 21.04
prime-select intel
- purge nvidia drivers
sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get install ubuntu-desktop
sudo apt-get --purge remove "*cublas*" "cuda*"
sudo apt-get --purge remove "*nvidia*"
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo rm /etc/X11/xorg.conf
sudo apt autoremove
sudo reboot
- Reboot, disable secure boot in BIOS
- Reinstall Nvidia as such
sudo ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
sudo reboot
I have yet to re-enable secure boot as I am scared that it will not boot and I will have to go through this process again.