I installed the GPU drivers and enrolled it via akmod with my Boot device. But somehow my computer says it can’t find the driver during startup and nvtop only displays AMD Radeon graphics. I have a lenovo legion.
akmod-nvidia is installed, output of modinfo -F version is 595.71.05. Output of inxi -Fzxx
You may want to consider adding xorg-x11-drv-nvidia-cuda to that list of installed packages.
You might try running sudo akmods --rebuild --force to rebuild and reinstall the nvidia driver for the 7.0.4 kernel. If it succeeds a reboot should load the driver. If it fails there should be a message to find out what went wrong.
I don’t see any anticipated attempt by the kernel to load the nvidia driver in that dmesg output.
Force-rebuilt gave no error. This time during boot nothinbg was said of nouveau. But nvtop again just shows radeon. Here is the output of inxi -Fzxx again (Idk where to look for changes)
There is a fallback service that loads the nouveau driver if loading the nvidia driver fails. However I see no attempt to load the nvidia driver first so that probably should be the area of focus.
@danrepp
Please show us the output of journalctl -b -g "nouveau|nvidia|secure"
Also check within the bios to see if there is a setting that might disable the nvidia gpu. If there is nothing there we will have to come back to this as I will be out for the next several hours.
Mai 10 17:02:57 fedora kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-7.0.4-200.fc44.x86_64 root=UUID=3b58ae8c-f5a8-4fda-951e-62c235ccaf26 ro rhgb quiet rd>
Mai 10 17:02:57 fedora kernel: secureboot: Secure boot enabled
Mai 10 17:02:57 fedora kernel: Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
Mai 10 17:02:57 fedora kernel: secureboot: Secure boot enabled
Mai 10 17:02:57 fedora kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-7.0.4-200.fc44.x86_64 root=UUID=3b58ae8c-f5a8-4fda-951e-62c235ccaf26 ro rhgb q>
Mai 10 17:02:57 fedora dracut-cmdline[363]: Using kernel command line parameters: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-7.0.4-200.fc44.x86_64 root=UUID=3b58ae8c-f5a8>
Mai 10 17:03:00 fedora kernel: amdgpu 0000:65:00.0: SECUREDISPLAY: optional securedisplay ta ucode is not available
Mai 10 15:03:01 fedora kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input26
Mai 10 15:03:01 fedora kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input27
Mai 10 15:03:01 fedora kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input28
Mai 10 15:03:01 fedora kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input29
Mai 10 15:03:02 fedora systemd[1]: akmods-keygen@akmods-keygen.service - Akmods Secure boot MOK Key Generation skipped, no trigger condition checks were met.
Mai 10 15:03:02 fedora systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.
Mai 10 15:03:02 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe>
Mai 10 15:03:02 fedora nvidia-powerd[1192]: nvidia-powerd version:2.0 (build 1)
Mai 10 15:03:02 fedora systemd[1]: Starting nvidia-fallback.service - Fallback to nouveau as nvidia did not load...
Mai 10 15:03:02 fedora systemd[1]: nvidia-powerd.service: Deactivated successfully.
Mai 10 15:03:02 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe=>
Mai 10 15:03:02 fedora kernel: nouveau: detected PR support, will not use DSM
Mai 10 15:03:02 fedora kernel: nouveau 0000:63:00.0: enabling device (0000 -> 0003)
Mai 10 15:03:02 fedora kernel: nouveau 0000:63:00.0: NVIDIA GB206 (1b6000a1)
Mai 10 15:03:03 fedora kernel: nouveau 0000:63:00.0: gsp: RM version: 570.144
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: drm: VRAM: 8151 MiB
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: drm: GART: 0 MiB
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: drm: MM: using COPY for buffer copies
Mai 10 15:03:04 fedora kernel: snd_hda_intel 0000:63:00.1: bound 0000:63:00.0 (ops nv50_audio_component_bind_ops [nouveau])
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: [drm] Registered 4 planes with drm panic
Mai 10 15:03:04 fedora kernel: [drm] Initialized nouveau 1.4.2 for 0000:63:00.0 on minor 0
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: [drm] Cannot find any crtc or sizes
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: [drm] Cannot find any crtc or sizes
Mai 10 15:03:04 fedora kernel: nouveau 0000:63:00.0: [drm] Cannot find any crtc or sizes
Mai 10 15:03:05 fedora systemd[1]: Finished nvidia-fallback.service - Fallback to nouveau as nvidia did not load.
Mai 10 15:03:05 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-fallback comm="systemd" e>
Mai 10 15:03:13 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de systemd[2168]: Starting app-nvidia\x2dsettings\x2duser@autostart.service - nvidia-settings...
Mai 10 15:03:13 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de systemd[2168]: Started app-nvidia\x2dsettings\x2duser@autostart.service - nvidia-settings.
Mai 10 15:03:14 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de nvidia-settings[3133]: ERROR: NVIDIA driver is not loaded
Mai 10 15:03:41 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de kernel: nouveau 0000:63:00.0: Enabling HDA controller
Mai 10 15:05:31 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de kernel: nouveau 0000:63:00.0: Enabling HDA controller
I checked the boot menu - it had the options “Switchable graphics”, “Discrete Graphics” and “Internal”. It was on switchable. I changed to discrete - blackscreen, purple dots. Did not try internal because this I don’t think its correct. Changed back to Switchable.
Since you said that “output of modinfo -F version is 595.71.05” one should suspect,
since you are also using secureboot, that the akmods key is not enrolled.
(and not that the kmod-nvidia-7.0.4-200.fc44.x86_64.x86_64 RPM was partly installed,
ie: that the depmod done in postinstall was killed).
From /usr/share/doc/akmods/README.secureboot
You can confirm the enrollment of the new keypair once the system
rebooted with:
`mokutil --list-enrolled
or with:
`mokutil --test-key /etc/pki/akmods/certs/public_key.der`
Mai 10 19:09:23 fedora kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-7.0.4-200.fc44.x86_64 root=UUID=3b58ae8c-f5a8-4fda-951e-62c235ccaf26 ro rhgb quiet rd.driver.b>
Mai 10 19:09:23 fedora kernel: secureboot: Secure boot enabled
Mai 10 19:09:23 fedora kernel: Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
Mai 10 19:09:23 fedora kernel: secureboot: Secure boot enabled
Mai 10 19:09:23 fedora kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-7.0.4-200.fc44.x86_64 root=UUID=3b58ae8c-f5a8-4fda-951e-62c235ccaf26 ro rhgb quiet rd.d>
Mai 10 19:09:23 fedora dracut-cmdline[365]: Using kernel command line parameters: BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-7.0.4-200.fc44.x86_64 root=UUID=3b58ae8c-f5a8-4fda-951>
Mai 10 19:09:26 fedora kernel: amdgpu 0000:65:00.0: SECUREDISPLAY: optional securedisplay ta ucode is not available
Mai 10 17:09:27 fedora kernel: nvidia: loading out-of-tree module taints kernel.
Mai 10 17:09:27 fedora kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 509
Mai 10 17:09:27 fedora kernel: nvidia 0000:63:00.0: enabling device (0000 -> 0003)
Mai 10 17:09:27 fedora kernel: nvidia 0000:63:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
Mai 10 17:09:27 fedora kernel: NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64 595.71.05 Release Build (dvs-builder@U22-I3-G08-03-1) Fri Apr 24 06:42:30 UTC 2026
Mai 10 17:09:27 fedora kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input22
Mai 10 17:09:27 fedora kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input23
Mai 10 17:09:27 fedora kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input24
Mai 10 17:09:27 fedora kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:63:00.1/sound/card0/input25
Mai 10 17:09:27 fedora kernel: nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64 595.71.05 Release Build (dvs-builder@U22-I3-G08-03-1) Fri Ap>
Mai 10 17:09:27 fedora kernel: [drm] [nvidia-drm] [GPU ID 0x00006300] Loading driver
Mai 10 17:09:28 fedora systemd[1]: akmods-keygen@akmods-keygen.service - Akmods Secure boot MOK Key Generation skipped, no trigger condition checks were met.
Mai 10 17:09:28 fedora systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.
Mai 10 17:09:28 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe="/usr/li>
Mai 10 17:09:28 fedora nvidia-powerd[1209]: nvidia-powerd version:2.0 (build 1)
Mai 10 17:09:29 fedora kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:63:00.0 on minor 0
Mai 10 17:09:29 fedora kernel: nvidia 0000:63:00.0: [drm] Cannot find any crtc or sizes
Mai 10 17:09:29 fedora systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load skipped, unmet condition check ConditionPathExists=!/sys/module/nvidia
Mai 10 17:09:29 fedora systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load skipped, unmet condition check ConditionPathExists=!/sys/module/nvidia
Mai 10 17:09:37 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de systemd[2154]: Starting app-nvidia\x2dsettings\x2duser@autostart.service - nvidia-settings...
Mai 10 17:09:37 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de systemd[2154]: Started app-nvidia\x2dsettings\x2duser@autostart.service - nvidia-settings.
Mai 10 17:10:13 p200300e06f07b0230f15882dcf5ab448.dip0.t-ipconnect.de kernel: nvidia 0000:63:00.0: Enabling HDA controller
But somehow, this is strange to me. Because I did this step several times before. But I think I enrolled the wrong key before (there were three keys inside, one fedora, one called public_key, one with a weird name). I guess I enrolled the public_key before, but I signed the driver with the weirdly named one. Anyway, not nvtop shows the correct GPU. Is there more tests I can do to verify it works now?
I don’t follow also here: it’s akmods that sign the nvidia driver with its key.
How did you “signed” the driver?
The weirdly name is perhaps the X of the /etc/pki/akmods/certs/X.der file
It has the form (on my machine): HOST_N_M.der where HOST is the hostname of your
machine, N (resp M) are decimal (resp hexa) numbers. I guess that N is the date in
seconds.
mokutil --list-enrolled should show the akmods key with a subject of the form:
Sorry. Yes, the “weird” name is the X as you described, but for me it does not seem to follow the terminology you described. mokutil --list-enrolled now shows a second key. The nvidia-smi command returns details about my card. So I think it is solved now, thank you! But there is a weird follow up problem where games on steam don’t start (some res0olution issue). I will try to solve it via switching to discrete graphics. If that does not help, I will open a new issue. Thanks!