Switching to kmod Nvidia driver causes display freezing

Hello all,

I have a machine running an RTX 4090 and I setup cuda and the drivers back in late 2024 before there was native support for from Alma. I installed the drivers from ELRepo and everything worked fine. Fast forward to now, I need to update my driver’s and cuda and I see it is natively supported now ( AlmaLinux OS 9 and 10 - Now with Native Support for NVIDIA | AlmaLinux OS ). “That’s great!” I think and I update my kernel and switch to 9.8 before following along with the guide.

Everything installs correctly. I sudo reboot and that’s when things go wrong. Right now, the login screen flickers, freezes, and I have to login by forcing grub to go to the terminal. This has happened twice now as I’ve tried to swap kernels and update what I can. Has anyone else had this issue? As far as I can tell, it’s not a kernel and driver mismatch. I’m running 5.14.0-667.66.2.el9_8.x86_64.

Thanks.

I reverted back to the old DKMS as per A03 R9 ❯ NVIDIA: Installation on 9.x | AlmaLinux Wiki and that works for me now.

Hi,

Since the DKMS driver works, this may be related to a conflict with the previous ELRepo driver or an issue with the precompiled NVIDIA kernel module.

Could you check the following when using the affected driver?

rpm -qa | grep -Ei 'nvidia|cuda|dkms' | sort
modinfo -n nvidia
journalctl -b -k | grep -Ei 'NVRM|nvidia|nouveau|drm'

This should help identify any driver conflicts or kernel module issues.

Thanks.

Userland talks to kernel. Kernel talks to hardware. GPU drivers have thus two parts:

  • Userland part of driver is used by Xorg/Wayland
  • Kernel part of driver is a kernel module

ELRepo builds and packages both parts.
NVidia and AlmaLinux build and package both parts.

One cannot mix packages from ELRepo with packages from NVidia.
Did you uninstall all ELRepo packages before installing anything from NVidia/Alma?


Kernel modules are either prebuilt in package or built in your system with dkms.
The dkms builds for specific kernel version. The prebuilt is for specific kernel version,
except ELRepo builds modules in way that they work with similar kernel versions.


CUDA is also a userland component. It does depend on the kernel modules of the GPU drivers. It was possible to install whole GPU drivers from ELRepo and just add CUDA from NVidia’s repo (with some care).