I fear stuff like this gets asked a lot but I could not find a solution by reading other post about this.
I am unable to get the nvida drivers running correctly. In particular on startup before I am logged into my destop I get the message “nvidia kernel module missing. Falling back to nouveau”. Moreover, I dont think that I am currently able to use my graphics card with nouveau.
For example my graphics card is not listed under “settings”:
Have you typed/tried these lines of code to download nvidia ?
sudo dnf update -y # and reboot if you are not on the latest kernel
sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead
sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support
If you did could you type what is the output of nvidia-smi command ?
Here’s the TL;DR (you’ll probably need to run these with sudo):
# To create the self generated key and certificate:
# To import the key, the command will ask for a password to protect the key
# You will have to enter this password during the special EFI window
mokutil --import /etc/pki/akmods/certs/public_key.der
You can also just disable the secure boot (if you want to) from the UEFI menu and try to compile the nvidia modules again. But ofc thats is just an option. You can also follow the commands provided by Scott.
Yes. Put sudo before those two commands. Once you do this, you should be good to go with the nvidia drivers with secureboot enabled. I suggest rebooting after you run this to get the drivers loaded on boot up.
The modules are probably already created and unsigned. Thus you will likely do best to uninstall the nvidia modules after you have created and enabled the keys as noted above, then reinstall the nvidia driver so the modules are signed when they are created.
Now the drivers should be installed, signed, and should load and work.
To verify they are loaded properly, lsmod | grep nvidia should give you several lines output listing the modules that are loaded. If it does then the drivers are loaded and functional.
Ok the problem seemed to be the secure boot. I checked the README at /usr/share/doc/akmods/README.secureboot again and after that got it working. At least that is what I think. nvidia-smi works now and lsmod | grep nvidia gives:
I was having this same problem with Fedora 36 after updating to kernel 5.19. Even after doing a full uninstall and re-install of akmod-nvidia I would still get the error message when booting “nvidia kernel module missing falling back to nouveau”.