NVIDIA kernel module missing, falling back to nouveau

Hi iam on fedora 40 and my kernel version is 6.10.6-200.fc40.x86_64 and i also have kernel 6.8.5-301.fc40.x86_64 and my graphic car is nvidia GeForce GT 720M

Newer nvidia drivers are switching to an open source version, but that is supported only by newer graphics cards. For older cards, changing the configuration to use the proprietary module is necessary.

I have installed from the negativo17 repository. I had to switch the contents of /etc/nvidia/kernel.conf to MODULE_VARIANT=kernel for the proprietary version instead of the new default of MODULE_VARIANT=kernel-open for the open source drivers. Then akmods --rebuild and reboot. Explanation here: Nvidia proprietary and open source kernel modules – negativo17.org

I installed derivers from rpm fusion guide

Now i have to uninstall that and install nvidia driver from scratch

We truly need additional information.
Please describe in detail what you have done since installing fedora on that system.

From the tiny bit you show it seems you may have installed the nvidia drivers (from rpmfusion?) and probably did a full update (using dnf or the software manager?)

Your nvidia card (GT 720M) will only be supported by the nvidia driver version 470xx from rpmfusion so you would need to follow the instructions at
https://rpmfusion.org/Howto/NVIDIA
and
https://rpmfusion.org/Configuration
to enable the repo and install the proper drivers for that particular GPU.

If you have already installed the incorrect drivers they would need to be removed then install the proper drivers for that series of GPU.

Please post the result of dnf list installed \*nvidia\* (as text that you copy and paste using the preformatted text button </> on the toolbar) so we may know which driver you may have installed before we can know how to proceed.

Another factor to consider is that when using uefi boot with secure boot enabled the drivers cannot load unless they have been locally signed and the signing key has been enrolled into the bios as shown at Howto/Secure Boot - RPM Fusion

Many users have problems when installing from the negativo17 repo. Most have 100% success when using the rpmfusion repo since those are tweaked and tested for performance with fedora. I do not ever recommend negativo17 due to personal experience and the many problems reported here.

akmod-nvidia-390xx.x86_64             3:390.157-9.fc40 @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64            3:555.58.02-1.fc40
                                                       @rpmfusion-nonfree-nvidia-driver
nvidia-settings-390xx.x86_64          390.157-3.fc40   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-390xx.x86_64      3:390.157-4.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-390xx-cuda.x86_64 3:390.157-4.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-390xx-cuda-libs.x86_64
                                      3:390.157-4.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-390xx-kmodsrc.x86_64
                                      3:390.157-4.fc40 @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-390xx-libs.x86_64 3:390.157-4.fc40 @rpmfusion-nonfree-updates

mokutil --sb-state

SecureBoot disabled

so i guess i downloaded wrong driver so how to remove all this 390xx drivers

I would use

  1. sudo dnf remove \*nvidia\*
  2. sudo dnf install akmod-nvidia-470xx nvidia-gpu-firmware xorg-x11-drv-nvidia-470xx-cuda --disablerepo rpmfusion-nonfree-nvidia-driver
  3. Wait at least 5 minutes before rebooting

i done as you mention but it still shows error nvidia kernel module missing, falling back to nouveau

dnf list installed \*nvidia\*

Installed Packages
akmod-nvidia-470xx.x86_64                       3:470.256.02-3.fc40 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-470xx-6.10.6-200.fc40.x86_64.x86_64 3:470.256.02-3.fc40 @@commandline
nvidia-gpu-firmware.noarch                      20240811-2.fc40     @updates    
nvidia-persistenced.x86_64                      3:555.58.02-1.fc40  @rpmfusion-nonfree-nvidia-driver
nvidia-settings-470xx.x86_64                    3:470.256.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx.x86_64                3:470.256.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-cuda.x86_64           3:470.256.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-cuda-libs.x86_64      3:470.256.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-kmodsrc.x86_64        3:470.256.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-libs.x86_64           3:470.256.02-1.fc40 @rpmfusion-nonfree-nvidia-driver

first it will show this error

sudo dnf install xorg-x11-drv-nvidia-cuda


