Nvidia module loading issues half of the time

Hi everyone !

Since I upgraded to Zorin 18, I have this issue where the nvidia driver does load my nvidia graphic card only half of the time.
If the boot uses X11, nvidia modules are properly loaded (even if then I switch to a Wayland session when I log in).
But if the boot uses Wayland, the nvidia devices (/dev/nvidia*) are not created and the udev process that spawns "/sbin/modprobe nvidia-drm" is killed because of a time out.

Also, when the nvidia devices (in /dev) are not present, the graphic card is well detected by fastfetch or lspci, but just not usable.

I attach logs files (one when the nvidia devices are created/loaded, the other one when they're not).

When loaded : booting log (no issues - X11) - Pastebin.com
Not loaded/usable : booting log (nvidia gpu unusable - Wayland) - Pastebin.com

Final note:
Changeing the nvidia driver's version (for exemple use 590/595) has not effect, and the last time I changed it I had to reinstall Zorin OS because it broke my wifi, touchpad and other drivers

Don't know what other things I can add to help, don't hesitate to ask me !
Thanks !

1 Like

Also :

Secure boot is disabled, modset is set to 1 (as the default) and I don't have dual boot

1 Like

Nvidia and Wayland is a bit difficult when You don't have a current Wayland Implementation. If it runs fine on X11, I would simply suggest to stay on it.

If You prefer Wayland ... I see, You run the new 7.0 Kernel. Did you tried it with switching back to the older 6.17 Kernel to check if it behaves different? If not, I would suggest to try that.

2 Likes

There was an update to the 580 driver yesterday went from 580.159.03 to 580.173.02....and as @Ponce-De-Leon suggested using X11 with the nvidia driver works better

2 Likes

Thanks for you answer!

I really prefer Wayland over X11 (with X11 I have some touchpad issues on some apps)

I'll try to use the 6.17 kernel to see if it changes something :raising_hands:

2 Likes

Just made the update yesterday but it apparently didn't help

1 Like

took me abit trying to find the vid card you have...but that card uses the 595 drivers from nvidia....shows thats a laptop card is that what ya got?

1 Like

Yep it's a laptop GPU.
I'm using the 580 driver but with the 595 I have the same issue (I recently reinstalled Zorin OS and it automatically selected the 580, while before the reinstallation I was on the 595)

1 Like

ah ok just saw what nvidia had there and my 3050 is in the backup comp had the 470 till it got changed to whatever it was it has ubuntu 26.04 on that an it uses the zink VULCAN driver and works with wayland fine this machine had that card but i got an amd RT 6600 XT thats works either way it is on wayland

what im running as a desktop

1 Like

I found this :

It seems that the guy has a very similar configuration to mine, and the same issue (the logs are the same when he success/fails to load nvidia driver).

But the solution for her was to set modeset to 0, which I saw somewhere to be counterproductive.

I'll make my tests next week and keep you up to date !

1 Like

Update :
After the zorin's updater installed the new linux kernel version (7.0.40 I think, I'm not on my pc currently), this issue apparently disappeared.

Don't know why it solves it but as long as it works :saluting_face:

2 Likes

Just checked and the linux kernel version is the 7.0.0.30

2 Likes

Nvm for no particular reason it started again.
I think the nvidia-persistenced.service daemon is starting too early (before the completion of nvidia-drm but after nvidia-drm things start).

I don't know how to resolve that.

Here are the logs when the issue were not there (filtered by grep nvidia) :

août 29 16:06:29 pc-johan kernel: nvidia: loading out-of-tree module taints kernel.
août 29 16:06:29 pc-johan kernel: nvidia: module license 'NVIDIA' taints kernel.
août 29 16:06:29 pc-johan kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
août 29 16:06:29 pc-johan kernel: nvidia: module license taints kernel.
août 29 16:06:29 pc-johan kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 235
août 29 16:06:29 pc-johan kernel: nvidia 0000:01:00.0: enabling device (0100 -> 0103)
août 29 16:06:29 pc-johan kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
août 29 16:06:29 pc-johan kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  580.173.02  Tue Jun 23 08:38:17 UTC 2026
août 29 16:06:29 pc-johan kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  580.173.02  Tue Jun 23 08:00:06 UTC 2026
août 29 16:06:29 pc-johan kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
août 29 16:06:29 pc-johan kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 1
août 29 16:06:29 pc-johan kernel: nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
août 29 16:06:29 pc-johan kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
août 29 16:06:29 pc-johan systemd[1]: Starting nvidia-persistenced.service - NVIDIA Persistence Daemon...
août 29 16:06:29 pc-johan systemd[1]: Started nvidia-persistenced.service - NVIDIA Persistence Daemon.
août 29 16:06:30 pc-johan kernel:  pmt_discovery intel_cstate clevo_wmi(OE) cfg80211 pmt_class mxm_wmi bluetooth spi_intel mc i2c_mux mei i2c_algo_bit platform_profile nls_iso8859_1>
août 29 16:06:30 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input17
août 29 16:06:30 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input18
août 29 16:06:30 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input19
août 29 16:06:30 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input20
août 29 16:06:34 pc-johan gnome-shell[1319]: Added device '/dev/dri/card1' (nvidia-drm) using atomic mode setting.
août 29 16:06:40 pc-johan gnome-shell[2404]: Added device '/dev/dri/card1' (nvidia-drm) using atomic mode setting.
août 29 16:06:41 pc-johan systemd[2170]: Started app-gnome-nvidia\x2dsettings\x2dautostart-2718.scope - Application launched by gnome-session-binary.
1 Like

And bellow the first logs when the nvidia devices are not created (samely filtered by grep nvidia) :

