F40 Kernel module load error when installing Nvidia drivers(No such device)

Hello, everyone. My problem is that I am installing Nvidia proprietary drivers on my fedora40. And during the installation, there is an error in the console:

ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA device(s), or no NVIDIA device installed in this system is supported by this NVIDIA Linux graphics driver release.

Log file

I saw that at the very end it says that:
“-> Kernel module compilation complete.

→ Kernel module load error: No such device”.

Everything compiled fine, but it did not find the device. But if I type “ lspci | grep -E "VGA|3D"”, The answer would be:

00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)

" lsmod | grep nvidia " and " sudo dmesg | grep -i nvidia " - empty results

The driver version to install is NVIDIA-Linux-x86_64-560.28.03.
Card is RTX 3050 mobile

SecureBoot disabled.(The answer for “ mokutil --sb-state ” is: “SecureBoot disabled”)
Kernel version: Linux 6.10.4-200.fc40.x86_64
Interface: Wayland

We recommend that you use the nvidia drivers package on rpmfusion, not the ones directly from nvidia that I think you have installed.

Suggest you uninstall the nvidia driver and follow the instructions in Howto/NVIDIA - RPM Fusion

As you have secure boot disabled there are no extra steps before you install the rpmfusion drivers. But note that it takes a few minutes after you complete the install of the drivers for a background build of the drivers to complete. You can check if the build is still running by looking at the running jobs with systemctl list-jobs, wait until it reports No jobs running..

I did as you said, namely: opened the site with instructions, installed the drivers from the “Current GeForce/Quadro/Tesla” section. I checked with the command you wrote (systemctl list-jobs) and what is written on the site (modinfo -F version nvidia). After rebooting the system, at boot time there was a message: “Nvidia kernel module missing falling back to nouveau”. But lsmod |grep nouveaureturns nothing.

sudo modprobe nvidia returns “modprobe: ERROR: could not insert ‘nvidia’: No such device”

nvidia-smi returns “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running”

