gridhead / nvidia-auto-installer-for-fedora-linux

A CLI tool which lets you install proprietary NVIDIA drivers and much more easily on Fedora Linux (32 or above and Rawhide)
https://ask.fedoraproject.org/t/nvidia-auto-installer-for-fedora-linux-now-works-with-fedora-linux-36/22310/
GNU General Public License v3.0
483 stars 28 forks source link

Getting "NVIDIA kernel module missing" despite following all instructions #288

Closed sschuberth closed 7 months ago

sschuberth commented 7 months ago

It seems that after some update of my Fedora 39 PC (KDE spin), I'm now at kernel version 6.6.11-200.fc39.x86_64, GPU acceleration stopped working. So I went through all the installation steps, which succeeded, but still the start screen of KDE Plasma shows "NVIDIA kernel module not found. Falling back to Nouveau." even after several reboots and re-installation of akmod-nvidia. Any hints what I could check?

onuralpszr commented 7 months ago

Is your secure boot on ?

sschuberth commented 7 months ago

Hmm, I was about to say "no" as this first shows "Secure boot disabled" (twice), but in the end it also shows "Secure boot is enabled"!?

dmesg | grep -iE 'secure|nouveau|nvidia'
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt4)/vmlinuz-6.6.11-200.fc39.x86_64 root=UUID=5493a814-c2ae-47b7-8a70-7b9b7b8cc117 ro rootflags=subvol=root rhgb quiet initcall_blacklist=simpledrm_platform_driver_init nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
[    0.000000] secureboot: Secure boot disabled
[    0.041048] secureboot: Secure boot disabled
[    0.235871] Kernel command line: BOOT_IMAGE=(hd0,gpt4)/vmlinuz-6.6.11-200.fc39.x86_64 root=UUID=5493a814-c2ae-47b7-8a70-7b9b7b8cc117 ro rootflags=subvol=root rhgb quiet initcall_blacklist=simpledrm_platform_driver_init nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
[   19.778159] Bluetooth: hci0: Secure boot is enabled
sschuberth commented 7 months ago

Is your secure boot on ?

I've double-checked in UEFI settings, and it's disabled.

sschuberth commented 7 months ago

The problem magically disappeared with today's kernel update to version 6.6.12-200.fc39.x86_64.

sschuberth commented 4 months ago

This happened again after the upgrade from Fedora 39 to 40. What helped was:

sudo dnf remove kmod-nvidia-6.8.7-300.fc40.x86_64.x86_64
sudo dnf reinstall akmod-nvidia
FelipeRuizGarcia commented 4 months ago

Hello @sschuberth , glad to see the issue goes away . So, I saw the same issue upgrading the kernel. I fixed just reinstalling the pieces around. This is the script i use to do it.

https://github.com/FelipeRuizGarcia/super-machine-setup/blob/test/utils/fedora/os-fedora-nvidia.sh