Troubles with RPMfusion nvidia drivers + SecureBoot setup |

luc@fedora:~$ ps aux | grep kmod
luc        60180  0.0  0.0 227788  2176 pts/1    S+   23:57   0:00 grep --color=auto kmod

That single line is exactly what I suggested above.

hello and thanks for your advises, so it seems that i should finally be fine, with those nvidia drivers ?

Only you can tell us the results of following the suggested actions.
Have you completed the suggested steps and then rebooted to see if everything worked as expected?

yes i did every steps provided here , did a reboot and send you the result of : ps aux | grep kmod. I also check systemctl list-jobs it returns : No jobs running.
and systemctl status give

luc@fedora40:~$ systemctlstatus
bash: systemctlstatus: command not found...
luc@fedora40:~$ systemctl status
● fedora40
    State: running
    Units: 513 loaded (incl. loaded aliases)
     Jobs: 0 queued
   Failed: 0 units
    Since: Sun 2024-07-07 19:49:20 CEST; 1min 15s ago
  systemd: 255.8-1.fc40
   CGroup: /
           β”œβ”€init.scope
           β”‚ └─1 /usr/lib/systemd/systemd --switched-root --system --deserializ>
           β”œβ”€system.slice
           β”‚ β”œβ”€ModemManager.service
           β”‚ β”‚ └─1212 /usr/sbin/ModemManager
           β”‚ β”œβ”€NetworkManager.service
           β”‚ β”‚ └─1246 /usr/sbin/NetworkManager --no-daemon
           β”‚ β”œβ”€abrt-journal-core.service
           β”‚ β”‚ └─1234 /usr/bin/abrt-dump-journal-core -D -T -f -e
           β”‚ β”œβ”€abrt-oops.service
           β”‚ β”‚ └─1241 /usr/bin/abrt-dump-journal-oops -fxtD
           β”‚ β”œβ”€abrt-xorg.service
           β”‚ β”‚ └─1242 /usr/bin/abrt-dump-journal-xorg -fxtD
           β”‚ β”œβ”€abrtd.service
           β”‚ β”‚ └─1207 /usr/sbin/abrtd -d -s
           β”‚ β”œβ”€accounts-daemon.service
           β”‚ β”‚ └─939 /usr/libexec/accounts-daemon
           β”‚ β”œβ”€alsa-state.service
           β”‚ β”‚ └─1216 /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/al>
           β”‚ β”œβ”€auditd.service
           β”‚ β”‚ └─898 /usr/sbin/auditd
           β”‚ β”œβ”€avahi-daemon.service
           β”‚ β”‚ β”œβ”€918 "avahi-daemon: running [fedora40.local]"
           β”‚ β”‚ └─978 "avahi-daemon: chroot helper"
           β”‚ β”œβ”€chronyd.service
           β”‚ β”‚ └─1091 /usr/sbin/chronyd -F 2
           β”‚ β”œβ”€colord.service
           β”‚ β”‚ └─3577 /usr/libexec/colord
           β”‚ β”œβ”€crond.service
           β”‚ β”‚ └─3040 /usr/sbin/crond -n
           β”‚ β”œβ”€cups.service
           β”‚ β”‚ └─1316 /usr/sbin/cupsd -l
           β”‚ β”œβ”€dbus-broker.service
           β”‚ β”‚ β”œβ”€910 /usr/bin/dbus-broker-launch --scope system --audit
           β”‚ β”‚ └─915 dbus-broker --log 4 --controller 9 --machine-id 8ca966e5e3>
           β”‚ β”œβ”€firewalld.service
           β”‚ β”‚ └─1217 /usr/bin/python3 -sP /usr/sbin/firewalld --nofork --nopid
           β”‚ β”œβ”€flatpak-system-helper.service
           β”‚ β”‚ └─5766 /usr/libexec/flatpak-system-helper
           β”‚ β”œβ”€fwupd.service
           β”‚ β”‚ └─5411 /usr/libexec/fwupd/fwupd
           β”‚ β”œβ”€gdm.service
           β”‚ β”‚ └─3057 /usr/sbin/gdm
           β”‚ β”œβ”€geoclue.service
           β”‚ β”‚ └─3935 /usr/libexec/geoclue
           β”‚ β”œβ”€gssproxy.service
           β”‚ β”‚ └─1391 /usr/sbin/gssproxy -D
           β”‚ β”œβ”€low-memory-monitor.service
           β”‚ β”‚ └─921 /usr/libexec/low-memory-monitor
           β”‚ β”œβ”€mcelog.service
           β”‚ β”‚ └─924 /usr/sbin/mcelog --daemon --foreground
           β”‚ β”œβ”€ollama.service
           β”‚ β”‚ └─3005 /usr/local/bin/ollama serve
           β”‚ β”œβ”€packagekit.service
           β”‚ β”‚ └─3627 /usr/libexec/packagekitd
           β”‚ β”œβ”€passim.service
           β”‚ β”‚ └─5459 /usr/libexec/passimd
           β”‚ β”œβ”€pcscd.service
           β”‚ β”‚ └─3739 /usr/sbin/pcscd --foreground --auto-exit
           β”‚ β”œβ”€piavpn.service
           β”‚ β”‚ └─1320 /opt/piavpn/bin/pia-daemon
           β”‚ β”œβ”€polkit.service
           β”‚ β”‚ └─932 /usr/lib/polkit-1/polkitd --no-debug
           β”‚ β”œβ”€power-profiles-daemon.service
           β”‚ β”‚ └─934 /usr/libexec/power-profiles-daemon
           β”‚ β”œβ”€realmd.service
           β”‚ β”‚ └─3988 /usr/libexec/realmd
           β”‚ β”œβ”€rtkit-daemon.service
           β”‚ β”‚ └─937 /usr/libexec/rtkit-daemon
           β”‚ β”œβ”€sshd.service
           β”‚ β”‚ └─1322 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
           β”‚ β”œβ”€sssd-kcm.service
           β”‚ β”‚ └─5067 /usr/libexec/sssd/sssd_kcm --uid 0 --gid 0 --logger=files
           β”‚ β”œβ”€switcheroo-control.service
           β”‚ β”‚ └─940 /usr/libexec/switcheroo-control
           β”‚ β”œβ”€system-dbus\x2d:1.3\x2dorg.freedesktop.problems.slice
           β”‚ β”‚ └─dbus-:1.3-org.freedesktop.problems@0.service
           β”‚ β”‚   └─5155 /usr/sbin/abrt-dbus -t133
           β”‚ β”œβ”€systemd-homed.service
           β”‚ β”‚ └─947 /usr/lib/systemd/systemd-homed
           β”‚ β”œβ”€systemd-hostnamed.service
           β”‚ β”‚ └─1260 /usr/lib/systemd/systemd-hostnamed
           β”‚ β”œβ”€systemd-journald.service
           β”‚ β”‚ └─647 /usr/lib/systemd/systemd-journald
           β”‚ β”œβ”€systemd-localed.service
           β”‚ β”‚ └─4905 /usr/lib/systemd/systemd-localed
           β”‚ β”œβ”€systemd-logind.service
           β”‚ β”‚ └─952 /usr/lib/systemd/systemd-logind
           β”‚ β”œβ”€systemd-machined.service
           β”‚ β”‚ └─953 /usr/lib/systemd/systemd-machined
           β”‚ β”œβ”€systemd-oomd.service
           β”‚ β”‚ └─863 /usr/lib/systemd/systemd-oomd
           β”‚ β”œβ”€systemd-resolved.service
           β”‚ β”‚ └─866 /usr/lib/systemd/systemd-resolved
           β”‚ β”œβ”€systemd-udevd.service
           β”‚ β”‚ └─udev
           β”‚ β”‚   └─698 /usr/lib/systemd/systemd-udevd
           β”‚ β”œβ”€systemd-userdbd.service
           β”‚ β”‚ β”œβ”€ 679 /usr/lib/systemd/systemd-userdbd
           β”‚ β”‚ β”œβ”€5597 "systemd-userwork: waiting..."
           β”‚ β”‚ β”œβ”€5776 "systemd-userwork: waiting..."
           β”‚ β”‚ └─5806 "systemd-userwork: waiting..."
           β”‚ β”œβ”€udisks2.service
           β”‚ β”‚ └─961 /usr/libexec/udisks2/udisksd
           β”‚ β”œβ”€upower.service
           β”‚ β”‚ └─966 /usr/libexec/upowerd
           β”‚ β”œβ”€uresourced.service
           β”‚ β”‚ └─3253 /usr/libexec/uresourced
           β”‚ β”œβ”€virtqemud.service
           β”‚ β”‚ └─3025 /usr/sbin/virtqemud --timeout 120
           β”‚ └─wpa_supplicant.service
           β”‚   └─3958 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_suppl>
           └─user.slice
             └─user-1000.slice
               β”œβ”€session-2.scope
               β”‚ β”œβ”€4060 "gdm-session-worker [pam/gdm-password]"
               β”‚ β”œβ”€4112 /usr/bin/gnome-keyring-daemon --daemonize --login
               β”‚ β”œβ”€4145 /usr/libexec/gdm-x-session --run-script /usr/bin/gnome->
               β”‚ β”œβ”€4147 /usr/libexec/Xorg vt2 -displayfd 3 -auth /run/user/1000>
               β”‚ β”œβ”€4237 /usr/libexec/gnome-session-binary
               β”‚ └─4351 /usr/bin/ssh-agent /bin/sh -c "exec -l /bin/bash -c \"/>
               └─user@1000.service
                 β”œβ”€app.slice
                 β”‚ β”œβ”€app-gnome-org.gnome.Evolution\x2dalarm\x2dnotify-4775.scope
                 β”‚ β”‚ └─4775 /usr/libexec/evolution-data-server/evolution-alarm->
                 β”‚ β”œβ”€app-gnome-org.gnome.SettingsDaemon.DiskUtilityNotify-4786.>
                 β”‚ β”‚ └─4786 /usr/libexec/gsd-disk-utility-notify
                 β”‚ β”œβ”€app-gnome-org.gnome.Software-4860.scope
                 β”‚ β”‚ └─4860 /usr/bin/gnome-software --gapplication-service
                 β”‚ β”œβ”€app-gnome\x2dsession\x2dmanager.slice
                 β”‚ β”‚ └─gnome-session-manager@gnome.service
                 β”‚ β”‚   └─4562 /usr/libexec/gnome-session-binary --systemd-servi>
                 β”‚ β”œβ”€app-org.gnome.Terminal.slice
                 β”‚ β”‚ β”œβ”€gnome-terminal-server.service
                 β”‚ β”‚ β”‚ └─5612 /usr/libexec/gnome-terminal-server
                 β”‚ β”‚ └─vte-spawn-baf46268-1797-4fa4-af6e-c8c8a049423b.scope
                 β”‚ β”‚   β”œβ”€5623 bash
                 β”‚ β”‚   β”œβ”€5844 systemctl status
                 β”‚ β”‚   └─5845 less
                 β”‚ β”œβ”€dbus-:1.2-org.freedesktop.portal.IBus@0.service
                 β”‚ β”‚ └─4947 /usr/libexec/ibus-portal
                 β”‚ β”œβ”€dbus-:1.2-org.freedesktop.problems.applet@0.service
                 β”‚ β”‚ └─4949 /usr/bin/abrt-applet --gapplication-service
                 β”‚ β”œβ”€dbus-:1.2-org.gnome.Epiphany.WebAppProvider@0.service
                 β”‚ β”‚ └─5408 /usr/libexec/epiphany-webapp-provider
                 β”‚ β”œβ”€dbus-:1.2-org.gnome.Identity@0.service
                 β”‚ β”‚ └─5023 /usr/libexec/goa-identity-service
                 β”‚ β”œβ”€dbus-:1.2-org.gnome.OnlineAccounts@0.service
                 β”‚ β”‚ └─4966 /usr/libexec/goa-daemon
                 β”‚ β”œβ”€dbus-:1.2-org.gnome.ScreenSaver@0.service
                 β”‚ β”‚ └─4954 /usr/bin/gjs -m /usr/share/gnome-shell/org.gnome.Sc>
                 β”‚ β”œβ”€dbus-:1.2-org.gnome.Shell.CalendarServer@0.service
                 β”‚ β”‚ └─4693 /usr/libexec/gnome-shell-calendar-server
                 β”‚ β”œβ”€dbus-:1.2-org.gnome.Shell.Notifications@0.service
                 β”‚ β”‚ └─4724 /usr/bin/gjs -m /usr/share/gnome-shell/org.gnome.Sh>
                 β”‚ β”œβ”€dbus-:1.6-org.a11y.atspi.Registry@0.service
                 β”‚ β”‚ └─4664 /usr/libexec/at-spi2-registryd --use-gnome-session
                 β”‚ β”œβ”€dconf.service
                 β”‚ β”‚ └─4709 /usr/libexec/dconf-service
                 β”‚ β”œβ”€evolution-addressbook-factory.service
                 β”‚ β”‚ └─5080 /usr/libexec/evolution-addressbook-factory
                 β”‚ β”œβ”€evolution-calendar-factory.service
                 β”‚ β”‚ └─5022 /usr/libexec/evolution-calendar-factory
                 β”‚ β”œβ”€evolution-source-registry.service
                 β”‚ β”‚ └─4707 /usr/libexec/evolution-source-registry
                 β”‚ β”œβ”€gnome-session-monitor.service
                 β”‚ β”‚ └─4557 /usr/libexec/gnome-session-ctl --monitor
                 β”‚ β”œβ”€synergy.service
                 β”‚ β”‚ β”œβ”€4558 /opt/Synergy/synergy-service -d
                 β”‚ β”‚ β”œβ”€4653 /opt/Synergy/resources/synergy-tray
                 β”‚ β”‚ └─4657 /opt/Synergy/synergy-core server -f --no-tray --ipc>
                 β”‚ β”œβ”€tracker-miner-fs-3.service
                 β”‚ β”‚ └─5380 /usr/libexec/tracker-miner-fs-3
                 β”‚ β”œβ”€xdg-desktop-portal-gnome.service
                 β”‚ β”‚ └─5206 /usr/libexec/xdg-desktop-portal-gnome
                 β”‚ └─xdg-desktop-portal-gtk.service
                 β”‚   └─5364 /usr/libexec/xdg-desktop-portal-gtk
                 β”œβ”€init.scope
                 β”‚ β”œβ”€4074 /usr/lib/systemd/systemd --user
                 β”‚ └─4083 "(sd-pam)"
                 β”œβ”€session.slice
                 β”‚ β”œβ”€at-spi-dbus-bus.service
                 β”‚ β”‚ β”œβ”€4543 /usr/libexec/at-spi-bus-launcher
                 β”‚ β”‚ β”œβ”€4549 /usr/bin/dbus-broker-launch --config-file=/usr/shar>
                 β”‚ β”‚ └─4550 dbus-broker --log 4 --controller 9 --machine-id 8ca>
                 β”‚ β”œβ”€dbus-broker.service
                 β”‚ β”‚ β”œβ”€4226 /usr/bin/dbus-broker-launch --scope user
                 β”‚ β”‚ └─4233 dbus-broker --log 4 --controller 9 --machine-id 8ca>
                 β”‚ β”œβ”€gvfs-afc-volume-monitor.service
                 β”‚ β”‚ └─5183 /usr/libexec/gvfs-afc-volume-monitor
                 β”‚ β”œβ”€gvfs-daemon.service
                 β”‚ β”‚ β”œβ”€4565 /usr/libexec/gvfsd
                 β”‚ β”‚ β”œβ”€4575 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f
                 β”‚ β”‚ └─5268 /usr/libexec/gvfsd-trash --spawner :1.12 /org/gtk/g>
                 β”‚ β”œβ”€gvfs-goa-volume-monitor.service
                 β”‚ β”‚ └─5177 /usr/libexec/gvfs-goa-volume-monitor
                 β”‚ β”œβ”€gvfs-gphoto2-volume-monitor.service
                 β”‚ β”‚ └─5158 /usr/libexec/gvfs-gphoto2-volume-monitor
                 β”‚ β”œβ”€gvfs-metadata.service
                 β”‚ β”‚ └─4982 /usr/libexec/gvfsd-metadata
                 β”‚ β”œβ”€gvfs-mtp-volume-monitor.service
                 β”‚ β”‚ └─5007 /usr/libexec/gvfs-mtp-volume-monitor
                 β”‚ β”œβ”€gvfs-udisks2-volume-monitor.service
                 β”‚ β”‚ └─4955 /usr/libexec/gvfs-udisks2-volume-monitor
                 β”‚ β”œβ”€org.freedesktop.IBus.session.GNOME.service
                 β”‚ β”‚ β”œβ”€4730 /usr/bin/ibus-daemon --panel disable --xim
                 β”‚ β”‚ β”œβ”€4886 /usr/libexec/ibus-dconf
                 β”‚ β”‚ β”œβ”€4887 /usr/libexec/ibus-extension-gtk3
                 β”‚ β”‚ β”œβ”€4901 /usr/libexec/ibus-x11 --kill-daemon
                 β”‚ β”‚ └─5228 /usr/libexec/ibus-engine-simple
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.A11ySettings.service
                 β”‚ β”‚ └─4732 /usr/libexec/gsd-a11y-settings
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Color.service
                 β”‚ β”‚ └─4737 /usr/libexec/gsd-color
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Datetime.service
                 β”‚ β”‚ └─4749 /usr/libexec/gsd-datetime
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Housekeeping.service
                 β”‚ β”‚ └─4751 /usr/libexec/gsd-housekeeping
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Keyboard.service
                 β”‚ β”‚ └─4759 /usr/libexec/gsd-keyboard
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.MediaKeys.service
                 β”‚ β”‚ └─4761 /usr/libexec/gsd-media-keys
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Power.service
                 β”‚ β”‚ └─4764 /usr/libexec/gsd-power
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.PrintNotifications.service
                 β”‚ β”‚ β”œβ”€4768 /usr/libexec/gsd-print-notifications
                 β”‚ β”‚ └─5297 /usr/libexec/gsd-printer
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Rfkill.service
                 β”‚ β”‚ └─4772 /usr/libexec/gsd-rfkill
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.ScreensaverProxy.service
                 β”‚ β”‚ └─4783 /usr/libexec/gsd-screensaver-proxy
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Sharing.service
                 β”‚ β”‚ └─4787 /usr/libexec/gsd-sharing
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Smartcard.service
                 β”‚ β”‚ └─4799 /usr/libexec/gsd-smartcard
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Sound.service
                 β”‚ β”‚ └─4806 /usr/libexec/gsd-sound
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.UsbProtection.service
                 β”‚ β”‚ └─4815 /usr/libexec/gsd-usb-protection
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.Wacom.service
                 β”‚ β”‚ └─4834 /usr/libexec/gsd-wacom
                 β”‚ β”œβ”€org.gnome.SettingsDaemon.XSettings.service
                 β”‚ β”‚ └─4839 /usr/libexec/gsd-xsettings
                 β”‚ β”œβ”€org.gnome.Shell@x11.service
                 β”‚ β”‚ β”œβ”€4635 /usr/bin/gnome-shell
                 β”‚ β”‚ └─4673 /usr/libexec/mutter-x11-frames
                 β”‚ β”œβ”€pipewire-pulse.service
                 β”‚ β”‚ └─4985 /usr/bin/pipewire-pulse
                 β”‚ β”œβ”€pipewire.service
                 β”‚ β”‚ └─4579 /usr/bin/pipewire
                 β”‚ β”œβ”€wireplumber.service
                 β”‚ β”‚ └─4580 /usr/bin/wireplumber
                 β”‚ β”œβ”€xdg-desktop-portal.service
                 β”‚ β”‚ └─5034 /usr/libexec/xdg-desktop-portal
                 β”‚ β”œβ”€xdg-document-portal.service
                 β”‚ β”‚ β”œβ”€5049 /usr/libexec/xdg-document-portal
                 β”‚ β”‚ └─5060 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_u>
                 β”‚ └─xdg-permission-store.service
                 β”‚   └─4694 /usr/libexec/xdg-permission-store
                 └─uresourced.service
                   └─4559 /usr/libexec/uresourced --user

