Can't get a nVidia open driver to work on debian 13

Regarding to this post: Can't get NVidia driver to work on Deabian 13 RT laptop

i can’t get the open driver to work on debian 13. I’ve have the same nvidia.persistenced failed to load at boot up.

I’ve followed the official install instructions for the “open driver” flavor route from the debian website. Troubleshooting via the linked post from the top, but i also didn’t find even the nvidia-installer.log which should be inside /var/logs/.

I didn’t use secure boot. I also executed apt purge nvidia* and could then boot into desktop.
Reinstall the driver bring me back to the same issue with the failed nvidia demon.

I will add information to this post and keep on searching on the web, but for now, i’m trying for some evenings right now.

In the post you linked, the issue is specifically caused by the rt version of debian installing a non rt version of the driver. Could you give us the output of $ uname -mrs.

Also, run $ sudo nvidia-bug-report.sh to generate the nvidia-bug-report.log.gz file and share it in your post. When you run the installer, it should add the bug report script to your path regardless of whether or not the driver fails.

While we’re at it, show us the output of $ dpkg -l 'linux-headers-*' so we know which headers are being used.

These steps should give a lot of information to anyone who tries to help.

Also, make sure youre running the following command when you’re uninstalling. The quotation marks and the asterisks are important.

apt purge --auto-remove '*nvidia*' '*nvidia*:i386' '*cuda*' '*cuda*:i386'

@debian26, on top of what @j.javid5000 mentioned, please provide the following info:

  • chosen packaging method (and if it’s anything else than the NV DC repo, then switch to that or explain why you can’t use it)
  • output of lspci |grep -iE "3d|display|vga"
  • output of /sbin/dkms status
  • if the above mentions the NV module as installed for your current kernel, then also the output of sudo journalctl -b |grep -iE 'nvr|nvl|nvi'

Really thank both for your fast support. I will gather all information questioned from both replies. I’ve made a backup of the whole system before installing the driver and will try the official nVidia install guide on a similar system, just to get more experience with this. And you mentioned this method.

The chosen package method i can answer right now, i was going with the Debian-packaged drivers and the debian guide because i thought that’s the way to do it. I’ve read about the secure boot issue and the backport, but i deactivated secure boot and i think, i don’t need the backport support right now.

Sorry to maybe ask basic questions, but i never have to deal with modules at this level. So debian is maybe the wrong distro for that.

Debian is a fine distro, the problem is that Nvidia cards are not good display devices for Linux, just as the wiki warns. That’s regardless which distro you will choose: you will experience similar problems as the root cause is the proprietary nature of the drivers.

Regarding packaging method, Debian-packaged drivers used to be the most recommended way, but they haven’t been updated in ages, causing a lot of different problems as a consequence, hence currently the NV DC drivers is the best option.

Try purging the current driver with the command provided by @j.javid5000, then follow the official guide for the NV DC drivers (also have a look at the notes on the wiki: they may be helpful) and if in doubt or if you run into problems then post here again.

Sorry for the late reply, life is going on.

Using the nvidia guide and nvidia network repo on a different system with a M4000 brought me to the same situation, persistenced failed to load … The only constants are me and the debian 13 installer on a stick.

Back to the RTX2070 machine and before the second purge, executing uname -rms gives me Linux 6.12.90+deb13.1-amd64 x86_64 . Executing the headers command gives me

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-============-============-=========================================================
ii linux-headers-6.12.90+deb13.1-amd64 6.12.90-2 amd64 Header files for Linux 6.12.90+deb13.1-amd64
ii linux-headers-6.12.90+deb13.1-common 6.12.90-2 all Common header files for Linux 6.12.90+deb13.1
ii linux-headers-amd64 6.12.90-2 amd64 Header files for Linux amd64 configuration (meta-package)
un linux-headers-generic (no description available)

nvidia-bug-report.log.gz (206.6 KB)

Running lspci gives me 01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2070 Rev. A] (rev a1).

Running /sbin/dkms status gives me nvidia-current-open/550.163.01, 6.12.90+deb13.1-amd64, x86_64: installed
nvidia-current/550.163.01, 6.12.90+deb13.1-amd64, x86_64: installed .

Running sudo journalctl gives me