Last metadata expiration check: 0:16:29 ago on Friday 23 August 2024 11:23:09 PM.
Error: 
 Problem: problem with installed package xorg-x11-drv-nvidia-470xx-3:470.256.02-1.fc40.x86_64
  - package xorg-x11-drv-nvidia-470xx-3:470.256.02-1.fc40.x86_64 from @System conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree
  - package xorg-x11-drv-nvidia-470xx-3:470.256.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree
  - package xorg-x11-drv-nvidia-470xx-3:470.256.02-1.fc40.x86_64 from rpmfusion-nonfree-updates conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree
  - package akmod-nvidia-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree requires nvidia-kmod-common >= 3:550.67, but none of the providers can be installed
  - package kmod-nvidia-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree requires akmod-nvidia = 3:550.67-1.fc40, but none of the providers can be installed
  - package xorg-x11-drv-nvidia-cuda-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree requires nvidia-kmod >= 3:550.67, but none of the providers can be installed
  - package kmod-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver requires akmod-nvidia = 3:555.58.02-1.fc40, but none of the providers can be installed
  - package kmod-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates requires akmod-nvidia = 3:555.58.02-1.fc40, but none of the providers can be installed
  - package akmod-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-kmod-common >= 3:555.58.02, but none of the providers can be installed
  - package akmod-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates requires nvidia-kmod-common >= 3:555.58.02, but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-modprobe(x86-64) = 3:555.58.02, but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates requires nvidia-modprobe(x86-64) = 3:555.58.02, but none of the providers can be installed
  - cannot install both nvidia-modprobe-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver and nvidia-modprobe-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree
  - cannot install both nvidia-modprobe-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates and nvidia-modprobe-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree
  - package xorg-x11-drv-nvidia-cuda-3:550.67-1.fc40.x86_64 from rpmfusion-nonfree requires nvidia-modprobe(x86-64) = 3:550.67, but none of the providers can be installed
  - conflicting requests
  - package xorg-x11-drv-nvidia-cuda-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates requires nvidia-kmod >= 3:555.58.02, but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-settings(x86-64) = 3:555.58.02, but none of the providers can be installed
  - package xorg-x11-drv-nvidia-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates requires nvidia-settings(x86-64) = 3:555.58.02, but none of the providers can be installed
  - package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64 from rpmfusion-nonfree-updates conflicts with nvidia-settings provided by nvidia-settings-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64 from rpmfusion-nonfree-updates conflicts with nvidia-settings provided by nvidia-settings-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates
  - problem with installed package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64
  - package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver conflicts with nvidia-settings provided by nvidia-settings-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver conflicts with nvidia-settings provided by nvidia-settings-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates
  - package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64 from @System conflicts with nvidia-settings provided by nvidia-settings-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver
  - package nvidia-settings-470xx-3:470.256.02-1.fc40.x86_64 from @System conflicts with nvidia-settings provided by nvidia-settings-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-updates
  - package xorg-x11-drv-nvidia-cuda-3:555.58.02-1.fc40.x86_64 from rpmfusion-nonfree-nvidia-driver requires nvidia-kmod >= 3:555.58.02, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

but then i installed using specific version

sudo dnf install xorg-x11-drv-nvidia-470xx-cuda


Last metadata expiration check: 0:16:53 ago on Friday 23 August 2024 11:23:09 PM.
Dependencies resolved.
================================================================================
 Package              Arch   Version      Repository                       Size
================================================================================
Installing:
 xorg-x11-drv-nvidia-470xx-cuda
                      x86_64 3:470.256.02-1.fc40
                                          rpmfusion-nonfree-nvidia-driver 1.8 M
Installing dependencies:
 nvidia-persistenced  x86_64 3:555.58.02-1.fc40
                                          rpmfusion-nonfree-nvidia-driver  36 k
 opencl-filesystem    noarch 1.0-20.fc40  fedora                          7.5 k
 xorg-x11-drv-nvidia-470xx-cuda-libs
                      x86_64 3:470.256.02-1.fc40
                                          rpmfusion-nonfree-nvidia-driver  34 M

Transaction Summary
================================================================================
Install  4 Packages

Total download size: 36 M
Installed size: 139 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): opencl-filesystem-1.0-20.fc40.noarch.rpm 3.8 kB/s | 7.5 kB     00:01    
(2/4): nvidia-persistenced-555.58.02-1.fc40.x86 6.7 kB/s |  36 kB     00:05    
(3/4): xorg-x11-drv-nvidia-470xx-cuda-470.256.0  54 kB/s | 1.8 MB     00:33    
(4/4): xorg-x11-drv-nvidia-470xx-cuda-libs-470. 1.0 MB/s |  34 MB     00:32    
--------------------------------------------------------------------------------
Total                                           902 kB/s |  36 MB     00:40     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : xorg-x11-drv-nvidia-470xx-cuda-libs-3:470.256.02-1.f   1/4 
  Installing       : nvidia-persistenced-3:555.58.02-1.fc40.x86_64          2/4 
  Running scriptlet: nvidia-persistenced-3:555.58.02-1.fc40.x86_64          2/4 
  Installing       : opencl-filesystem-1.0-20.fc40.noarch                   3/4 
  Installing       : xorg-x11-drv-nvidia-470xx-cuda-3:470.256.02-1.fc40.x   4/4 
  Running scriptlet: xorg-x11-drv-nvidia-470xx-cuda-3:470.256.02-1.fc40.x   4/4 

Installed:
  nvidia-persistenced-3:555.58.02-1.fc40.x86_64                                 
  opencl-filesystem-1.0-20.fc40.noarch                                          
  xorg-x11-drv-nvidia-470xx-cuda-3:470.256.02-1.fc40.x86_64                     
  xorg-x11-drv-nvidia-470xx-cuda-libs-3:470.256.02-1.fc40.x86_64                

Complete!

There was a typo in the command I posted. That has been fixed above.

would you now post the result of sudo dmesg | grep -iE "nvidia|nouveau|secure"

Now i don’t know what happen i updated driver tomorrow night and in morning when i started my laptop it doesn’t boot into os and and i can’t boot into bios either.

So now i have to format my ssd and install os from scratch so which version of fedora is good for nvidia driver.