Fedora

NVIDIA Kernel Module Missing, Falling Back to Nouveau on Fedora

The boot message reads like nouveau is the problem, but nouveau is just the stand-in. “NVIDIA kernel module missing. Falling back to nouveau” means one thing: when the display manager was about to start, /sys/module/nvidia didn’t exist. Reinstalling the driver rarely fixes that, because the package was never what failed.

Original content from computingforgeeks.com - post 194915

Three different faults end in that same line on Fedora. Either the module was never built for the kernel you booted, or Secure Boot refused to load it, or it loaded and then refused your card. Each one leaves its own evidence in the logs, and you can find it in a few minutes once you know where to look. The builds, the Secure Boot rejection and the MOK prompt below come from a Fedora 45 VM with Secure Boot on in November 2026, which had no NVIDIA card in it, so the card side was checked on a separate Ubuntu host with a GeForce GTX 1080 Ti on NVIDIA’s 580 branch.

A tiny systemd unit prints the message

RPM Fusion’s driver package ships a oneshot unit called nvidia-fallback.service, and the plymouth text you saw is its ExecStartPost line. Reading the unit tells you exactly when it fires, which is more useful than any forum guess. Print it on your own machine:

systemctl cat nvidia-fallback.service

On the test box the unit came from the 580xx driver package. The ordering and condition lines are the part that matters:

After=akmods.service
Before=display-manager.service
ConditionKernelCommandLine=rd.driver.blacklist=nouveau,nova_core
ConditionPathExists=!/sys/module/nvidia

The full unit and the udev rule that starts it are printed in the fallback section of our NVIDIA driver install guide for Fedora, so here is just what they add up to. Three things have to line up before you ever see the message:

  • a udev rule in 10-nvidia.rules saw a PCI display device with vendor ID 0x10de
  • the kernel command line carries the nouveau blacklist the driver install added
  • /sys/module/nvidia is absent after akmods.service has run

Because the unit waits for akmods.service, a build that akmods finished during boot still counts. So the message never lies about the module. It only tells you the module was not loaded, never why.

That gives you three questions to ask in order, and each one has a single command that answers it:

  1. Is there an nvidia.ko for the running kernel? modinfo -k $(uname -r) nvidia
  2. Will the kernel load it? sudo modprobe nvidia
  3. Did it accept your card? sudo dmesg | grep NVRM

Stop at the first question that fails, because every later check depends on the earlier one passing. A card cannot reject a module that never loaded. The sections below follow the same order, so you can jump straight to the one your output points at.

No module for the running kernel

An akmod is source code. The RPM you installed does not contain nvidia.ko; it contains what akmods needs to compile one for each kernel, and the compile happens after dnf has already printed “Complete!”. On the test box, installing akmod-nvidia-580xx took the prompt back while the build was still running in a systemd unit. The output also shows something that surprises people: the driver install pulled in a newer kernel.

akmods build still running on Fedora 45 while modinfo reports Module nvidia not found for both installed kernels

Read the rpm -q lines first. The box was running the older kernel, but kernel-devel exists only for the newer one, because the akmods package it pulls in requires kernel-devel-matched, and dnf resolved that to the newest kernel in the updates repo and installed its kernel-core too.

The akmods@ unit says activating, and modinfo finds no module for either kernel yet. The unit holds a shutdown inhibitor while it builds, so a reboot request now gets refused or warned about, and forcing it leaves akmods to finish the job at the next boot instead.

Wait for the akmods build, then check per kernel

The RPM Fusion howto says the build can take up to five minutes, and on the test VM it took just under three. Don’t guess from a progress bar you can’t see. Poll for the module instead, naming the kernel you intend to boot (the newest line of rpm -q kernel-core, minus the kernel-core- prefix):

until modinfo -k 7.3.4-300.fc45.x86_64 -F version nvidia 2>/dev/null; do sleep 10; done

When the loop exits, the unit’s journal and the akmods cache confirm the result. A finished build leaves both a log and a kmod-nvidia-* RPM under /var/cache/akmods/, named after the kernel it targets:

