Troubles with RPMfusion nvidia drivers + SecureBoot setup |

i changed one thing , i switch to x11 because one of my app isn’t working with wayland, but i supposed that we are able to switch between the 2, right ?

dnf list installed \*nvidia\*
Installed Packages
libva-nvidia-driver.x86_64               0.0.12-2.fc40                  @updates
nvidia-gpu-firmware.noarch               20240610-1.fc40                @updates

luc@fedora-40:~$ sudo akmods --force
[sudo] password for luc: 
sudo: akmods: command not found

You have no driver loaded for the gpu.
Check the journal for nvidia and nouveau references.
Also try sudo modprobe nvidia (i think that is the right command).
Do you see errors? If no errors does inxi show the driver is loaded now?
Look at this line for the “driver”:

how do i check the journal ?sorry for dumb question

luc@fedora-40:~$ sudo modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.9.6-200.fc40.x86_64

when i logged in this morning i have the choice with 4 different gnome under the gear wheel and only one will recognize my password

Run the journalctl program in this case like this journalctl -b 0 | grep -e nvidia -e nouveau. See the man journalctl for background.

That says the driver does not exist for this kernel. Not sure how this can be the case if nothing has changed.

Force the driver to be built. sudo akmods --rebuild --force.
Then try the modprobe again.

Edit to fix typos.

luc@fedora-40:~$ journalctl -b 0 | grep -e nvidia -e nouveau
Jul 01 09:45:10 fedora-40 kernel: Command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:45:10 fedora-40 kernel: Kernel command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:45:11 fedora-40 dracut-cmdline[356]: Using kernel command line parameters:  rd.driver.pre=btrfs   BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:45:12 fedora-40 systemd-modules-load[642]: Failed to find module 'nvidia'
Jul 01 09:45:12 fedora-40 systemd-modules-load[642]: Failed to find module 'nvidia-drm'
Jul 01 09:45:14 fedora-40 dkms[1050]: Error! nvidia/550.78 is broken! Missing the source directory or the symbolic link pointing to it.
Jul 01 09:45:38 fedora-40 /usr/libexec/gdm-x-session[4024]: Kernel command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:45:38 fedora-40 /usr/libexec/gdm-x-session[4024]: (II) LoadModule: "nvidia"
Jul 01 09:45:38 fedora-40 /usr/libexec/gdm-x-session[4024]: (WW) Warning, couldn't open module nvidia
Jul 01 09:45:38 fedora-40 /usr/libexec/gdm-x-session[4024]: (EE) Failed to load module "nvidia" (module does not exist, 0)
Jul 01 09:45:51 fedora-40 /usr/libexec/gdm-x-session[4271]: Kernel command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:45:51 fedora-40 /usr/libexec/gdm-x-session[4271]: (II) LoadModule: "nvidia"
Jul 01 09:45:51 fedora-40 /usr/libexec/gdm-x-session[4271]: (WW) Warning, couldn't open module nvidia
Jul 01 09:45:51 fedora-40 /usr/libexec/gdm-x-session[4271]: (EE) Failed to load module "nvidia" (module does not exist, 0)
Jul 01 09:46:03 fedora-40 /usr/libexec/gdm-x-session[4527]: Kernel command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:46:03 fedora-40 /usr/libexec/gdm-x-session[4527]: (II) LoadModule: "nvidia"
Jul 01 09:46:03 fedora-40 /usr/libexec/gdm-x-session[4527]: (WW) Warning, couldn't open module nvidia
Jul 01 09:46:03 fedora-40 /usr/libexec/gdm-x-session[4527]: (EE) Failed to load module "nvidia" (module does not exist, 0)
Jul 01 09:46:16 fedora-40 /usr/libexec/gdm-x-session[4767]: Kernel command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.9.6-200.fc40.x86_64 root=UUID=98e40898-3caa-4b07-aa84-26a9be30cece ro rootflags=subvol=root rhgb quiet nvidia-drm.modeset=1
Jul 01 09:46:16 fedora-40 /usr/libexec/gdm-x-session[4767]: (II) LoadModule: "nvidia"
Jul 01 09:46:16 fedora-40 /usr/libexec/gdm-x-session[4767]: (WW) Warning, couldn't open module nvidia
Jul 01 09:46:16 fedora-40 /usr/libexec/gdm-x-session[4767]: (EE) Failed to load module "nvidia" (module does not exist, 0)
Jul 01 10:10:27 fedora-40 sudo[9108]:      luc : TTY=pts/0 ; PWD=/home/luc ; USER=root ; COMMAND=/usr/sbin/modprobe nvidia
luc@fedora-40:~$ 


luc@fedora-40:~$ sudo akmods --rebuild --force
[sudo] password for luc: 
sudo: akmods: command not found

Must to akmod not akmods.

I am not in front of my computer, doing this from memory.

Edit: it is akmods.

No pb

luc@fedora-40:~$ sudo akmod --rebuild --force
sudo: akmod: command not found

