“Nvidia kernel module missing, falling back to nouveau” (Fedora 40) kernel 6.8.9-300.fc40.x86_64

I updated My fedora kernel from kernel-6.3.12-200.fc38.x86_64 to 6.8.9-300.fc40.x86_64

but in my new kernel i am getting “Nvidia kernel module missing, falling back to nouveau”
but its working fine in old kernel
i tried reinstalling new kernel and gave time to settle but still the issue is there

few Infos Below

 dnf list --installed *nvidia*
zsh: no matches found: *nvidia*
mokutil --sb-state
SecureBoot disabled
> dnf list installed \*nvidia\*
> Installed Packages
> akmod-nvidia.x86_64                                     3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> kmod-nvidia-6.3.12-200.fc38.x86_64.x86_64               3:550.78-1.fc38                @@commandline                   
> kmod-nvidia-6.8.9-300.fc40.x86_64.x86_64                3:550.78-1.fc40                @@commandline                   
> nvidia-gpu-firmware.noarch                              20240513-1.fc40                @updates                        
> nvidia-modprobe.x86_64                                  3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> nvidia-persistenced.x86_64                              3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> nvidia-settings.x86_64                                  3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> xorg-x11-drv-nvidia.x86_64                              3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> xorg-x11-drv-nvidia-cuda.x86_64                         3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> xorg-x11-drv-nvidia-cuda-libs.x86_64                    3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> xorg-x11-drv-nvidia-kmodsrc.x86_64                      3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> xorg-x11-drv-nvidia-libs.x86_64                         3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
> xorg-x11-drv-nvidia-power.x86_64                        3:550.78-1.fc40                @rpmfusion-nonf

sudo dnf list kmod*
zsh: no matches found: kmod*

sudo akmods  
Checking kmods exist for 6.8.9-300.fc40.x86_64             [  OK  ]
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
Copr repo for better_fonts owned by dawid                                               68  B/s | 341  B     00:05    
Errors during downloading metadata for repository 'copr:copr.fedorainfracloud.org:dawid:better_fonts':
  - Status code: 404 for https://download.copr.fedorainfracloud.org/results/dawid/better_fonts/fedora-40-x86_64/repodata/repomd.xml (IP: 2600:9000:2658:c800:4:bbc1:1840:93a1)
Error: Failed to download metadata for repo 'copr:copr.fedorainfracloud.org:dawid:better_fonts': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: copr:copr.fedorainfracloud.org:dawid:better_fonts
Last metadata expiration check: 0:47:46 ago on Wednesday 22 May 2024 12:25:46 AM.
Package akmod-nvidia-3:550.78-1.fc40.x86_64 is already installed.
Package xorg-x11-drv-nvidia-cuda-3:550.78-1.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Please show us the output of lspci -nnk | grep -iA3 -E "3d|vga" and inxi -Fzxx

l

spci -nnk | grep -iA3 -E "3d|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
	Subsystem: Lenovo Device [17aa:38ec]
	Kernel driver in use: i915
	Kernel modules: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
	Subsystem: Lenovo Device [17aa:38ec]
	Kernel driver in use: nouveau
	Kernel modules: nouveau
inxi -Fzxx
System:
  Kernel: 6.8.9-300.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-34.fc40
  Desktop: GNOME v: 46.1 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: LENOVO product: 81FK v: Lenovo Ideapad 330-15ICH
    serial: <superuser required> Chassis: type: 10 v: Lenovo Ideapad 330-15ICH
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0K17763 WIN
    serial: <superuser required> part-nu: LENOVO_MT_81FK_BU_idea_FM_Lenovo
    Ideapad 330-15ICH UEFI: LENOVO v: 7ZCN37WW date: 11/27/2020
Battery:
  ID-1: BAT0 charge: 23.6 Wh (96.3%) condition: 24.5/43.8 Wh (56.0%)
    volts: 12.0 min: 11.2 model: Sunwoda L17D3PB0 serial: <filter>
    status: discharging