journalctl showing the akmods nvidia-580xx build finished and modinfo returning the module version on Fedora 45

The version line is the proof. A file name in the cache is not enough, because a failed build also leaves a log there. If modinfo answers for the kernel in uname -r after your next boot, question one is closed, so move on to loading it.

ERROR: kernel or kernel-devel required

Booting an older kernel from the GRUB menu is the classic way to hit the fallback after an update. Akmods can only build against headers that exist, and Fedora’s updates repo carries only the newest kernel-devel. Ask it to build for the running kernel on the same box and it stops before compiling anything:

akmods failing with kernel or kernel-devel required for the running Fedora kernel

The fix is to boot the kernel that has headers, not to fight for headers of the old one. Check which entry GRUB will pick and what its arguments are, since the blacklist arguments the driver added must be on it too:

sudo grubby --info=DEFAULT | grep -E "^(kernel|args)"

The default entry on the test box pointed at the new kernel and carried both blacklists:

kernel="/boot/boot/vmlinuz-7.3.4-300.fc45.x86_64"
args="ro rootflags=subvol=root no_timer_check console=ttyS0,38400n8d systemd.firstboot=off rootflags=subvol=root rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core"

Ignore the doubled /boot/boot, which comes from the cloud image’s Btrfs layout; a standard install shows /boot/vmlinuz-.... If the default is the newest kernel and modinfo -k answers for it, reboot and you’re done with this branch. A build that fails for the newest kernel is a different story: the log in /var/cache/akmods/nvidia*/ ends with the compiler error, and that usually means the driver hasn’t caught up with a brand new kernel series yet. Keep booting the previous kernel, which already has a module, until RPM Fusion ships a fixed akmod. The same check belongs in any Fedora 44 to 45 upgrade: confirm modinfo -k answers for the new kernel before you reboot into it.

The build picks open or proprietary from lspci

This one catches GTX 900 and GTX 10 owners who did everything right. NVIDIA’s open kernel modules cannot drive any GPU older than Turing, because they depend on the GPU System Processor that those older cards don’t have.

RPM Fusion’s spec decides which flavour to build at build time: a script called nvidia-kmod-noopen-checks runs lspci and compares the result against a list of PCI IDs that need the proprietary module. No match, and you get the open one.

The test box had no NVIDIA card at build time, and plenty of real machines end up in the same spot:

  • the driver went in before the old card was swapped in
  • a disk was installed on one machine and moved to another
  • the card sits behind passthrough that was detached during the build

In each case the build log and the module license tell you which flavour you got:

akmods build log showing Using nvidia-open, then the detect macro forcing the proprietary NVIDIA module on Fedora

Even the legacy 580xx akmod built the open module here, and modinfo -F license printed Dual MIT/GPL, which is how you tell open from proprietary without reading build logs (the install guide’s open-or-proprietary section explains the flavours; the override below is the part it leaves out). On a Pascal card that open module starts to load, finds no GSP and refuses the GPU, and the fallback fires on the next boot. NVIDIA’s open driver source prints the reason in dmesg: the GPU “is not supported by open nvidia.ko because it does not include the required GPU System Processor (GSP)”.

The RPM Fusion howto documents the override. Turn the detection off with an RPM macro and rebuild for the kernel you boot:

echo %_without_kmod_nvidia_detect 1 | sudo tee -a /etc/rpm/macros.nvidia-kmod
sudo akmods --kernels $(uname -r) --rebuild

After the rebuild, the license field read NVIDIA, the proprietary module. That’s the one a GTX 1080 Ti needs, and the macro file survives kernel updates, so every later akmods build keeps the same choice. If the card is physically in the machine when akmods runs, the PCI ID check should match a Pascal card on its own, without the macro. The 1080 Ti’s 10de:1b06 is line 78 of the fallback nvidia-kmod-noopen-pciids.txt in both RPM Fusion’s 580xx and current kmod git sources (the build reads a list generated from NVIDIA’s supported-GPU data first), though that automatic path was not run here with the card present.

Secure Boot rejects the akmods key

