I’ve been trying to install the Nvidia drivers from rpmfusion and just can’t get them to work. I’m running Rocky 9.3 and have followed this post:
dnf update -y
dnf install akmod-nvidia
I have waited a while until the installation process seemed completed (looking at “top”). After a reboot, the nvidia driver didn’t work though, there were messages about falling back to nouveau.
# rpm -q akmod-nvidia kernel
# uname -r
I have read in another post that one could try running “akmods --force” which I did but that didn’t solve the problem.
I’ve tried to load the module manually and this is where it gets interesting:
# modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.14.0-362.18.1.el9_3.x86_64
The module isn’t in that directory but it can be found in another location: /lib/modules/5.14.0-362.8.1.el9_3.x86_64/extra/nvidia/nvidia.ko.xz
This is from a slightly older kernel version. The directory for the kernel I’m running doesn’t have the extra/nvidia subdirectories at all. I’ve moved that directory somewhere else, uninstalled that older kernel package and ran “akmods --force” again in case it just ended up in the wrong version, but that didn’t result in any changes I could see. Is there more logging output available than just the result of akmods which is:
Checking kmods exist for 5.14.0-362.18.1.el9_3.x86_64 [ OK ]
Building and installing nvidia-kmod [ OK ]
Where did the module go? Should I try renaming the modules folder from the old kernel version to the new one in case these are compatible? Could it be a problem with the nouveau driver being around? It’s blacklisted on the boot command line (rd.driver.blacklist=nouveau modprobe.blacklist=nouveau) as far as I can see, but it seems to be loaded according to lsmod.