#Nvidia graphics card drivers won't work

16 messages · Page 1 of 1 (latest)

strong sky
#

Using Mint Cinnamon 22.2
Every time I try to install the drivers for my card (Geforce rtx 5080 16gb shadow 3x oc) the drivers refuse to function.
After installation and a reboot I type in terminal the command "nvidia-smi" and it give me the response "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."
So I revert to the open source driver, use the command in terminal "sudo apt-get remove --purge nvidia-*" Reboot and try again.

The driver manager gives me 3 options,
-nvidia-driver-580-open
-nvidia-driver-570-open
-xserver-xorg-video-nouveau

I have tried both as well as nvidia-driver-580 through the command "sudo ubuntu-drivers autoinstall" with the same result.
I've been trying to troubleshoot this for the past 2 hours and change, this is my first install of linux, I am at a loss.

#

~$ sudo ubuntu-drivers autoinstall
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
udevadm hwdb is deprecated. Use systemd-hwdb instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
linux-modules-nvidia-570-open-6.14.0-32-generic : Depends: nvidia-kernel-common-570 (<= 570.172.08-1) but 570.181-0ubuntu0~gpu24.04.3 is to be installed
E: Unable to correct problems, you have held broken packages.

An example of what the problem is

hexed spruce
#

do mokutil --sb and ensure secure boot is off.

#

this must be disabled or else nvidia (or any other proprietary drivers) will never be allowed to load

#

then use driver manager, let it install reco'd driver, and reboot again

#

confirm with inxi -G your GPU has driver.

strong sky
#

Sorry for the late response, work and school as it goes.
Tried disabling safe boot, but no matter what I do it won't go past the mint logo during startup. I'm just left with a blank black screen with no response instead of the login menu. I've tried updating through the grub menu but still I have to turn on safe boot just to log in.
From the few similar posts I've come across I believe my problem may be I'll only be able to use Nvidia drivers through generating and registering mok keys. To work with the secure boot.

Fun times ahead for me it seems

hexed spruce
#

and pay EXACTING precision to what jeremyb wrote

#

use a SIMPLE AF 9 digit password just for that lil setup

#

123456789

#

else it'll just treat u badly n make u suffer worse

strong sky
#

Much appreciated, I'll do so when I can

strong sky
#

I did the four lines in terminal one at a time, created the password 123456789, it asked me to create a password twice for some reason so I just made them the same string of numbers.
Once I reboot the system it gave me a blue screen with the MOK menus, and since secureboot was already enabled I chose not to enable it and was prompted for the individual digits for the password which was easy because of the numbering.
Oddly when I chose continue to boot the system was giving me the same issue as having secureboot off, so I went into bios and turned off secure boot and everything loaded properly and I can log in.

Can confirm that secure boot is off and the nvidia drivers are recognized and working! I'm going to call this my first Linux win ever. Thank you so much!

hexed spruce
#

For redundancy, anyone else reading here; to register Nvidia or other 3rd-party linux drivers on a system needing Secure Boot ON or Mint installed with secure boot support, and ON:

mokutil --list-enrolled
sudo mokutil --test-key /var/lib/shim-signed/mok/MOK.der
sudo mokutil --enable-validation```
- at some point it will ask you to create a password, 8 TO 16 digits. Remember it, and when you reboot and enable Secure Boot, you will likely need to choose enroll MOK option and enter the same password.
#

*credit to JeremyB for the above solution.