Apr 13 21:38:05 debian kernel: rtc_cmos 00:02: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
Apr 13 21:38:05 debian kernel: with environment:
Apr 13 21:38:05 debian kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7
Apr 13 21:38:05 debian kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8
Apr 13 21:38:05 debian kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input9
Apr 13 21:38:05 debian kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10
Jun 12 22:45:55 debian systemd-modules-load[434]: modprobe: ERROR: could not insert 'nvidia_current': Key was rejected by service
Jun 12 22:45:55 debian systemd-udevd[513]: modprobe: ERROR: could not insert 'nvidia_current': Key was rejected by service
Jun 12 22:45:55 debian systemd-modules-load[432]: modprobe: ERROR: Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1
Jun 12 22:45:55 debian systemd-modules-load[432]: modprobe: ERROR: could not insert 'nvidia': Invalid argument
Jun 12 22:45:55 debian (udev-worker)[478]: Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1
Jun 12 22:45:57 debian systemd-modules-load[882]: modprobe: ERROR: could not insert 'nvidia_current_modeset': Key was rejected by service
Jun 12 22:45:57 debian systemd-modules-load[430]: modprobe: ERROR: Error running install command 'modprobe nvidia ; modprobe -i nvidia-current-modeset ' for module nvidia_modeset: retcode 1
Jun 12 22:45:57 debian systemd-modules-load[430]: modprobe: ERROR: could not insert 'nvidia_modeset': Invalid argument
Jun 12 22:45:58 debian systemd-modules-load[883]: modprobe: ERROR: could not insert 'nvidia_current_drm': Key was rejected by service
Jun 12 22:45:58 debian systemd-modules-load[404]: Error running install command 'modprobe nvidia-modeset ; modprobe -i nvidia-current-drm ' for module nvidia_drm: retcode 1
Jun 12 22:45:58 debian systemd-modules-load[404]: Failed to insert module 'nvidia_drm': Invalid argument
Jun 12 22:45:58 debian systemd[1]: Starting nvidia-persistenced.service - NVIDIA Persistence Daemon...
Jun 12 22:45:58 debian (smartd)[917]: smartmontools.service: Referenced but unset environment variable evaluates to an empty string: smartd_opts
Jun 12 22:45:58 debian nvidia-persistenced[940]: Started (940)
Jun 12 22:46:00 debian nvidia-persistenced[940]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 113 has read and write permissions for those files.
Jun 12 22:46:00 debian nvidia-persistenced[940]: Shutdown (940)
Jun 12 22:46:00 debian nvidia-persistenced[910]: nvidia-persistenced failed to initialize. Check syslog for more details.
Jun 12 22:46:00 debian systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
Jun 12 22:46:00 debian systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
Jun 12 22:46:00 debian systemd[1]: Failed to start nvidia-persistenced.service - NVIDIA Persistence Daemon.
Jun 12 22:46:00 debian systemd[1]: nvidia-persistenced.service: Consumed 1.485s CPU time, 4.6M memory peak.
Jun 12 23:13:59 debian sudo[1487]: hal : TTY=tty1 ; PWD=/home/hal ; USER=root ; COMMAND=/usr/bin/nvidia-bug-report.sh

The timestamps mismatch are from a dead mb coin cell, i change this.

Look at the first error 'nvidia_current': Key was rejected by service seems to be a security problem with signing the module/s? Secure boot is off on both machines but i will read about that.

Some articles I’ve red so far point to secure boot, which i will check again on both machines, some to the dkms.

I will check with mokutil the state of secure boot to be sure on both machines, maybe i oversee something.

First a meta: when posting multi-line output of commands it’s best to enclose it within ``` tag (3 back-quotes, usually in the top left of the main part of keyboards) on a single line (see an example in the next paragraph).

Regarding your outputs and logs: everything except journalctl logs looks fine.
Looking at the logs, I would also say that it’s your Secure-Boot that prevents loading of the module, so it’s very strange to hear, that it is disabled :-? Either an UEFI firmware settings app bug, which fails to disable it for real, or you’ve misread the setting: just in case do check again.
You are also definitely on the right track looking into mokutil: adding your MOK to shim is always a good idea, even if you don’t intend to use Secure-Boot. As the Secure-Boot wiki states, it boils down to a 1 mandatory instruction:

sudo mokutil --import /var/lib/dkms/mok.pub

(Your DKMS MOK has already been generated at this point as you’ve already built some DKMS modules)
During the next boot process, follow the onscreen instructions from shim (you can see some screenshots in the DKMS README to know what to expect).
If adding your MOK to shim helps, it certainly means that the Secure-Boot was active.

The first, older machine has got two faults, me and a voltage supply issue from the coin cell holder. I thought I’ve changed the cell, and indeed i changed it, i took it out and measured it with a voltmeter and it is fine. But the values get lost after every time removing power from the power supply.

Problem is, after the third reboot i decided to save the settings in a BIOS slot of the motherboard, and didn’t checked that i switched secure boot on. So every time i booted, i loaded the profile and thought secure boot is off … I can’t repair the mb but i checked the secure boot state with mokutil with sb off and on and it responded in the expected way.

I stopped working on that machine due to my spare time. But i will report what happens if i try it with secure boot off.

The second machine, DELL, has the secure boot off regarding to the BIOS, but checking that with mokutil gave me no mokutil installed. Don’t know why it wasn’t installed, but i installed it. Now it is prompting no EFI variables supported on this system.

I used a m.2 nvme adapter card with a nvme drive with i setup up in the first machine, and maybe the DELL chipset don’t like that. Reporting that can be alright if the secure boot is off and legacy boot is on. I will wipe that disk, booting the stick in legacy boot and rerun the os installation and then install the driver the nVidia way and report back.

In the DELL are now two Quadro M4000 cards and i setup the machine from ground up new, but the persistence demon also won’t load. Then i red the install log which I’ve created and it looks like the other ones. Then i checked the systemctl status and the journalctl for the demon, i think i made another mistake here. I used the network nVidia repo and the chose the open driver, because i thought i red that the Maxwell chip could use the open variant, but reading today the nVidia guide, it says no, only the proprietary drivers will work, so tonight i will, no movie included, purge again and than install the cuda-drivers.

Update: Yesterday i found out that i need a 580.x driver for the M4000 cards. I tried to pin that version, but only 590 and higher pins are available. This give me four options as far as i know now.

  1. Read, understand and try to use your post for the Debian 12 repo usage.
  2. Use a native Debian 12 installation.
  3. Use an other distro.
  4. Use supported cards.

And surprisingly this worked. I had to disable PGP verification for the Debian 12 repo, but after downloading the cuda key, installing that key, disable the verification, and running apt update, i could pin the 580 branch and install the lastest 580 driver on Debian 13. Now i will do some testing, but i would say, one machine down, two other with slightly different setup to go.

it seems you’ve already solved it, but just in case, there’s a dedicated section on the wiki regarding using v580 on Debian-13.