I recently installed an RTX 4090 GPU into my desktop. I am however struggling to get the nvidia drivers in ubuntu to work.
The usual "Additional Drivers" GUI menu simply says "No additional driver available". I tried installing the drivers via the terminal:
sudo apt intall nvidia-driver-520
But to no avail: The drivers do not seem to work, and running nvidia-smi
gives the following message:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I also tried installing nvidia-driver-515
and nvidia-driver-510
, with no results. I tried rebooting after each attempted driver install, and before installing a new set of drivers I always ran:
sudo apt purge *nvidia*; sudo apt autoremove
The driver installation GUI menu also never ended up displaying any available drivers.
Running lspci
does not seem to find the actual model of the GPU. It simply outputs:
2d:00.0 VGA compatible controller: NVIDIA Corporation Device 2684 (reva1)
2d:00.1 Audio device: NVIDIA Corporation Device 22ba (rev a1)
On windows everything runs flawlessly after updating the drivers, so the GPU is correctly installed in the system, and works.
Perhaps also worth noting is that I previously had an RTX 3080 installed, and all the drivers, as well as cuda worked without problems on my ubuntu system.
Any idea how to get the drivers for this GPU to work in ubuntu? I am running Ubuntu 22.04.1 LTS.
EDIT: I figured out secure-boot is at least part of the issue. With it disabled, things seem to work. This is however problematic for my dual boot with windows 11.