Same error as when installing a closed driver(

dmesg | grep nvidia

lspci -k
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device 132e
Kernel modules: nouveau, nvidia_drm, nvidia
No row “Kernel driver in use …”

You are using a not-yet-openly-available driver. Thus it seems correct that nvidia-smi cannot access it with the version differences.
Please post the output of dnf list installed \*nvidia\* so we can see all the installed packages with the version numbers and repo installed from. Post that text (and all text that you copy & paste) using the preformatted text button </> on the toolbar to retain the on-screen formatting.

You can easily tell which driver is loaded with lsmod | grep -E "nvidia|nouveau"

dnf list installed \*nvidia\*

akmod-nvidia.x86_64                       3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.10.4-200.fc40.x86_64.x86_64 3:555.58.02-1.fc40 @@commandline      
nvidia-modprobe.x86_64                    3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                    3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64           3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686        3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64      3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64        3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686             3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64           3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64          3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver

lsmod | grep -E "nvidia|nouveau" returns nothing

You appear to be missing nvidia-gpu-firmware.noarch.

Unfortunately, that didn’t help solve the problem

At boot time, there’s still a message that: “Nvidia kernel module missing falling back to nouveau”
lsmod | grep -E "nvidia|nouveau" returns nothing

dnf list installed \*nvidia\*

akmod-nvidia.x86_64                       3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.10.4-200.fc40.x86_64.x86_64 3:555.58.02-1.fc40 @@commandline      
nvidia-gpu-firmware.noarch                20240709-1.fc40    @updates           
nvidia-modprobe.x86_64                    3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                    3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64           3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686        3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64      3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64        3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686             3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64           3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64          3:555.58.02-1.fc40 @rpmfusion-nonfree-nvidia-driver

nvidia-smi cannot access nvidia since the modules are not loaded.
What does modinfo nvidia | head -40 tell you.

and definitely you need to install the firmware package mentioned above.

Also please post the output of cat /proc/cmdline

cat /proc/cmdline

BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.10.4-200.fc40.x86_64 root=UUID=49ea47d0-d3d5-4747-916d-80bc0f881966 ro rootflags=subvol=root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau

modinfo nvidia | head 40
head: unable to open ‘40’ for reading: No such file or directory available

I decided to show how the first part of the command works, without redirecting the output stream
modinfo nvidia

filename:       /lib/modules/6.10.4-200.fc40.x86_64/extra/nvidia/nvidia.ko.xz
alias:          char-major-195-*
version:        555.58.02
supported:      external
license:        NVIDIA
firmware:       nvidia/555.58.02/gsp_tu10x.bin
firmware:       nvidia/555.58.02/gsp_ga10x.bin
srcversion:     7CC59AD55E0DD69F0C28592
alias:          pci:v000010DEd*sv*sd*bc06sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
retpoline:      Y
name:           nvidia
vermagic:       6.10.4-200.fc40.x86_64 SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         fedora-3373854442
sig_key:        75:DA:12:04:D0:09:E2:6C:E4:60:A0:6E:2F:FE:D4:76:FD:74:E6:93
sig_hashalgo:   sha256
signature:      01:1E:89:49:80:B5:4E:EE:39:AE:7E:B2:96:7C:95:11:5D:3B:28:73:
		C6:10:D8:F6:10:26:74:E2:30:CC:2D:E8:1C:6B:94:D7:CF:D5:24:29:
		23:00:20:65:6A:1E:64:B0:36:ED:8B:8C:57:59:55:97:77:05:B5:A8:
		9B:D9:2A:1B:02:6D:42:BD:B5:29:24:79:1F:E2:79:EF:D6:FA:58:51:
		55:28:7D:39:26:48:8A:B6:B9:91:C2:C6:5A:28:6E:37:8B:B1:B3:BE:
		EE:CD:C2:EE:39:51:99:E6:1F:19:F2:0A:59:06:26:86:18:E4:DD:1C:
		68:93:09:A9:72:20:BA:E5:BE:5E:BA:9B:6A:49:06:FF:3F:F6:D5:F1:
		94:29:59:2B:EB:D6:05:86:62:A7:44:A1:CC:84:73:1C:26:88:A0:C2:
		5C:54:C5:6C:54:77:E7:64:1C:85:FD:20:7B:3D:12:1C:A8:85:31:78:
		17:9E:19:C1:CF:9F:1C:F6:C9:7E:D7:AD:0A:69:09:5E:16:A0:FF:B6:
		A7:BF:49:1D:20:EE:9D:7A:48:D7:DB:A9:9A:0D:CA:C6:95:4A:BC:42:
		02:54:A4:61:98:A4:93:1B:BB:67:54:F3:83:C1:7F:D1:48:2A:02:2F:
		F2:09:B1:08:74:64:C6:17:D6:15:EA:A3:2F:CE:6F:E7:04:AB:6F:61:
		53:05:DA:AA:0C:50:47:B5:B5:C3:67:4B:66:B4:C4:A8:06:19:F7:D0:
		26:12:71:BC:C9:B5:CD:71:8D:A5:0C:9B:1A:DC:59:C3:0F:2F:FF:99:
		F5:27:5D:87:27:06:8B:B3:81:5C:98:25:2C:89:2D:8C:4D:4B:BB:4C:
		69:C1:64:E3:5E:99:CE:40:41:A4:0D:98:13:66:FE:F9:B9:2F:F8:F0:
		E6:30:BE:E3:31:52:2D:D2:C3:6C:1A:56:8B:60:3D:9E:81:3A:71:F8:
		42:79:67:A2:14:FD:11:1C:47:CD:E8:94:05:76:7A:9F:47:88:5C:C6:
		0E:11:EC:02:E5:26:C8:AB:AA:8A:20:85:7D:96:E3:E7:63:F2:52:BF:
		97:DE:E6:25:A2:76:A1:B3:20:F8:20:1B:1E:76:B7:BD:1F:9A:99:44:
		79:9C:00:6A:21:CE:91:13:5D:DA:C6:AD:F5:76:B4:8D:D5:4A:9C:36:
		3F:42:FC:1F:B1:4B:C4:DF:D6:DC:54:AE:A3:93:02:55:EC:97:FA:24:
		AF:57:96:ED:6D:1F:9E:3A:C4:E2:97:77:D8:31:1E:CF:7B:82:B6:2C:
		2D:CE:F2:05:87:E6:90:11:E9:9F:7E:CA:9A:6D:F0:DF:4A:49:B3:07:
		C7:C3:97:BF:10:8B:7A:7B:B4:E1:0D:7A
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_EnableS0ixPowerManagement:int
parm:           NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm:           NVreg_EnableGpuFirmware:int
parm:           NVreg_EnableGpuFirmwareLogs:int
parm:           NVreg_OpenRmEnableUnsupportedGpus:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_EnablePCIERelaxedOrderingMode:int
parm:           NVreg_RegisterPCIDriver:int
parm:           NVreg_EnableResizableBar:int
parm:           NVreg_EnableDbgBreakpoint:int
parm:           NVreg_EnableNonblockingOpen:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_ExcludedGpus:charp
parm:           NVreg_DmaRemapPeerMmio:int
parm:           NVreg_RmNvlinkBandwidth:charp
parm:           NVreg_ImexChannelCount:int
parm:           NVreg_CreateImexChannel0:int
parm:           rm_firmware_active:charp

sorry, that was a typo.
Should have been head -40

filename:       /lib/modules/6.10.4-200.fc40.x86_64/extra/nvidia/nvidia.ko.xz
alias:          char-major-195-*
version:        555.58.02
supported:      external
license:        NVIDIA
firmware:       nvidia/555.58.02/gsp_tu10x.bin
firmware:       nvidia/555.58.02/gsp_ga10x.bin
srcversion:     7CC59AD55E0DD69F0C28592
alias:          pci:v000010DEd*sv*sd*bc06sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
retpoline:      Y
name:           nvidia
vermagic:       6.10.4-200.fc40.x86_64 SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         fedora-3373854442
sig_key:        75:DA:12:04:D0:09:E2:6C:E4:60:A0:6E:2F:FE:D4:76:FD:74:E6:93
sig_hashalgo:   sha256
signature:      01:1E:89:49:80:B5:4E:EE:39:AE:7E:B2:96:7C:95:11:5D:3B:28:73:
		C6:10:D8:F6:10:26:74:E2:30:CC:2D:E8:1C:6B:94:D7:CF:D5:24:29:
		23:00:20:65:6A:1E:64:B0:36:ED:8B:8C:57:59:55:97:77:05:B5:A8:
		9B:D9:2A:1B:02:6D:42:BD:B5:29:24:79:1F:E2:79:EF:D6:FA:58:51:
		55:28:7D:39:26:48:8A:B6:B9:91:C2:C6:5A:28:6E:37:8B:B1:B3:BE:
		EE:CD:C2:EE:39:51:99:E6:1F:19:F2:0A:59:06:26:86:18:E4:DD:1C:
		68:93:09:A9:72:20:BA:E5:BE:5E:BA:9B:6A:49:06:FF:3F:F6:D5:F1:
		94:29:59:2B:EB:D6:05:86:62:A7:44:A1:CC:84:73:1C:26:88:A0:C2:
		5C:54:C5:6C:54:77:E7:64:1C:85:FD:20:7B:3D:12:1C:A8:85:31:78:
		17:9E:19:C1:CF:9F:1C:F6:C9:7E:D7:AD:0A:69:09:5E:16:A0:FF:B6:
		A7:BF:49:1D:20:EE:9D:7A:48:D7:DB:A9:9A:0D:CA:C6:95:4A:BC:42:
		02:54:A4:61:98:A4:93:1B:BB:67:54:F3:83:C1:7F:D1:48:2A:02:2F:
		F2:09:B1:08:74:64:C6:17:D6:15:EA:A3:2F:CE:6F:E7:04:AB:6F:61:
		53:05:DA:AA:0C:50:47:B5:B5:C3:67:4B:66:B4:C4:A8:06:19:F7:D0:
		26:12:71:BC:C9:B5:CD:71:8D:A5:0C:9B:1A:DC:59:C3:0F:2F:FF:99:
		F5:27:5D:87:27:06:8B:B3:81:5C:98:25:2C:89:2D:8C:4D:4B:BB:4C:
		69:C1:64:E3:5E:99:CE:40:41:A4:0D:98:13:66:FE:F9:B9:2F:F8:F0:
		E6:30:BE:E3:31:52:2D:D2:C3:6C:1A:56:8B:60:3D:9E:81:3A:71:F8:
		42:79:67:A2:14:FD:11:1C:47:CD:E8:94:05:76:7A:9F:47:88:5C:C6:
		0E:11:EC:02:E5:26:C8:AB:AA:8A:20:85:7D:96:E3:E7:63:F2:52:BF:
		97:DE:E6:25:A2:76:A1:B3:20:F8:20:1B:1E:76:B7:BD:1F:9A:99:44:

Is this normal?
sudo dmesg |grep -i secure

[ 0.000000] secureboot: Secureboot disabled
[ 0.018042] secureboot: Secureboot disabled
[ 3.749372] Bluetooth: hci0: Secureboot enabled
[13630.330820] Bluetooth: hci0: Secure boot is enabled
[13664.120374] Bluetooth: hci0: Secure boot is enabled
[23284.689761] Bluetooth: hci0: Secure boot is enabled

Looks odd. What does mokutil --sb-state report?

SecureBoot disabled

I can go into the bios, take a picture



I changed Secure boot mode when I was on windows for FaceIt for CSGO

  • Changing the mode didn’t change anything

I also tried switching from Wayland to X11, but that didn’t do anything either

That screen short does not show the state of the secure boot in the BIOS; you have to open up the section, type return I think will do it.

I think you can ignore the messages about secure boot being enabled from the bluetooth code (expect its a bug to claim that secure boot is enabled in that message).

If you want to find out why the nvidia driver will not load then you need to get more information. This is the way that I debug nvidia driver issues on my systems.

  1. sudo systemctl mask nvidia-fallback.service
  2. reboot
  3. login on a console (you will not have a GUI) you may need to type Ctrl-Alt-F2 to get a console.
  4. sudo modprobe nvidia

I assume that the modprobe will fail, but with an error message that will help to figure what is wrong.

sudo modprobe nvidia returns “modprobe: ERROR: could not insert ‘nvidia’: No such device” yet

In general on the bluetooth I do not really care, the main thing is that the video card to start working

That appears to be saying you do not have a support nvidia GPU.
What does inxi -G report?
What does rpm -qa | grep -i nvidia report?

Maybe you have the wrong nvidia drivers for your GPU?

Maybe I have the wrong drivers. That’s how I started this thread, I can’t install drivers because I can’t find the device.

Perhaps I should clarify: a week ago I had a Windows with the official Nvidia programme installed, which updated the drivers. I had no problems whatsoever.

inxi -G

Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] driver: N/A
  Display: wayland server: X.Org v: 24.1.2 with: Xwayland v: 24.1.2
    compositor: gnome-shell v: 46.4 driver: X: loaded: modesetting dri: iris
    gpu: i915 resolution: 1920x1080~144Hz
  API: OpenGL v: 4.6 vendor: intel mesa v: 24.1.5 renderer: Mesa Intel UHD
    Graphics (TGL GT1)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.

rpm -qa | grep -i nvidia

xorg-x11-drv-nvidia-kmodsrc-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-cuda-libs-555.58.02-1.fc40.x86_64
nvidia-modprobe-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-libs-555.58.02-1.fc40.i686
xorg-x11-drv-nvidia-libs-555.58.02-1.fc40.x86_64
nvidia-settings-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-power-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-555.58.02-1.fc40.x86_64
akmod-nvidia-555.58.02-1.fc40.x86_64
nvidia-persistenced-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-cuda-libs-555.58.02-1.fc40.i686
xorg-x11-drv-nvidia-cuda-555.58.02-1.fc40.x86_64
kmod-nvidia-6.10.4-200.fc40.x86_64-555.58.02-1.fc40.x86_64
nvidia-gpu-firmware-20240709-1.fc40.noarch

I appreciate everyone’s help. I hope we can still solve this problem.

I’ve been trying to solve this problem myself. But as I wrote once above, I could not do it. You are my only hope.

Just to clarify, my laptop is MSI GF63 Thin 11UC.