CPU:
  Info: quad core model: Intel Core i5-8300H bits: 64 type: MT MCP
    arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 812 high: 900 min/max: 800/4000 cores: 1: 800 2: 800
    3: 800 4: 800 5: 900 6: 800 7: 800 8: 800 bogomips: 36799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Lenovo
    driver: i915 v: kernel arch: Gen-9.5 ports: active: eDP-1 empty: DP-1,
    HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:3e9b
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Lenovo
    driver: nouveau v: kernel arch: Pascal pcie: speed: 2.5 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:1c8d temp: 40.0 C
  Device-3: Realtek EasyCamera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-8:2 chip-ID: 0bda:58ea
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x15d5 res: 1920x1080 dpi: 142
    diag: 394mm (15.5")
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.0.7 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    device-ID: 8086:3e9b
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348
  API: ALSA v: k6.8.9-300.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.6 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Lenovo driver: ath10k_pci v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 07:00.0 chip-ID: 168c:0042
  IF: wlp7s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8168
  IF: enp8s0 state: down mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-14:3 chip-ID: 0cf3:e500
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 4.2 lmp-v: 8
Drives:
  Local Storage: total: 1.14 TiB used: 40.26 GiB (3.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 250GB
    size: 232.89 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 44.9 C
  ID-2: /dev/sda vendor: Western Digital model: WD10SPZX-24Z10
    size: 931.51 GiB speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 83.92 GiB used: 39.95 GiB (47.6%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 273.5 MiB (28.1%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 49.7 MiB (51.8%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 83.92 GiB used: 39.95 GiB (47.6%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 7.62 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 48.0 C pch: 50.0 C mobo: N/A gpu: nouveau
    temp: 40.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 8 GiB available: 7.62 GiB used: 3.12 GiB (41.0%)
  Processes: 950 Power: uptime: 4m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 13 Compilers: gcc: 14.1.1 Shell: Zsh v: 5.9
    running-in: gnome-terminal inxi: 3.3.34

This mean that zsh errored out and did not run the dnf command.
(bash does not error out like this)

In zsh you have to use quotes to allow the command to work as intended like this:

dnf list --installed '*nvidia*'

Thanks for the info :slight_smile:

So still no help

Sorry for the late reply.

The nvidia driver you show as installed should support that GPU.

Do you have secureboot enabled or disabled.?
mokutil --sb-state will answer that.

If secure boot is enabled then the drivers must be signed before they can be loaded by the kernel. There are many threads here that show the need to check that status.

To sign the kernel modules follow these steps. (If you do not want to follow these steps then disable secure boot within the bios settings.)

  1. perform all the steps shown in the file /usr/share/doc/akmods/README.secureboot. You must use sudo with those commands.
  2. remove the unsigned kernel modules with sudo dnf remove kmod-nvidia-$(uname -r)
  3. Upgrade the system with sudo dnf upgrade
    At present that should install the newer kernel 6.8.10, and would also build the new modules for that kernel as well as building the modules for the current 6.8.9 kernel.
    wait at least 5 minutes after the upgrade completes before rebooting!
  4. Verify the modules are rebuilt properly with sudo akmods --force --rebuild
  5. reboot.

The modules should now load. This can be verified with lsmod | grep nvidia or nvidia-smi both of which should show results if the modules have properly loaded.

If neither of those commands show suitable results let us know.

I don’t see the output from dnf list --installed '*nvidia*' (zsh form of the command), so assume watchers were waiting for the data.

1 Like
 dnf list installed \*nvidia\*
 Installed Packages
akmod-nvidia.x86_64                                     3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.3.12-200.fc38.x86_64.x86_64               3:550.78-1.fc38                @@commandline                   
kmod-nvidia-6.8.9-300.fc40.x86_64.x86_64                3:550.78-1.fc40                @@commandline                   
nvidia-gpu-firmware.noarch                              20240513-1.fc40                @updates                        
nvidia-modprobe.x86_64                                  3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                              3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                  3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                              3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                         3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                    3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                      3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                         3:550.78-1.fc40                @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                        3:550.78-1.fc40                @rpmfusion-nonf

Will this help

Already mentioned in 1st post

But here it is again

mokutil --sb-state
SecureBoot disabled

I took the liberty of editing your post above and converted the text fro block quote to preformatted text so it is much easier to read. Text can be posted as preformatted text (which retains the on-screen formatting) by using the </> button on the toolbar or by using ``` on the lines preceding the text and following the text.

I would suggest that you do a repair of the installed modules just as a matter of course with

  1. sudo dnf remove kmod-nvidia-6.8.9-300.fc40.x86_64 to remove the modules that are not being loaded
  2. upgrade the sustem fully with sudo dnf upgrade --refresh.
    Fedora has released kernel 6.8.10 and doing the upgrade should build the modules for that kernel as well as the running kernel (6.8.9)
  3. Wait at least 5 minutes after step 2 completes then verify the modules are properly installed with dnf list installed kmod-nvidia\*.
    If that shows the kmod-nvidia package for the 6.8.10 kernel then reboot.

Let us know the results after this reboot.

If this does not solve the problem and since all the data given to this time does not reveal a cause of the problem we would need more detail.

Please do a new reboot then post the output of sudo dmesg | grep -iE "nvidia|nouveau|secure" and journalctl -b -g nvidia. Please post both as preformatted text as noted above.

1 Like

Thanks for the info upgrading my system fixed the issue but for 6.8.9 kernel, now its not showing

“falling back to nouveau” while booting

below are some results

inxi -G
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 550.78
  Device-3: Realtek EasyCamera driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 24.1.0 driver: X:

lspci -n -n -k | grep -A 2 -e VGA -e 3D
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b]
	Subsystem: Lenovo Device [17aa:38ec]
	Kernel driver in use: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev a1)
	Subsystem: Lenovo Device [17aa:38ec]
	Kernel driver in use: nvidia

but faced another issue which is related to grub Its not showing latest kernel which is 6.8.10 while booting so i cant boot into that to check but its visible in grub-customizer app. which is definitely related to another thread

uname -r
6.8.9-300.fc40.x86_64
dnf list installed kernel
Installed Packages
kernel.x86_64                                          6.8.9-300.fc40                                          @updates

rpm -q kernel-core
kernel-core-6.8.9-300.fc40.x86_64
kernel-core-6.8.10-300.fc40.x86_64

thanks again.

Glad you have the nvidia driver working for 6.8.9. The failure to have grub offer the 6.8.10 kernel is something different, so you should mark this thread as solved and start a new thread for the failed upgrade to 6.8.10.

I already marked the solution