Here is another “almost the same” question about installing, activating and signing the NVIDIA driver(s). Firstly, I would say that I’ve already tried the following guides which failed at some point (or at the very end):
My final goal is to install properly NVIDIA (+ CUDA) drivers and (in addition) to use commands lsmod | grep nvidia (so that it outputs something AND nvidia-smi.
Could you please help in resolving this issue since I already spent a huge amount of time with it?
In addition to what Barry said above, I deal with users having nvidia problems here a lot.
Steps 1-5 on the blog you linked are correct, but step 6 is not.
To fully install the nvidia drivers from rpmfusion you need to
enable the 3rd party repos in the gnome software app.
from the command line install the drivers with sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
Allow about 5 minutes after the install completes for the drivers to be compiled then reboot.
At this point the drivers should load and be functional
The installed nvidia packages can be seen with dnf list installed \*nvidia\*. Please post that so we can see if everything needed is installed.
The loaded modules for the GPU can be seen with lsmod | grep -iE 'nouveau|nvidia' and if it does not show lines with nvidia modules then the modules did not load properly.
The boot process loading the drivers can be seen with dmesg | grep -iE 'nvidia|secure|nouveau'. Please also post that for us.
lsmod | grep -iE 'nouveau|nvidia'
nouveau 3416064 0
mxm_wmi 12288 1 nouveau
drm_ttm_helper 12288 1 nouveau
i2c_algo_bit 20480 2 i915,nouveau
drm_display_helper 208896 2 i915,nouveau
video 77824 4 dell_wmi,dell_laptop,i915,nouveau
ttm 98304 3 drm_ttm_helper,i915,nouveau
wmi 45056 9 dell_wmi_sysman,video,dell_wmi_ddv,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau
dmesg | grep -iE 'nvidia|secure|nouveau'
[ 0.000000] Command line: BOOT_IMAGE=(hd0,gpt4)/vmlinuz-6.4.15-200.fc38.x86_64 root=UUID=bcdg36-fd42-46c3-a130-d288439bee5ab ro rootflags=subvol=root rd.luks.uuid=luks-fdsbne121-473-fb-b3ca-6bf2496deaf9 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[ 0.000000] secureboot: Secure boot enabled
[ 0.000000] Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
[ 0.004867] secureboot: Secure boot enabled
[ 0.043198] Kernel command line: BOOT_IMAGE=(hd0,gpt4)/vmlinuz-6.4.15-200.fc38.x86_64 root=UUID=bcdg36-fd42-46c3-a130-d288439bee5ab ro rootflags=subvol=root rd.luks.uuid=luks-fdsbne121-473-fb-b3ca-6bf2496deaf9 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[ 1.285754] integrity: Loaded X.509 cert 'Fedora Secure Boot CA: fde3432c2d61cvrrt5335d7b20e4cs63b42'
[ 1.285915] integrity: Loaded X.509 cert 'NVIDIA Module Signing MOK sertificate: wdc5361fe1f4bfa89fcc3bd643befbcawgd4'
[ 17.455171] Bluetooth: hci0: Secure boot is enabled
[ 18.972947] nouveau: detected PR support, will not use DSM
[ 18.973237] nouveau 0000:01:00.0: NVIDIA GA107 (b77000a1)
[ 19.070691] nouveau 0000:01:00.0: bios: version 94.07.5b.00.85
[ 19.071742] nouveau 0000:01:00.0: acr: firmware unavailable
[ 19.071894] nouveau 0000:01:00.0: gr: firmware unavailable
[ 19.071930] nouveau 0000:01:00.0: sec2: firmware unavailable
[ 19.072028] nouveau 0000:01:00.0: fb: 8192 MiB GDDR6
[ 19.075764] nouveau 0000:01:00.0: fb: VPR locked, but no scrubber binary!
[ 19.078803] nouveau 0000:01:00.0: DRM: VRAM: 8192 MiB
[ 19.078805] nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
[ 19.078806] nouveau 0000:01:00.0: DRM: BIT table 'A' not found
[ 19.078807] nouveau 0000:01:00.0: DRM: BIT table 'L' not found
[ 19.078808] nouveau 0000:01:00.0: DRM: Pointer to TMDS table not found
[ 19.078809] nouveau 0000:01:00.0: DRM: DCB version 4.1
[ 19.079305] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
[ 19.079599] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
[ 19.079646] nouveau 0000:01:00.0: [drm] No compatible format found
[ 19.079648] nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
[ 28.727620] nouveau 0000:01:00.0: fb: VPR locked, but no scrubber binary!
An interesting part here is that when I’m booting the PC and pressing esc button, I’m able to choose a kernel and it’s showing me to installed available kernels: kernel-6.2.6-300… and kernel-6.4.15-200…
If I choose the former one (i.e., older), everything loads properly and nvidia-smi works and shows nvidia gpu. But if I choose the later one (newer), then I even receive a message that “NVIDIA kernel module missing. Falling back to nouveau” and of course I can’t load nvidia-smi. Is there a way to install properly only the later kernel/driver leaving the older one untouched (in order to revert to it if smth goes wrong)?
Oh, and another strange thing: as I found on the internet, when one writes a command sudo unxz /lib/modules/6.4.15-200.fc38.x86_64/extra/nvidia.ko it should find a file. BUT I can only find sudo unxz /lib/modules/6.4.15-200.fc38.x86_64/extra/nvidia.ko.xz… (Notice extension at the end).
I think I see the issue with the output of the dnf list installed '*nvidia*' command and the dmesg output. Notice from the dmesg output that it clearly shows the firmware was not available.
The nvidia-gpu-firmware package seems to be missing.
Please reinstall it with either sudo dnf reinstall linux-firmware or sudo dnf install nvidia-gpu-firmware. After ensuring that package is installed so the firmware for the gpu is available then reboot and it should work.
This is one of the problems with blindly following instructions on the internet. Fedora uses the compressed kernel modules with the xz extensions and that command was for much older releases where some kernels still preferred the uncompressed modules. The modules should not normally be uncompressed manually since that happens as the kernel loads them.
This shows the modules were never properly built for the 6.4.15 kernel.
After installing the firmware package and before the reboot please run sudo akmods --force and allow that command to return a command line prompt before rebooting.