Great! β€œNo jobs running.” means it is safe to reboot.

1 Like

ok nice, is it normal at the log in window that my password will only be recognize on the gnome x11 option and not on the 3 other ones which are gnome classic and 2 other wayland options ?

Did you check that you are writing each time the same password (by toggling the β€œmake password visible” icon)?

Might be that X11 and Wayland are using different keyboard layouts.

oh ok, like wayland will be in AZERTY while X11 in QWERTY strange ? , yes i checked making the password visible. But another thing wich is strange is that sometimes i have 4 choices and some other time only 2

1 Like

Are you still only able to access X11 sessions from the GDM?

Ca you name what are the 2 options (when there are only 2 available), and what are the 4?

If his is like mine then with a cold boot or a restart it shows

gnome
gnome classic

and both log into x11.

When I log out and log back in (without a restart) it shows

gnome
gnome classic
gnome classic on xorg
gnome on xorg

and I can then select either wayland (the first two) or xorg.

1 Like

Interesting. This brings me again to the thought of GDM process starting earlier than KMS, that I have mentioned to another user here, without being convinced about it though. :thinking:

Could this explain why after a cold boot Wayland is not available (KMS not yet loaded), but after a logoff it is?

According to RPM Fusion’s team, the KMS feature is enabled by default in the nvidia drivers packaged by them.