sept. 05 14:46:31 pc-johan kernel: nvidia: module license 'NVIDIA' taints kernel.
sept. 05 14:46:31 pc-johan kernel: nvidia: module license taints kernel.
sept. 05 14:46:31 pc-johan kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 507
sept. 05 14:46:31 pc-johan kernel: Modules linked in: snd_compress snd_intel_sdw_acpi ac97_bus x86_pkg_temp_thermal snd_hwdep snd_pcm_dmaengine intel_powerc>
sept. 05 14:46:31 pc-johan kernel: nvidia 0000:01:00.0: enabling device (0100 -> 0103)
sept. 05 14:46:31 pc-johan kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
sept. 05 14:46:31 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input15
sept. 05 14:46:31 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input16
sept. 05 14:46:31 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input17
sept. 05 14:46:31 pc-johan kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input18
sept. 05 14:46:31 pc-johan kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  580.173.02  Tue Jun 23 08:38:17 UTC 2026
sept. 05 14:46:31 pc-johan kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  580.173.02  Tue Jun 23 08:00:06 UTC 2026
sept. 05 14:46:31 pc-johan kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
sept. 05 14:46:32 pc-johan systemd[1]: Starting nvidia-persistenced.service - NVIDIA Persistence Daemon...
sept. 05 14:46:32 pc-johan nvidia-persistenced[1158]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and t>
sept. 05 14:46:32 pc-johan nvidia-persistenced[1156]: nvidia-persistenced failed to initialize. Check syslog for more details.
sept. 05 14:46:32 pc-johan nvidia-persistenced[1158]: The daemon no longer has permission to remove its runtime data directory /var/run/nvidia-persistenced
sept. 05 14:46:32 pc-johan systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
sept. 05 14:46:32 pc-johan systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
sept. 05 14:46:32 pc-johan systemd[1]: Failed to start nvidia-persistenced.service - NVIDIA Persistence Daemon.
sept. 05 14:46:51 pc-johan systemd[2121]: Started app-gnome-nvidia\x2dsettings\x2dautostart-2674.scope - Application launched by gnome-session-binary.
sept. 05 14:46:52 pc-johan nvidia-settings-autostart.desktop[2680]: ERROR: NVIDIA driver is not loaded
sept. 05 14:46:56 pc-johan systemd[2121]: Started app-gnome-nvidia\x2dsettings-3771.scope - Application launched by gnome-shell.
sept. 05 14:46:56 pc-johan nvidia-settings.desktop[3771]: ERROR: NVIDIA driver is not loaded
sept. 05 14:46:56 pc-johan nvidia-settings.desktop[3771]: ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. Thi>
sept. 05 14:46:56 pc-johan nvidia-settings[3771]: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
sept. 05 14:47:32 pc-johan systemd-udevd[352]: nvidia: Worker [397] processing SEQNUM=4792 is taking a long time
sept. 05 14:47:32 pc-johan (udev-worker)[397]: nvidia: Spawned process '/sbin/modprobe nvidia-drm' [714] is taking longer than 59s to complete
sept. 05 14:49:32 pc-johan systemd-udevd[352]: nvidia: Worker [397] processing SEQNUM=4792 killed
sept. 05 14:49:32 pc-johan systemd-udevd[352]: nvidia: Worker [397] terminated by signal 9 (KILL).
sept. 05 14:50:35 pc-johan kernel:  os_acquire_rwlock_write+0x31/0x50 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  _nv052718rm+0x10/0x40 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? _nv054234rm+0x28c/0x360 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? _nv041359rm+0xdbd/0x1af0 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? _nv000790rm+0x12cc/0x21d0 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? rm_init_adapter+0xcd/0xf0 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? nv_open_device+0x22d/0xb10 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? nvidia_dev_get+0x68/0xd0 [nvidia]
sept. 05 14:50:35 pc-johan kernel:  ? nvkms_open_gpu+0x51/0x90 [nvidia_modeset]
sept. 05 14:50:35 pc-johan kernel:  ? _nv000013kms+0x4d/0x790 [nvidia_modeset]
1 Like

You could try it with a Reinstall of the Driver or use a newer Version. I think the 610 Driver should be available now.

1 Like

Just switched from 580 to 595-open version and the issue is still there.
The logs are the same except for the nvidia driver's version

1 Like

yeah that log pair looks like a race. nvidia-drm is still probing while nvidia-persistenced already queries /dev/nvidia* and bails, then udev kills the stuck modprobe.

try delaying persistenced a bit:

sudo systemctl edit nvidia-persistenced.service

put:

[Unit]
After=systemd-udevd.service

[Service]
ExecStartPre=/bin/sleep 8

then sudo systemctl daemon-reload and reboot a few times on wayland.

after a bad boot check ls /dev/nvidia* and cat /proc/driver/nvidia/version. if those are missing the module never finished init, so swapping 580/595 alone wont stick until the race settles.

1 Like

I just tried and I can confirm the delay is present, but it does not resolve the issue.

The logs are the same (I think both Nvidia persistenced & Nvidia drm are delayed)

1 Like

The cat /proc/... is present with the right driver version, but no device in /dev/nvidia* is created

1 Like

if /proc/driver/nvidia/version is there but /dev/nvidia0 is missing, the module loaded but the device nodes never got created. sleep on persistenced was the wrong lever then. after a bad wayland boot try: sudo nvidia-modprobe -c 0 -u then ls /dev/nvidia* and nvidia-smi. if that brings the nodes up, its the udev create path dying on wayland boot, not the driver package itself. sticky workarounds that have helped me: nvidia-drm.fbdev=0 on the kernel cmdline, or keep the greeter on x11 (which you already said works). also check nvidia-modprobe is actually installed.

1 Like