RPM Fusion NVIDIA driver install issues

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

Do you have secure boot enabled?

If it is so follow this on
https://rpmfusion.org/Howto/Secure%20Boot

It’s disabled!

(mentioned in my original message because it sounds like this is important)

Can you share the full output of inxi -Fzxx as well as dnf list installed \*nvidia\*?

1 Like

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.

3 Likes

Thanks for your help.

imogen@fedora:~$ inxi -Fzxx
System:
  Kernel: 6.8.11-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.2 tk: GTK v: 3.24.42 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: ASUSTeK product: ROG Zephyrus G14 GA401IV_GA401IV
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: GA401IV v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: GA401IV.222 date: 09/28/2023
Battery:
  ID-1: BAT0 charge: 56.7 Wh (100.0%) condition: 56.7/76.0 Wh (74.7%)
    volts: 15.8 min: 15.8 model: ASUSTeK ASUS Battery serial: N/A
    status: not charging
CPU:
  Info: 8-core model: AMD Ryzen 9 4900HS with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
  Speed (MHz): avg: 1499 high: 3000 min/max: 1400/3000 boost: enabled cores:
    1: 1397 2: 1400 3: 1400 4: 1400 5: 1400 6: 1400 7: 1400 8: 1400 9: 1400
    10: 3000 11: 1400 12: 1400 13: 1400 14: 1400 15: 1400 16: 1400
    bogomips: 95818
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU106M [GeForce RTX 2060 Max-Q] vendor: ASUSTeK
    driver: nouveau v: kernel arch: Turing pcie: speed: 8 GT/s lanes: 8 ports:
    active: none empty: DP-1 bus-ID: 01:00.0 chip-ID: 10de:1f12 temp: 43.0 C
  Device-2: AMD Renoir [Radeon Vega Series / Radeon Mobile Series]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 pcie: speed: 16 GT/s
    lanes: 16 ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 04:00.0
    chip-ID: 1002:1636 temp: 53.0 C
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.0
    compositor: gnome-shell driver: X: loaded: nvidia gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: Najing CEC Panda 0x0050 res: 1920x1080 dpi: 158
    diag: 355mm (14")
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.0.8 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi renoir LLVM
    18.1.1 DRM 3.57 6.8.11-300.fc40.x86_64) device-ID: 1002:1636
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: NVIDIA TU106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 8 bus-ID: 01:00.1
    chip-ID: 10de:10f9
  Device-2: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 1002:1637
  Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 04:00.5 chip-ID: 1022:15e2
  Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 04:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.8.11-300.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:2723
  IF: wlp2s0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 5-4:3 chip-ID: 8087:0029
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 931.51 GiB used: 5.94 GiB (0.6%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB
    size: 931.51 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 50.9 C
Partition:
  ID-1: / size: 929.93 GiB used: 5.36 GiB (0.6%) fs: btrfs dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 566.6 MiB (58.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 929.93 GiB used: 5.36 GiB (0.6%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 62.9 C mobo: N/A
  Fan Speeds (rpm): cpu: 2700
  GPU: device: amdgpu temp: 53.0 C device: nouveau temp: 43.0 C fan: 0
Info:
  Memory: total: 40 GiB note: est. available: 38.59 GiB used: 2.69 GiB (7.0%)
  Processes: 448 Power: uptime: 1m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: Compilers: gcc: 14.1.1 Shell: Bash v: 5.2.26
    running-in: gnome-terminal inxi: 3.3.34
imogen@fedora:~$ dnf list installed \*nvidia\*
Installed Packages
akmod-nvidia.x86_64                  3:550.78-1.fc40  @rpmfusion-nonfree-updates
nvidia-modprobe.x86_64               3:550.78-1.fc40  @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64           3:550.78-1.fc40  @rpmfusion-nonfree-updates
nvidia-settings.x86_64               3:550.78-1.fc40  @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64           3:550.78-1.fc40  @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64      3:550.78-1.fc40  @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:550.78-1.fc40  @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64   3:550.78-1.fc40  @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64      3:550.78-1.fc40  @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64     3:550.78-1.fc40  @rpmfusion-nonfree-updates
imogen@fedora:~$ mokutil --sb-state
SecureBoot disabled
imogen@fedora:~$ cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.8.11-300.fc40.x86_64 root=UUID=5c2a1197-8136-4fae-8cf9-ac46b2295f2a ro rootflags=subvol=root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau

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  ]
1 Like

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.

2 Likes

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 don’t see nvidia-gpu-firmware in your dnf list installed. Maybe it is not needed for RPM fusion.

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.

Thanks for your help

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.

1 Like