I’m a recent Fedora user trying to install nvidia drivers through the non-free RPM fusion library. I’ve followed the guide as outlined here and I’m facing the issue on boot of receiving the message “nvidia kernel module missing falling back to nouveau”.
As I understand, akmod-nvidia is supposed to generate the kmod-nvidia module which would be visible with “dnf list installed”. There is no such package. Some forums suggested using the command “dracut --regenerate-all --force” to generate the nvidia kernel module but I get the error:
libkmod: ERROR libkmod/libkmod-module.c:191 kmod_module_parse_depline: ctx=0x5589fd8cdab0 path=/lib/modules/6.8.11-300.fc40.x86_64//extra/nvidia-modeset.ko error=No such file or directory
I am not sure where to go from here. I’ve made sure to wait the 5 minutes after installing the nvidia drivers for the kernel module to be created.
I hope my understanding of things is correct. Any advice would be appreciated!
System: Asus Zephyrus G14 2020 (nvidia rtx 2060)
Secure boot disabled
Graphics card confirmed visible through terminal
Lets try and verify everything.
Please post as preformatted text using the </> button on the toolbar the results of the following commands. inxi -Fzxx dnf list installed \*nvidia\* mokutil --sb-state cat /proc/cmdline
Once all those are posted we can work from that starting point.
The dracut command was a red herring since it does not work unless the drivers are properly there to start with and should not be required.
Here are some additional outputs in case they are helpful. Jeff V - I noticed in one of your posts you didn’t recommend having the nvidia non-free repository enabled. It was enabled for me so I disabled it and reinstalled the nvidia drivers. Here are my current repositories.
imogen@fedora:~$ dnf repolist
repo id repo name
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
fedora Fedora 40 - x86_64
fedora-cisco-openh264 Fedora 40 openh264 (From Cisco) - x86_64
rpmfusion-free RPM Fusion for Fedora 40 - Free
rpmfusion-free-updates RPM Fusion for Fedora 40 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 40 - Nonfree
rpmfusion-nonfree-updates RPM Fusion for Fedora 40 - Nonfree - Updates
updates Fedora 40 - x86_64 - Updates
Here’s one more command.
imogen@fedora:~$ sudo akmods --force
Checking kmods exist for 6.8.11-300.fc40.x86_64Warning: Could not determine what package owns /lib/modules/6.8.11-300.fc40.x86_64/extra/nvi[ OK ]
Actually I always recommend having the rpmfusion-nonfree-nvidia-drivers repo enabled. The other rpmfusion repos are really optional depending upon what other packages besides the nvidia drivers are being installed.
Looking at that information the only thing I see missing is the kmod-nvidia package for the booted kernel. That package is locally created and installed as the final step of installing the drivers and for kernel upgrades, but a quick reboot can interfere with that stage of the install.
That usually can be managed by running sudo akmods --force then rebooting after the command ends.
EDIT
Maybe try sudo akmods --force --rebuild --kernels 6.8.11-300.fc40.x86_64 since from your post above it seems you may have already tried the akmods command. The response you received also seems to indicate an interrupted akmods process.
Note that editing earlier posts and adding or changing info can be very confusing in a linear discussion.
Just reinstalled nvidia drivers with pmfusion-nonfree-nvidia-drivers repo enabled and tried the above command - here is the response below. Maybe this means we are getting somewhere?
root@fedora:~# sudo akmods --force --rebuild --kernels 6.8.11-300.fc40.x86_64
Checking kmods exist for 6.8.11-300.fc40.x86_64 [ OK ]
Building and installing nvidia-kmod [FAILED]
Could not install newly built RPMs. You can find them and the logfile in:
/var/cache/akmods/nvidia/550.78-1-for-6.8.11-300.fc40.x86_64.failed.log
[FAILED]
Here’s a wetransfer link with the logfile. Hope that meets the guidelines for the forum, not sure about links to external files.
I won’t use file sharing services that require me to accept cookies. You should be able to identify a few lines with the error and post those as pre-formatted text.
Some non-free drivers do need the nvidia-gpu-firmware package.
I missed that in my earlier review. Thanks for catching it.
Yes that package is needed sudo dnf install nvidia-gpu-firmware
However the firmware seems not the cause of failure to build the kmod-nvidia package.
@imogen
You can usually post that log here the same as you did the other information. It should have the actual problem shown in the summary at the end of the log or at least indication of the cause.
I also do not like being forced to accept cookies so cannot look at the linked log.
I have reinstalled fedora and for whatever reason the installation was successful this time. I looked through the log but was unable to identity the issue, I’m afraid it’s beyond me. It’s also 8MB of text which is why I didn’t post it here in the first place.
Sorry to wrap up the thread without a real answer but unless you want to troubleshoot more I’m satisfied now.
Glad your Nvidia driver is working. If you haven’t had annoying encounters with Nvidia drivers, you have missed one of the most common shared experiences among linux users.
Look for the first occurrence of error: in the log. Often the first error produces a cascade of subsequent errors, resulting in huge log files. Understanding why your initial attempt failed can help others – for every person who encounters a problem, only a small percentage will actually report it. Linux has become much more complicated and many new issues are what I call “attractive nuisances” because appear to be easy solutions but contain dangers that inexperienced users may not recognize. Examples are rebooting before background processing has finished, or installing a new package or an update without realizing that a reboot is needed for the change to take effect.
Because most linux support is done through online forums where the shell (command-line) and text are the most compact and effective way to communicate, new linux users will benefit from spending some time getting familiar with command-line tools using a reliable reference such as Linux Command.