That confirms what the modprobe reported.

looks like driver has been deleted ? How is that possible ?

luc@fedora-40:~$ sudo mokutil -t /etc/pki/akmods/certs/public_key.der
/etc/pki/akmods/certs/public_key.der is already enrolled

I had some weeks ago similar/same issue and had to do this to resolve

sudo kmod remove 'kmod-nvidia-*' and sudo akmods --force

1 Like

Agreed. The obvious way to do this is to use sudo dnf remove.
You can check the dnf history and see if that happened accidentally.

Use sudo dnf history info that will list the ID of each transaction.
Then you can use sudo dnf history info <ID> to show the details.

You should have these RPMs installed:

$ rpm -qa | grep -e akmod -e  nvidia | sort
akmod-nvidia-550.90.07-1.fc40.x86_64
akmods-0.5.8-8.fc40.noarch
kmod-nvidia-6.9.6-200.fc40.x86_64-550.90.07-1.fc40.x86_64
nvidia-modprobe-550.90.07-1.fc40.x86_64
nvidia-settings-550.90.07-1.fc40.x86_64
xorg-x11-drv-nvidia-550.90.07-1.fc40.x86_64
xorg-x11-drv-nvidia-cuda-libs-550.90.07-1.fc40.x86_64
xorg-x11-drv-nvidia-kmodsrc-550.90.07-1.fc40.x86_64
xorg-x11-drv-nvidia-libs-550.90.07-1.fc40.i686
xorg-x11-drv-nvidia-libs-550.90.07-1.fc40.x86_64
xorg-x11-drv-nvidia-power-550.90.07-1.fc40.x86_64

sudo kmod remove 'kmod-nvidia-*' remove kmod nvidia , should i reinstall nvidia rpm driver in between as sudo akmods --force isn’t recognize by my computer ? do i need to redo all the signing/key/ bios thing?

No just remove and then force after that restart

It will not help as you no longer have akmods installed!

First prove you have the required RPMs installed as I showed above.

I was having exactly same issues before it says can’t find Nvidia etc and these commands fixed my issue

1 Like
luc@fedora-40:~$ sudo dnf history info
[sudo] password for luc: 
Transaction ID : 83
Begin time     : Mon 01 Jul 2024 01:59:08 AM CEST
Begin rpmdb    : c05f5fc72fe78f840aa364b5960f06f3143d444655154e3b57605dcf19ca59bd
End time       : Mon 01 Jul 2024 01:59:19 AM CEST (11 seconds)
End rpmdb      : d2c3eb2a263a3c08c8d586d018ff6cb451da6b2eb8114d681e74a820c45bd322
User           : Luc <luc>
Return-Code    : Success
Releasever     : 
Command Line   : 
Comment        : 
Packages Altered:
    Removed akmod-nvidia-3:550.90.07-1.fc40.x86_64                      @@System
    Removed akmods-0.5.8-8.fc40.noarch                                  @@System
    Removed annobin-docs-12.57-1.fc40.noarch                            @@System
    Removed annobin-plugin-gcc-12.57-1.fc40.x86_64                      @@System
    Removed ansible-srpm-macros-1-14.fc40.noarch                        @@System
    Removed debugedit-5.0-14.fc40.x86_64                                @@System
    Removed dwz-0.15-6.fc40.x86_64                                      @@System
    Removed efi-srpm-macros-5-11.fc40.noarch                            @@System
    Removed egl-gbm-2:1.1.1-4.fc40.x86_64                               @@System
    Removed egl-wayland-1.1.13-3.fc40.x86_64                            @@System
    Removed fakeroot-1.34-1.fc40.x86_64                                 @@System
    Removed fakeroot-libs-1.34-1.fc40.x86_64                            @@System
    Removed fonts-srpm-macros-1:2.0.5-14.fc40.noarch                    @@System
    Removed forge-srpm-macros-0.3.1-1.fc40.noarch                       @@System
    Removed fpc-srpm-macros-1.3-12.fc40.noarch                          @@System
    Removed gcc-plugin-annobin-14.1.1-6.fc40.x86_64                     @@System
    Removed ghc-srpm-macros-1.9-1.fc40.noarch                           @@System
    Removed gnat-srpm-macros-6-5.fc40.noarch                            @@System
    Removed go-srpm-macros-3.5.0-1.fc40.noarch                          @@System
    Removed http-parser-2.9.4-11.fc40.x86_64                            @@System
    Removed kernel-srpm-macros-1.0-23.fc40.noarch                       @@System
    Removed kmod-nvidia-6.9.6-200.fc40.x86_64-3:550.90.07-1.fc40.x86_64 @@System
    Removed kmodtool-1.1-10.fc40.noarch                                 @@System
    Removed libgit2-1.7.2-1.fc40.x86_64                                 @@System
    Removed lua-srpm-macros-1-13.fc40.noarch                            @@System
    Removed nvidia-modprobe-3:550.90.07-1.fc40.x86_64                   @@System
    Removed nvidia-persistenced-3:550.90.07-1.fc40.x86_64               @@System
    Removed nvidia-settings-3:550.90.07-1.fc40.x86_64                   @@System
    Removed ocaml-srpm-macros-9-3.fc40.noarch                           @@System
    Removed openblas-srpm-macros-2-16.fc40.noarch                       @@System
    Removed opencl-filesystem-1.0-20.fc40.noarch                        @@System
    Removed package-notes-srpm-macros-0.5-11.fc40.noarch                @@System
    Removed perl-srpm-macros-1-53.fc40.noarch                           @@System
    Removed pyproject-srpm-macros-1.12.0-1.fc40.noarch                  @@System
    Removed python-srpm-macros-3.12-7.fc40.noarch                       @@System
    Removed python3-babel-2.15.0-1.fc40.noarch                          @@System
    Removed python3-progressbar2-3.53.2-11.fc40.noarch                  @@System
    Removed python3-pygit2-1.14.0-1.fc40.x86_64                         @@System
    Removed python3-rpmautospec-0.6.5-1.fc40.noarch                     @@System
    Removed python3-rpmautospec-core-0.1.4-3.fc40.noarch                @@System
    Removed python3-typing-extensions-4.9.0-3.fc40.noarch               @@System
    Removed python3-utils-3.7.0-3.fc40.noarch                           @@System
    Removed qt5-srpm-macros-5.15.14-1.fc40.noarch                       @@System
    Removed qt6-srpm-macros-6.7.1-1.fc40.noarch                         @@System
    Removed redhat-rpm-config-286-1.fc40.noarch                         @@System
    Removed rpm-build-4.19.1.1-1.fc40.x86_64                            @@System
    Removed rpmdevtools-9.6-7.fc40.noarch                               @@System
    Removed rust-srpm-macros-26.3-1.fc40.noarch                         @@System
    Removed time-1.9-23.fc40.x86_64                                     @@System
    Removed xorg-x11-drv-nvidia-3:550.90.07-1.fc40.x86_64               @@System
    Removed xorg-x11-drv-nvidia-cuda-3:550.90.07-1.fc40.x86_64          @@System
    Removed xorg-x11-drv-nvidia-cuda-libs-3:550.90.07-1.fc40.x86_64     @@System
    Removed xorg-x11-drv-nvidia-kmodsrc-3:550.90.07-1.fc40.x86_64       @@System
    Removed xorg-x11-drv-nvidia-libs-3:550.90.07-1.fc40.x86_64          @@System
    Removed xorg-x11-drv-nvidia-power-3:550.90.07-1.fc40.x86_64         @@System
    Removed zig-srpm-macros-1-2.fc40.noarch                             @@System
    Removed zstd-1.5.6-1.fc40.x86_64                                    @@System