With the module built for the right kernel, the next failure is the kernel refusing to load it. Akmods signs every module it builds with a key it generates on your machine, but firmware with Secure Boot on trusts only keys enrolled in the MOK list. On the test box, booted into the kernel that now had a module, a manual load showed both halves of the error:

modprobe nvidia failing with Key was rejected by service under Secure Boot on Fedora 45

“Key was rejected by service” from modprobe plus “Loading of module with unavailable key is rejected” in the kernel log is the Secure Boot signature, and nothing else produces that pair. The module is fine; your firmware simply does not know the akmods key yet. Queue it for enrolment and set a one-time password you’ll type at the firmware prompt:

sudo mokutil --import /etc/pki/akmods/certs/public_key.der

Now confirm the request is actually queued, and run the check with sudo. Without root, mokutil --list-new printed nothing at all on the test box, which looks exactly like “no request” and sends people into a loop of re-imports (the install guide’s error list has the same trap; what it does not cover is the ten-second window below):

sudo mokutil --list-new | grep Subject:

The subject names your host, because akmods generated the key there:

        Subject: O=probe, OU=probe/emailAddress=akmods@probe, L=None, ST=None, C=US, CN=probe_1795483390_3739876d

A queued request is only half the job, because nothing reaches the firmware’s key database until you confirm it on the next boot.

The MOK request expires after ten seconds

Reboot after the import and shim shows its key management screen before GRUB. It waits ten seconds for a key press, and the countdown is the one value on this screen people misread. You are not looking at a delay before enrolment; it’s the deadline for starting it.

Shim UEFI key management screen on Fedora 45 asking to press any key to perform MOK management with a Booting in 9 seconds countdown

Let Booting in 9 seconds run out and shim boots normally. On the test box the queued request was gone afterwards, the key still was not enrolled, and modprobe kept failing with the same rejection:

mokutil list-new empty without sudo and the pending MOK request dropped after the MokManager timeout

So if you walked away during the reboot, or a monitor took too long to wake up, run the import again and stay at the keyboard. The first step comes from the shim screen above; the menus after it follow the order RPM Fusion’s Secure Boot page describes, and the enrolment was not run end to end here:

  1. Press any key before the countdown ends
  2. Choose Enroll MOK, then Continue
  3. Answer Yes to enrol the key
  4. Type the password you set with mokutil --import; RPM Fusion warns the keyboard is mapped as QWERTY at this prompt
  5. Choose Reboot

Back in Fedora, sudo mokutil --test-key /etc/pki/akmods/certs/public_key.der should report the key as already enrolled, and sudo modprobe nvidia should no longer print the rejection. If you would rather skip enrolment altogether, turning Secure Boot off in firmware works too, at the cost of the boot chain checks it gives you.

Pascal and Maxwell need the 580xx branch

The third failure looks the same at boot but sits one layer deeper: the module starts to load, probes the card and refuses it. NVIDIA announced that the 580 release series is the last to support Maxwell, Pascal and Volta GPUs, and RPM Fusion’s main akmod-nvidia package has moved past it. Any driver past that branch logs the refusal in plain words. A GTX 1050 Ti owner who tried the 590 beta posted this kernel log on NVIDIA’s developer forum:

NVRM: The NVIDIA NVIDIA GeForce GTX 1050 Ti GPU installed in this system is
NVRM:  supported through the NVIDIA 580.xx Legacy drivers. Please
NVRM:  visit http://www.nvidia.com/object/unix.html for more
NVRM:  information.  The 590.44.01 NVIDIA driver will ignore
NVRM:  this GPU.  Continuing probe...
NVRM: No NVIDIA GPU found.

With no GPU to bind, the load fails, so /sys/module/nvidia stays absent and the fallback unit does its job. Reinstalling the same package changes nothing, because the branch itself has dropped your card. Check what the repos offer for your Fedora release before you swap anything:

dnf repoquery --latest-limit=1 --qf "%{name}-%{version}-%{release}\n" akmod-nvidia akmod-nvidia-580xx akmod-nvidia-470xx

