Nvidia module loading issues half of the time

Ok i missed the reply @Johan on the preference to use wayland to do this since with zorin it works best with X11 then i would highly suggest installing the liquorix kernel as it does allow nvidia to work way better with wayland on that kernel

sudo apt update

sudo add-apt-repository ppa:damentz/liquorix

sudo apt install linux-image-liquorix-amd64

1 Like

Ok, the nvidia-modprobe package was not installed so I installed it (sudo apt install nvidia-modprobe).

Then I executed the command you gave and it just hold indefinitly (no outputs).
When I CTRL+C to exit the process it returns a 130 status code.

When re-executing the command it exits with status code 1.

From the journalctl (with -g nvidia flag) :

sept. 12 15:41:04 pc-johan sudo[8819]:    johan : TTY=pts/2 ; PWD=/home/johan ; USER=root ; COMMAND=/usr/bin/nvidia-modprobe -c 0 -u
sept. 12 15:41:08 pc-johan sudo[8870]:    johan : TTY=pts/2 ; PWD=/home/johan ; USER=root ; COMMAND=/usr/bin/nvidia-modprobe -c 0 -u
sept. 12 15:41:22 pc-johan kernel:  os_acquire_rwlock_write+0x31/0x50 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  portSyncRwLockAcquireWrite+0x10/0x40 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  rmapiLockAcquire+0x27c/0x360 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  kgspInitRm_IMPL+0x1653/0x24d0 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  RmInitAdapter+0xf16/0x2100 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  ? os_release_mutex+0xe/0x20 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  rm_init_adapter+0x135/0x140 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  nv_start_device+0x3f0/0x7c0 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  nv_open_device+0xa3/0x2d0 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  nvidia_dev_get+0x6d/0xe0 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  nvkms_open_gpu+0x5a/0xa0 [nvidia_modeset]
sept. 12 15:41:22 pc-johan kernel:  AllocateDevice+0x45/0x410 [nvidia_modeset]
sept. 12 15:41:22 pc-johan kernel:  ? nv_drm_dev_load+0x10f/0xcd0 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  ? portSyncSpinlockAcquire+0x18/0x30 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  ? __pfx_nv_drm_event_callback+0x10/0x10 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  nv_drm_register_drm_device+0xa2/0x260 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  ? __pfx_nv_drm_register_drm_device+0x10/0x10 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  EnumerateGpus+0x180/0x190 [nvidia_modeset]
sept. 12 15:41:22 pc-johan kernel:  ? nv_drm_probe_devices+0x69/0xa0 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  ? __pfx_nv_linux_drm_init+0x10/0x10 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  ? nv_drm_init+0x31/0x70 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  ? nv_linux_drm_init+0xe/0xff0 [nvidia_drm]
sept. 12 15:41:22 pc-johan kernel:  os_acquire_rwlock_write+0x31/0x50 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  portSyncRwLockAcquireWrite+0x10/0x40 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  rmapiLockAcquire+0x27c/0x360 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  rm_get_power_info+0x38/0x3a0 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  nv_procfs_read_power+0x56/0x1c0 [nvidia]
sept. 12 15:41:22 pc-johan kernel:  nv_procfs_read_lock_power+0x7d/0xb0 [nvidia]
1 Like

However it created the nvidiactl device but not the nvidia0 one.
This also happens after I reboot my pc.

This mades a lot of my gui apps unable to display (but still launchable), so I just remove the nvidia-modprobe package and now I'm fine (but still without usable graphic card)

1 Like

Thanks for pointing out this, but if I can make it works without having to install a different kernel I would prefer :raising_hands:

I'm not a very technical user and I don't really want to take the risk of messing out something and having to reinstall my os.

2 Likes

I know the following is the archlinux wiki, but can maybe it can help ?

From this page :

they say that some users has to use proprietary driver with NVreg_EnableGpuFirmware=0 parameter.
As my card is a Ada Lovelace (NV190/ADXXX), this should normally not affect me (as it is for Ampere architecture).

What do you think ? Is it worth a try ?

2 Likes

Also, it appears that the issue is related to how my laptop's power is supplied.

If my laptop is not plugged in, the issue appears.
If my laptop is plugged in via a power-strip, the issue appears.
But if my laptop is directly plugged in to an electrical outlet, it boots with X11 and I can use my graphic card.

After a google search, do you think those can help ?

2 Likes

Hi back !

Apparently I'm not the only one experiencing this issue :

So, for now I just don't turn off my pc (as currently my Nvidia card is usable), and I'll just wait for the fix to be published :saluting_face:

1 Like