luc@fedora-40:~$ 


that’s the history before i remove anything

Ok so that explains why the drivers are no longer installed.
You removed them.

You will have to reinstall the rpmfusion nvidia drivers, use the rpmfusion howto Howto/NVIDIA - RPM Fusion the good news is that you will you have already setup the key for secure boot so that step does not need to be repeated.

i swear i didn’t remove anything , i’ll remenber to type sudo dnf remove, i didn’t, i want my computer to run , will never do that

luc@fedora-40:~$ sudo kmod remove 'kmod-nvidia-*'
invalid command 'remove'

But the history says it was removed. And indeed the RPMs are missing right?
From the dnf history you can get the exact command that was run and when it was run.
What was the command tha cause akmods etc to be removed?

As an example here is a history from my system:

$ sudo dnf history  | head
ID     | Command line                                                      | Date and time    | Action(s)      | Altered
------------------------------------------------------------------------------------------------------------------------
   539 | -y reinstall --nogpgcheck --disablerepo=* /tmp/akmods.N2TZYQ7D/re | 2024-07-01 09:34 | R              |    2
   538 | -y reinstall --nogpgcheck --disablerepo=* /tmp/akmods.acR31hzW/re | 2024-06-29 13:12 | R              |    2
   537 | -y install --nogpgcheck --disablerepo=* /tmp/akmods.lba2XzZK/resu | 2024-06-29 13:11 | Install        |    1
   536 | install akmod-nvidia                                              | 2024-06-29 13:10 | Install        |   15 EE
   535 | -vy update --refresh                                              | 2024-06-29 10:00 | C, E, I, U     |  171
   534 | install krdp                                                      | 2024-06-23 11:38 | Install        |    2
   533 | update sfind --refresh                                            | 2024-06-23 11:30 | Upgrade        |    1
   532 | install libdrm-devel                                              | 2024-06-23 10:53 | Install        |    2

during installation of rpm nvidia driver following the how to , it says

Please remember to wait after the RPM transaction ends, until the kmod get built. This can take up to 5 minutes on some systems.

my computer freezed during that time and i had to hard restart it , is that normal behavior ?