This may be the cause. I had not thought of that issue though I had seen it mentioned.

What I don’t know is how to delay the gdm start to ensure kms is active first. My boot usually only takes about 17 seconds. Gdm starts in the last couple seconds of that.

I do have the option in the command line for nvidia-drm.modeset=1 that is mentioned in the link you provided.

I have seen advice for the following setup, with the caveat that I have not tested how it works. It is supposed to delay starting GDM with 3 seconds, which would give enough time for the Wayland KMS to start:

  • Edit the GDM service:
sudo systemctl edit gdm 
  • Then add these lines as a drop-in file:
[Service]
ExecStartPre=/usr/bin/sleep 3

I don’t think the gdm tests work, my test setup uses gdm-x-session even if nvidia modeset is set.

leigh@leigh-pc:~$ sudo  cat /sys/module/nvidia_drm/parameters/modeset 
Y

I even tried loading the nvidia modules into initramfs so nvidia loaded early (3 seconds quicker) .

F41 will be f**k you nvidia, no wayland for you.

I have made a reference to KMS and nvidia, but actually the issue seems to be with KMS and Wayland.

For what it’s worth, I have tested the GDM delay setup, and it is working, meaning it booted to login screen some 3 seconds later. I don’t have the issue in question, so can’t confirm the fix.

Exactly same behaviour with my computer

Added rpmfusion

Kernel Mode Setting happends very early in the boot.
I would have thought a long time before userspace starts up and GDM.