Nvidia module not loaded after installing the drivers in Fedora 37

Hello,

I might need some help, I just have:

  • Installed the NVidia drivers with the akmod-nvidia package from RPMFusion.

  • Added the following kernel parameters to grub: rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1

  • Created /usr/lib/modprobe.d/blacklist-nouveau.conf with:

blacklist nouveau
options nouveau modeset=0

However, I do not seem to be able to load the nvidia module by default:

# modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.0.15-300.fc37.x86_64
# nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

However, if I insert the module manually, everything works correctly:

insmod /lib/modules/6.0.15-300.fc37.x86_64/extra/nvidia/nvidia.ko.xz

# nvidia-smi
Thu Dec 29 15:07:42 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.11    Driver Version: 525.60.11    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   60C    P0    N/A /  N/A |      0MiB /  2048MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

This is an Asus X550J with an i5 4200H CPU and an NVidia 850m.

Any ideas about what could I be doing wrong?

Thanks

This step should have done everything you show below since that is part of the process of installing the drivers.

Please post the output of dnf list installed \*nvidia\* and lsmod | grep nvidia and dmesg | grep -i secure along with cat /proc/cmdline