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*
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!
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.)
perform all the steps shown in the file /usr/share/doc/akmods/README.secureboot. You must use sudo with those commands.
remove the unsigned kernel modules with sudo dnf remove kmod-nvidia-$(uname -r)
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!
Verify the modules are rebuilt properly with sudo akmods --force --rebuild
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 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
sudo dnf remove kmod-nvidia-6.8.9-300.fc40.x86_64 to remove the modules that are not being loaded
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)
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.
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
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.