I am using Fedora 39 on a TUF A15 laptop with RTX 4060.
I have used the proprietary NVIDIA driver from RPM Fusion for a long time and it worked great. I keep the system updated with sudo dnf upgrade --refresh.
But a few days ago I started getting the message “NVIDIA Kernel module missing, failing back to nouveau” at boot time. I tried reinstalling the driver dnf packages and rebuilding the kernel module using sudo akmods --rebuild --force --kernels $(uname -r) without success. The rebuild process seems successful according to the logs in /var/cache/akmods/. I have also tried to run sudo dracut --force but that didn’t change anything. I tried reinstalling the driver multiple times, too.
The NVIDIA kernel module seems to be present (?), I tried running find /lib/modules/$(uname -r) -type f -name '*.ko*' | grep "nvidia" and it returned this:
$ modprobe nvidia
modprobe: ERROR: libkmod/libkmod-module.c:895 kmod_module_insert_module() could not find module by name='off'
modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
I am quite surprised if it cause a problem, since managing the GPU in hybrid laptops is basically its reason to exist.
The config file is autogenerated and contains the following:
# Automatically generated by supergfxd
alias nouveau off
alias nvidia off
options nvidia-drm modeset=1
Probably a change in the way that file was created by supergfx in that the file did not get updated when the system was updated but it did get recreated when you did the reinstall of supergfx. Maybe a bug fix?