Three branches were available on Fedora 45 when this was written: the current one, the 580xx legacy branch RPM Fusion packages for Maxwell and Pascal, and 470xx for Kepler:

akmod-nvidia-470xx-470.256.02-22.fc45
akmod-nvidia-580xx-580.196.07-1.fc45
akmod-nvidia-620.70.06-1.fc45

Moving a GTX 900 or GTX 10 card to the legacy branch is a package swap. You will find the full swap in the 580xx section for GTX 900, GTX 10 and Volta of the main install guide, including the --allowerasing step and the suspend units it disables. The packages on the test box were akmod-nvidia-580xx and xorg-x11-drv-nvidia-580xx-cuda. After the swap, you still need the build, signing and per-kernel checks above.

What does a healthy Pascal card on that branch look like? A rented GeForce GTX 1080 Ti host running NVIDIA’s 580 driver answered like this:

GeForce GTX 1080 Ti running the NVIDIA 580 driver branch with the proprietary kernel module

Two details matter. Compute capability 6.1 is Pascal, and /proc/driver/nvidia/version says “Kernel Module” rather than “Open Kernel Module”, so the proprietary flavour is what drives this card. That host ran Ubuntu with NVIDIA’s 580.178.04 build, while the Fedora akmod ships 580.196.07 from the same 580 branch. On Fedora the 580xx akmod builds the same proprietary flavour when the PCI ID check matches or the macro is set, as shown above on a VM without the card; the Pascal card itself only ran on the Ubuntu host. The nvidia-smi queries used here work the same on Fedora once the module loads.

Match the log line to the fix

Every fault above leaves a different line behind, so let the line pick the fix. Run the three checks in order, find the first one that answers with an error, and use the row that matches it:

What you seeWhat it meansFix
modinfo: ERROR: Module nvidia not found. for uname -rNo build for this kernel yet, or you booted an older kernelWait for akmods@, boot the newest kernel, then sudo akmods --kernels $(uname -r) --rebuild
ERROR: kernel or kernel-devel requiredNo headers for the kernel being builtBoot the kernel that has kernel-devel
Build log ends in a compiler error on a new kernelDriver not yet compatible with that kernel seriesBoot the previous kernel until a fixed akmod lands
Key was rejected by serviceAkmods key not enrolled under Secure Bootsudo mokutil --import, then enrol at the shim prompt within ten seconds
NVRM: ... supported through the NVIDIA 580.xx Legacy driversMaxwell, Pascal or Volta card on the current branchSwap to akmod-nvidia-580xx
NVRM: lines with not supported by open (the GSP message, split over several lines)Open module built for a pre-Turing card%_without_kmod_nvidia_detect 1, then rebuild

Once lsmod | grep nvidia shows the module after a reboot, the fallback unit’s condition is false and the plymouth message disappears for good. From there, the CUDA toolkit on Fedora and Steam with Proton both sit on top of the module you just fixed. If the repos themselves are missing, enabling RPM Fusion comes first, since every akmod above lives in its nonfree repo, as the RPM Fusion NVIDIA howto lays out.

Keep reading

How to Upgrade Fedora 44 to Fedora 45 (GUI, CLI and Rollback) Fedora How to Upgrade Fedora 44 to Fedora 45 (GUI, CLI and Rollback) Things to Do After Installing Fedora 45 Workstation Fedora Things to Do After Installing Fedora 45 Workstation Enable RPM Fusion and Multimedia Codecs on Fedora 45 / 44 / 43 Fedora Enable RPM Fusion and Multimedia Codecs on Fedora 45 / 44 / 43 Build FFmpeg 9.1 from Source on Rocky Linux 10 and Fedora 45 Fedora Build FFmpeg 9.1 from Source on Rocky Linux 10 and Fedora 45 How to Install LibreOffice on Fedora 45 / 44 (RPM and Flatpak) Desktop How to Install LibreOffice on Fedora 45 / 44 (RPM and Flatpak) Install Monaco Editor – Browser based Code Editor for Linux CentOS Install Monaco Editor – Browser based Code Editor for Linux

Leave a Comment

Press ESC to close