Fedora

Install NVIDIA Drivers on Fedora 45/44 (Secure Boot, Legacy GPUs)

Install the NVIDIA driver on a Secure Boot machine without enrolling a key and the module never loads. The akmod build finishes, nvidia-smi fails, and the kernel log says the key was rejected, with no warning from dnf. On a GTX 900, GTX 10 or Volta card there’s a second trap: the current driver package no longer supports those GPUs, so it builds a module the card can’t use.

Original content from computingforgeeks.com - post 68983

This guide installs NVIDIA drivers on Fedora 45 and Fedora 44 from RPM Fusion, enrolls the akmods key for Secure Boot and covers the akmod-nvidia-580xx legacy branch. In late November 2026 we installed akmod-nvidia 620.70.06 on fresh Fedora 45 and 44 VMs with Secure Boot enforcing, then on Fedora 45 enrolled the key and switched to akmod-nvidia-580xx 580.196.07. No step asks you to weaken the boot chain to get a driver loaded.

The 620 branch is now the driver dnf installs on Fedora 45, and Fedora 44 gets the same build, both from rpmfusion-nonfree-updates. The base repo on Fedora 45 still holds 615.78.08, so listing duplicates shows two.

Which NVIDIA driver package your GPU needs

Pick the package by GPU generation, not by what a forum post installed three years ago. On Fedora 45, RPM Fusion nonfree carries four driver branches, and only one of them fits a given card.

GPU generationExample cardsPackageKernel module built
Turing and newerGTX 16 series, RTX 20 to RTX 50, Tesla T4, A10G, L4akmod-nvidiaOpen
Maxwell, Pascal, VoltaGTX 750 Ti, GTX 900, GTX 10 series, Titan V, Tesla V100, Quadro GV100akmod-nvidia-580xxProprietary on these cards, open on Turing and newer
KeplerGTX 600, GTX 700 (most)akmod-nvidia-470xxProprietary, Xorg only
FermiGTX 400, GTX 500akmod-nvidia-390xxProprietary, Xorg only

The 580xx row is the one that bites people after an upgrade. NVIDIA’s own supported-gpus.json, shipped inside the current driver source, tags every card the current branch dropped with "legacybranch": "580.xx". In the 620.70.06 source we unpacked, the file lists 2332 chips, and the GTX 1080 (PCI ID 10de:1b80) still carries that tag; the 615 source before it put the GTX 980, GTX 980 Ti and Tesla V100 in the same group. The current driver does not support any of them. Volta belongs in the same row: NVIDIA’s deprecation schedule names 580 as the last branch for Maxwell, Pascal and Volta.

We installed the current, 580xx and 470xx packages and built all three modules on our VMs, none of which has an NVIDIA card; the 390xx row follows the RPM Fusion NVIDIA howto and was not installed. RPM Fusion supports 470xx and 390xx only on the current stable Xorg server, and the packages enforce it: dnf repoquery --requires on xorg-x11-drv-nvidia-470xx and -390xx shows a hard Xorg >= 1.19.0-3, where the 620 package pulls its Xorg pieces only if an Xorg server is already installed. Its howto words the 580xx row the same way, and we did not test a Wayland desktop on 580xx. 390xx is end of life at NVIDIA, kept on a best-effort basis that a newer kernel can break. Fedora Workstation’s GNOME session is Wayland only, so treat a Kepler or Fermi desktop on Fedora 45 as unsupported.

The GPU’s PCI ID and the Secure Boot state

Two facts decide everything that follows: which card you have, and whether the firmware enforces module signatures. You need a Fedora 45 or Fedora 44 install with sudo access and a network path to the RPM Fusion mirrors. Install pciutils first, then read the GPU’s PCI ID:

sudo dnf install -y pciutils
lspci -nn | grep -i nvidia

The ID in the last bracket (10de:1eb8 on our October T4 GPU host) is what the driver package matches against:

00:1e.0 3D controller [0302]: NVIDIA Corporation TU104GL [Tesla T4] [10de:1eb8] (rev a1)

Now check whether Secure Boot is on. This single answer decides whether you need the key enrollment section:

mokutil --sb-state

Both November VMs booted OVMF with the Microsoft keys enrolled, and both reported it on:

SecureBoot enabled

Before you go further, these should hold on your machine:

  • The PCI ID maps to one row of the table above, and you know which package that row names.
  • You know whether mokutil --sb-state said enabled or disabled.
  • You can reach the console at boot, because enrolling a key needs one keypress there.

Do not turn Secure Boot off to make the driver load. Enrolling one key costs a single extra reboot, and it keeps shim, GRUB and the kernel verified against tampering before the OS starts, with kernel lockdown on top (/sys/kernel/security/lockdown read [integrity] on our Fedora 45 VM). Be clear about what it doesn’t stop: the akmods private key lives on this disk, so a process that already has root can sign its own module with it. That is why RPM Fusion calls protecting the key a mandatory requirement, and the key section below covers it.

RPM Fusion and a current kernel

The driver lives in RPM Fusion nonfree, which needs the free repo as well. If you already enabled both repos for multimedia codecs on Fedora (dnf repolist | grep rpmfusion lists free and nonfree), skip this command:

sudo dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Confirm what the repo will hand you before you install anything. The first command shows every build of the current branch, the second what each legacy branch offers, and the third peeks at the testing repo without enabling it permanently:

dnf list --showduplicates akmod-nvidia
dnf list --available akmod-nvidia akmod-nvidia-580xx akmod-nvidia-470xx akmod-nvidia-390xx
sudo dnf --enablerepo=rpmfusion-nonfree-updates-testing list --available akmod-nvidia akmod-nvidia-open

On Fedora 45 the release repo still carries 615.78.08 and the updates repo carries 620.70.06, and dnf always takes the higher one. Fedora 44 showed 620.70.06 and 580.196.07, both from rpmfusion-nonfree-updates:

dnf listing akmod-nvidia 615.78.08 and 620.70.06 plus the 580xx, 470xx and 390xx branches from RPM Fusion on Fedora 45

The testing repo is a step ahead with 620.73.04, and it is the only place a separate akmod-nvidia-open package exists today. Stay on the stable repos for a machine you depend on; the regular package already builds the open module on every card that supports it, as the module section below shows.

Then bring the system fully up to date and install the akmods tooling in the same pass. mokutil and openssl are only needed with Secure Boot, but they cost nothing to have. On the minimal Fedora 45 cloud image the upgrade moved the kernel from 7.2.15 to 7.3.4, and the akmods install pulled 81 packages, including gcc and the matching kernel-devel:

sudo dnf upgrade -y --refresh
sudo dnf install -y akmods mokutil openssl
sudo systemctl reboot

Do not skip this reboot. akmod builds against the newest installed kernel-devel, so a kernel that arrives in the upgrade gets the module and the one you’re running doesn’t. The Fedora 44 VM showed how easily that happens even without an upgrade: we installed only akmods there, and kernel-devel-matched dragged in kernel 7.3.4 alongside kernel-devel, retired the oldest of the three installed kernels, and left the running 7.2.13 with no headers at all. The driver install then built its module for 7.3.4 only, and modinfo found nothing for the running kernel until the next boot. On Fedora 45 the reboot also let the akmods keygen service create the signing key, which ran on the first boot after akmods was installed (on Fedora 44 the key appeared during the install itself, because the kernel it pulled in ran the akmods@ unit, which starts the keygen). Skip both and the first driver build has no key to sign with; the 470xx section shows that case and its fix.

The akmods signing key under Secure Boot

With Secure Boot enforcing, the kernel loads only modules signed by a key it trusts. akmods signs every module it builds with a machine-local key in /etc/pki/akmods/, so that key has to be enrolled in the MOK list once. On the Fedora 45 VM the unit [email protected] created it at boot, named after the host, with a public_key.der symlink pointing at the current certificate. The directory is readable only by root and the akmods group, so list it with sudo:

sudo ls -l /etc/pki/akmods/certs/

You should see one certificate and the symlink to it.

total 8
lrwxrwxrwx. 1 root akmods   55 Nov 22 00:00 public_key.der -> /etc/pki/akmods/certs/rpm-lab01_1795305606_2ad9a1ec.der
-rw-r-----. 1 root akmods 1577 Nov 22 00:00 rpm-lab01_1795305606_2ad9a1ec.der

If that lists nothing, sudo kmodgenca -a generates the key by hand, which is the command the RPM Fusion Secure Boot howto gives. The private key sits next to it in /etc/pki/akmods/private/, so anyone who can read it, root included, can sign modules your firmware will trust. RPM Fusion’s answer is to encrypt the root filesystem, which protects the key while the machine is off, or to keep the key on external storage or a hardware token. Keep the akmods group empty of people either way. Confirm the firmware doesn’t trust the key yet:

sudo mokutil --test-key /etc/pki/akmods/certs/public_key.der

A fresh key reports that it is not enrolled.

/etc/pki/akmods/certs/public_key.der is not enrolled

Queue it for enrollment. mokutil asks for a one-time password twice. You type it again at the firmware screen, where the keyboard is mapped to QWERTY, so keep it short and avoid symbols if your layout is not QWERTY:

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

Check the pending request as root. Without sudo, mokutil --list-new prints nothing and exits 0, which looks exactly like a failed import, and it did the same on this month’s Fedora 45 VM:

sudo mokutil --list-new | grep -E "^\[key|SHA1 Fingerprint|Subject:|Not After"

Note the fingerprint. You compare it against the firmware screen in a minute:

[key 1]
SHA1 Fingerprint: 40:16:10:fc:2e:13:6b:05:85:6f:b4:61:98:dc:4d:17:c0:4c:d5:e4
            Not After : Nov 19 00:00:06 2036 GMT
        Subject: O=rpm-lab01, OU=rpm-lab01/emailAddress=akmods@rpm-lab01, L=None, ST=None, C=US, CN=rpm-lab01_1795305606_2ad9a1ec

Reboot and stay at the console. Shim shows a “Press any key” countdown of about ten seconds before MokManager opens, and missing it is not harmless. We missed it twice on the Fedora 45 VM this month. The boot carried on into Fedora both times, and after the second miss mokutil --test-key said “not enrolled” again: the request had been discarded, so the import had to be repeated before the third reboot. If you are on a slow remote console, tap a key from the moment the firmware logo appears. Work through the screens in this order:

  1. Press a key while the countdown is up, then choose Enroll MOK.
  2. Choose View key 0 and check the Fingerprint against the mokutil --list-new output.
  3. Press Enter to go back, choose Continue, then move the cursor to Yes at “Enroll the key(s)?” (the highlight starts on No, so a reflexive Enter cancels) and type the password.
  4. Pick Reboot.

This is the screen you have about ten seconds to catch, captured on the Fedora 45 VM this month with seven seconds left on the counter in the bottom corner:

Shim UEFI key management screen on Fedora 45 with Press any key to perform MOK management and the Booting in 7 seconds countdown

Any key works, Enter included. The menu that follows is the same on every shim build we’ve used on Fedora 45, so the annotated screens below, made on an earlier Secure Boot VM, mark the controls you need. The first is the MokManager menu with the pending request waiting behind Enroll MOK:

MokManager Perform MOK management menu with Enroll MOK selected after mokutil import on Fedora 45

Do not skip View key 0. It’s the only point where you can check that the key you’re about to trust is the one akmods generated. The Fingerprint block below matched the mokutil --list-new output of the VM it came from; yours must match the value your machine printed, not ours:

MokManager View key 0 screen showing the akmods signing certificate subject, validity and SHA1 fingerprint

After Continue comes the confirmation. This month’s capture shows the trap: the highlight starts on No, and accepting No means the key is not enrolled and the import has to be repeated:

MokManager Enroll the key(s) prompt with No highlighted by default while enrolling the akmods key on Fedora 45

Press the down arrow once, then Enter, and MokManager asks for the password you gave mokutil --import.

Back in Fedora after the third attempt, the key was in the MOK list, the kernel loaded it at boot, and lockdown still read [integrity]. Check the same three things on your machine:

sudo mokutil --test-key /etc/pki/akmods/certs/public_key.der
sudo dmesg | grep -i "Loaded X.509 cert"
cat /sys/kernel/security/lockdown

We ran the same checks after the driver install further down, which is why the capture also tries to load the module:

mokutil confirming the akmods key is enrolled, dmesg loading the X.509 cert and modprobe nvidia getting past signature checks on Fedora 45

The VM has no GPU, so modprobe still fails there, with could not insert 'nvidia': No such device, and dmesg logs NVRM: No NVIDIA GPU found. That pair is the proof the signature passed: the kernel accepted the module and the driver then looked for hardware. RPM Fusion tells you to enroll before installing the kmod, and that’s the order here. We had once built the driver first and enrolled afterwards, and the existing module loaded without a rebuild, because it was already signed with the same key. A firmware update can drop the MOK list. If the driver stops loading after one, run the same mokutil --import again.

Install the NVIDIA driver and wait for the kmod build

For a Turing or newer GPU, install the akmod and the CUDA user-space libraries. The -cuda package also carries nvidia-smi. GTX 900, GTX 10 and Volta owners: stop here and use the 580xx section further down instead. If you installed the driver as a dependency of something else, run sudo dnf mark user akmod-nvidia afterwards, or a later dnf autoremove can take the akmod and its compiler with it.

sudo dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda

How much that pulls depends on what’s already installed. These are the counts from the two VMs, both minimal cloud images with akmods already in place:

  • Fedora 45 installed 244 packages (615 MiB to download, 2 GiB on disk), and dnf finished in 2 minutes 1 second.
  • Fedora 44 installed 284 packages (632 MiB), and dnf finished in 2 minutes 11 seconds.
  • Every NVIDIA package came from rpmfusion-nonfree-updates at 620.70.06, with nvidia-settings one release ahead at -2.
  • Both pulled xorg-x11-drv-nvidia-power as a weak dependency. On Fedora 45 the dependency list also included the egl-wayland, egl-wayland2, egl-x11 and egl-gbm libraries a desktop session needs. The next section covers what those switch on.

dnf returns before the kernel module exists. The akmod’s post-transaction script starts the build as the akmods user a few seconds before dnf prints “Complete!”, and then lets it run on its own. If you reboot in the middle of that build the next boot has no module for its kernel. The next boot then either spends time rebuilding it in akmods.service before the display manager starts, or gives up and falls back to nouveau. Wait for it with a loop that checks the newest installed kernel, which also covers the case where the install pulled a new kernel in:

K=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}\n" kernel-core | sort -V | tail -1); until modinfo -k $K nvidia >/dev/null 2>&1; do sleep 5; done; date +%T; echo $K; modinfo -k $K -F version nvidia; modinfo -k $K -F license nvidia; ls /var/cache/akmods/nvidia/

On the Fedora 45 VM the module existed 100 seconds after dnf returned, and 95 seconds on Fedora 44. The build log and the kmod RPM it produced sit in /var/cache/akmods/nvidia/, the log says which kernel module flavor it built, and modinfo -F signer confirms the module carries the akmods key you enrolled:

akmods finishing the NVIDIA 620.70.06 kmod build for kernel 7.3.4 on Fedora 45, choosing nvidia-open and signing with the akmods key

RPM Fusion puts a normal build at up to five minutes. If the loop is still waiting well past that, the build failed, and its log is in /var/cache/akmods/. After the install, the boot command line blacklists the in-kernel drivers on both releases: nouveau and nova_core, the newer Rust driver for recent NVIDIA GPUs:

sudo grubby --info=DEFAULT | grep ^args

Both names appear twice, once for the initramfs and once for the running system.

args="ro rootflags=subvol=root no_timer_check console=tty1 console=ttyS0,115200n8 systemd.firstboot=off rootflags=subvol=root rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core"

If the key isn’t enrolled yet, this is the moment it shows. On an earlier November VM, with the import still pending, sudo modprobe nvidia stopped at the signature check with “Key was rejected by service”, which is covered in the errors section at the end.

Silverblue and Kinoite follow a different path that we did not test. The fedora.help NVIDIA page adds RPM Fusion and reboots first, then layers the driver with rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia and adds the nouveau blacklist by hand with rpm-ostree kargs, because on an ostree system the package cannot edit the boot entries the way grubby does here. The same page warns that Secure Boot is the hard part there, because the akmods signing key has to be available while the deployment is composed.

Proof the driver and CUDA work

Reboot once the module exists, because the running kernel only picks up the new module and the blacklist on the next boot.

sudo systemctl reboot

The Proxmox VMs have no GPU, so the output in this section comes from the October run on a Tesla T4 cloud host with the 615 build that preceded 620. The commands and the checks they prove are the same on 620. After the reboot, nvidia, nvidia_modeset and nvidia_drm are loaded (nvidia_uvm follows through a modprobe softdep, or on first CUDA use), nouveau is not, and nvidia-smi sees the card:

nvidia-smi output for the RPM Fusion akmod NVIDIA driver on Fedora 45 with a Tesla T4

The 615 header, and the newer branches after it, reads KMD Version and CUDA UMD Version, where the 580xx driver still prints Driver Version and CUDA Version. Scripts that grep the old labels need updating.

nvidia-smi working does not prove CUDA works. A short Python script that calls the CUDA driver API directly does, without installing the CUDA toolkit. Create it:

vim ~/cuda-check.py

Paste this. It creates a context on each GPU and allocates 256 MiB of device memory:

import ctypes
cuda = ctypes.CDLL("libcuda.so.1")
assert cuda.cuInit(0) == 0
n = ctypes.c_int(); cuda.cuDeviceGetCount(ctypes.byref(n))
v = ctypes.c_int(); cuda.cuDriverGetVersion(ctypes.byref(v))
print(f"CUDA driver API {v.value // 1000}.{(v.value % 1000) // 10}, devices: {n.value}")
for i in range(n.value):
    dev = ctypes.c_int(); cuda.cuDeviceGet(ctypes.byref(dev), i)
    name = ctypes.create_string_buffer(100); cuda.cuDeviceGetName(name, 100, dev)
    mem = ctypes.c_size_t(); cuda.cuDeviceTotalMem_v2(ctypes.byref(mem), dev)
    ma, mi = ctypes.c_int(), ctypes.c_int()
    cuda.cuDeviceGetAttribute(ctypes.byref(ma), 75, dev); cuda.cuDeviceGetAttribute(ctypes.byref(mi), 76, dev)
    ctx = ctypes.c_void_p(); rc = cuda.cuCtxCreate_v2(ctypes.byref(ctx), 0, dev)
    free, total = ctypes.c_size_t(), ctypes.c_size_t(); cuda.cuMemGetInfo_v2(ctypes.byref(free), ctypes.byref(total))
    ptr = ctypes.c_uint64(); arc = cuda.cuMemAlloc_v2(ctypes.byref(ptr), 256 * 1024 * 1024)
    print(f"GPU {i}: {name.value.decode()}, compute {ma.value}.{mi.value}, {mem.value // 2**20} MiB, context rc={rc}, 256 MiB alloc rc={arc}")
    cuda.cuMemFree_v2(ptr); cuda.cuCtxDestroy_v2(ctx)

Run it as your normal user, not root, so a permissions problem on /dev/nvidia* shows up here instead of in your first real job.

python3 ~/cuda-check.py

Both return codes must be 0, because a context and an allocation are the first things any CUDA program does. Anything else means the user-space libraries and the kernel module disagree, so check with rpm -qa "*nvidia*" that the -cuda-libs package and the kmod come from the same branch before you blame the card.

CUDA driver API 13.4, devices: 1
GPU 0: Tesla T4, compute 7.5, 14927 MiB, context rc=0, 256 MiB alloc rc=0

Tools that bundle their own CUDA runtime, such as the PyTorch pip wheels, need only this driver. Compiling CUDA code needs NVIDIA’s toolkit on top, and the CUDA on Ubuntu guide covers that side. For long-running GPU hosts, wire the card into DCGM, Prometheus and Grafana monitoring. nvidia-persistenced is installed but disabled by default, so on headless compute boxes run sudo systemctl enable --now nvidia-persistenced if you want the GPU kept initialized between jobs.

Our GPU host was a headless cloud instance with a datacenter card that has no display outputs, so this lab did not test a GNOME or KDE session on the driver. The kernel module, nvidia-smi and CUDA paths above are what we verified on hardware; the desktop plumbing in the next section is what the 620 packages install and configure.

Wayland, modeset and suspend: what the packages already set

Most of the Wayland advice still circulating for Fedora tells you to add nvidia-drm.modeset=1 to the kernel command line, enable the suspend services by hand and edit a GDM udev rule. On Fedora 45 the 620 packages cover the first two and GDM itself removed the third, and adding them by hand only creates settings you will later forget you made. Run these three checks instead:

systemctl list-unit-files 'nvidia*' --no-pager
modinfo -k $(uname -r) nvidia_drm | grep -E "^parm"
rpm -qa | grep -iE "egl-wayland|egl-gbm"

The suspend, resume, hibernate, suspend-then-hibernate and nvidia-powerd units came enabled on our VM, nvidia_drm defaults to modeset and fbdev on, and the EGL platform libraries are present:

NVIDIA suspend and resume units enabled, nvidia_drm modeset and fbdev defaults and egl-wayland packages on Fedora 45

Read those three results as follows:

  • Modeset. The module parameter itself reads “1 = enable (default)”, and no file under /usr/lib/modprobe.d or /etc/modprobe.d overrides it. A hand-added nvidia-drm.modeset=1 changes nothing; a leftover modeset=0 from an old guide switches off the kernel modesetting a Wayland compositor relies on.
  • Suspend. The units come from xorg-x11-drv-nvidia-power, which dnf installed as a weak dependency and enabled in its scriptlet. If you install with --setopt=install_weak_deps=False, add that package by name, or the driver’s suspend and resume helpers never get installed.
  • Video memory on suspend. /usr/lib/modprobe.d/nvidia-power-management.conf ships with NVreg_PreserveVideoMemoryAllocations, NVreg_TemporaryFilePath=/var/tmp and NVreg_UseKernelSuspendNotifiers all commented out, so the driver’s built-in behavior applies until you uncomment one in a copy under /etc/modprobe.d/.
  • GDM. GDM 51.1.1 on Fedora 45 ships no 61-gdm.rules at all. Its NEWS file records “udev: Drop disable_wayland overrides” in 49.alpha.0, so there is no NVIDIA rule left to edit, and a guide that tells you to comment one out is describing an older GDM.

Two more package files explain behavior people misread as bugs. 99-nvidia-dracut.conf keeps the NVIDIA modules out of the initramfs, so a driver update never needs a dracut run, and the module loads from the root filesystem a moment later in boot. 80-nvidia-pm.rules sets runtime power management to auto when the driver binds, which is what lets the dGPU on a hybrid laptop power down when idle. We confirmed these files and defaults on the VM; with no display GPU attached, an actual GNOME Wayland login on this driver was outside what the lab could show.

Hardware video acceleration: VA-API, NVDEC and NVENC

The NVDEC and NVENC libraries are already on disk after the plain akmod-nvidia install, even without the -cuda package. What is missing is the VA-API bridge that browsers and most Linux players look for. We checked this at package level on a fresh Fedora 45 VM (no GPU) with RPM Fusion enabled, following the package layout in RPM Fusion’s NVIDIA howto:

rpm -qf /usr/lib64/libnvcuvid.so.1 /usr/lib64/libnvidia-encode.so.1
dnf repoquery --installed --quiet --whatrequires xorg-x11-drv-nvidia-cuda-libs
dnf info --quiet libva-nvidia-driver

The decoder (libnvcuvid) and encoder (libnvidia-encode) both belong to xorg-x11-drv-nvidia-cuda-libs, which xorg-x11-drv-nvidia-libs pulls in on its own. The VA-API driver comes from Fedora’s own repository, not RPM Fusion (the dnf info output is trimmed to the key fields of the x86_64 entry):

xorg-x11-drv-nvidia-cuda-libs-620.70.06-1.fc45.x86_64
xorg-x11-drv-nvidia-cuda-libs-620.70.06-1.fc45.x86_64
xorg-x11-drv-nvidia-libs-3:620.70.06-1.fc45.x86_64
Available packages
Name           : libva-nvidia-driver
Version        : 0.0.18
Release        : 1.fc45
Architecture   : x86_64
Repository     : fedora
Summary        : A VA-API implemention using NVIDIA's NVDEC
URL            : https://github.com/elFarto/nvidia-vaapi-driver
Description    : This is an VA-API implementation that uses NVDEC as a backend. This
               : implementation is specifically designed to be used by Firefox for accelerated
               : decode of web content, and may not operate correctly in other applications.

Take that description at face value: the shim is decode only, and its upstream README says encoding is not supported, so NVENC stays reachable only through apps that call it directly (ffmpeg’s h264_nvenc, OBS). A dry run (--assumeno) of the shim plus libva-utils (which carries vainfo) came to 7 packages and 8 MiB on disk on our VM. The real install is:

sudo dnf install -y libva-nvidia-driver libva-utils

libva 2.20 and later no longer guesses the NVIDIA driver, so the README makes LIBVA_DRIVER_NAME=nvidia a requirement, and it uses the direct backend by default. Then LIBVA_DRIVER_NAME=nvidia vainfo on a machine with the card should list the decode profiles. Our VM has no NVIDIA GPU, so we did not run vainfo against the driver, and we did not test decode in Firefox or an NVENC encode. The package facts above are what we checked.

Vulkan and 32-bit libraries for Steam and Wine

64-bit Vulkan needs nothing extra. The NVIDIA ICD file ships in xorg-x11-drv-nvidia-libs, and that package requires the Vulkan loader, so both arrive with the driver:

rpm -q xorg-x11-drv-nvidia-libs.i686 vulkan-loader vulkan-loader.i686 vulkan-tools
rpm -ql xorg-x11-drv-nvidia-libs.x86_64 | grep -iE "vulkan|icd"

On the lab VM only the 64-bit side was present. vulkan-tools (which carries vulkaninfo) is not pulled in, and neither is anything 32-bit:

package xorg-x11-drv-nvidia-libs.i686 is not installed
vulkan-loader-1.4.350.0-2.fc45.x86_64
package vulkan-loader.i686 is not installed
package vulkan-tools is not installed
/usr/share/vulkan/icd.d/nvidia_icd.x86_64.json
/usr/share/vulkan/implicit_layer.d/nvidia_layers.json
/usr/share/vulkansc/icd.d/nvidia_icd_vksc.x86_64.json

Steam is the usual reason to add the 32-bit side. RPM Fusion’s steam package requires the 32-bit Mesa drivers and vulkan-loader(x86-32) “for native 32 bit games”, but not the NVIDIA ones, so on an NVIDIA desktop you add xorg-x11-drv-nvidia-libs.i686 yourself. Fedora’s own Wine is different: since Fedora 43 the wine package builds in the new WoW64 mode, where 32-bit Windows programs run on the 64-bit libraries, so it does not need this package. A dry run shows what the 32-bit package costs before you commit to it:

sudo dnf install --assumeno xorg-x11-drv-nvidia-libs.i686

It came to 48 packages, a 143 MiB download and 663 MiB on disk, because 32-bit glibc, LLVM and Mesa come along. The output below is trimmed to the lines that matter:

Installing:
 xorg-x11-drv-nvidia-libs i686   3:620.70.06-1.fc45        rpmfusion-nonfree-updates 238.1 MiB
Installing dependencies:
 egl-wayland              i686   0:1.1.24-1.fc45           updates                    86.3 KiB
 glibc                    i686   0:2.44-2.fc45             updates                     6.0 MiB
 libglvnd-glx             i686   1:1.7.0-10.fc45           fedora                    607.5 KiB
 llvm-libs                i686   0:23.1.5-2.fc45           updates                   149.9 MiB
 mesa-dri-drivers         i686   0:26.2.7-1.fc45           updates                    56.7 MiB
 vulkan-loader            i686   0:1.4.350.0-2.fc45        fedora                    641.6 KiB
Installing weak dependencies:
 mesa-vulkan-drivers      i686   0:26.2.7-1.fc45           updates                   179.0 MiB

Transaction Summary:
 Installing:        48 packages

Total size of inbound packages is 143 MiB. Need to download 143 MiB.
After this operation, 663 MiB extra will be used (install 663 MiB, remove 0 B).
Operation aborted by the user.

The 32-bit Vulkan loader and the 32-bit GLVND libraries come in as dependencies, so you do not chase them separately. Install it for real with sudo dnf install -y xorg-x11-drv-nvidia-libs.i686, and add vulkan-tools if you want vulkaninfo --summary to confirm the card. On a legacy branch the name carries the branch, for example xorg-x11-drv-nvidia-470xx-libs.i686, which RPM Fusion also publishes. We stopped at package level here: without a GPU we could not run vulkaninfo, Steam or a Wine prefix against the driver.

Open or proprietary kernel module: what akmod builds

You don’t choose the module flavor at install time. The RPM Fusion kmod spec ships both kernel and kernel-open source trees and runs a detection script during the build. The script reads lspci and compares every NVIDIA PCI ID against a list of GPUs the open module does not support. A match builds the proprietary module, and no match builds the open one. Check your own machine after the build:

grep -E "Runtime detection|matching graphics|Using nvidia-open|Not using" /var/cache/akmods/nvidia/*.log | tail -3

The Fedora 45 VM has no NVIDIA card, so nothing matched and it picked the open module, the same answer the T4 got in October:

2026/11/22 00:07:42 akmodsbuild: Runtime detection of kmod_nvidia_open
2026/11/22 00:07:42 akmodsbuild: No matching graphics card found.
2026/11/22 00:07:42 akmodsbuild: Using nvidia-open

modinfo -F license nvidia gives the same answer at a glance: the open module reports Dual MIT/GPL. The exclusion list is worth knowing about because it is not where you’d look. It is not an installed file: it lives inside the akmod’s source RPM, /usr/src/akmods/nvidia-kmod-620.70.06-1.fc45.src.rpm, as nvidia-kmod-noopen-pciids.txt with 160 PCI IDs, and the GTX 1080’s 10de:1b80 sits on line 81. A copy with the same name inside the kmodsrc tarball is empty, which is how people conclude the list does nothing.

So a GTX 1080 on the current package gets the proprietary module instead of the open one. That does not rescue the card: the 620 driver still lists it under the 580 legacy branch, so the 580xx package remains the fix. The choice is made once, when the module is built, so after a GPU swap or a move to another machine the old flavor stays until sudo akmods --rebuild runs.

The 580xx legacy driver for GTX 900, GTX 10 and Volta

On a clean system, install the legacy branch directly instead of the current driver:

sudo dnf install -y akmod-nvidia-580xx xorg-x11-drv-nvidia-580xx-cuda

Wait for the build with the same newest-kernel loop. Only the cache directory changes, because the 580xx akmod keeps its logs apart from the current branch.

K=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}\n" kernel-core | sort -V | tail -1); until modinfo -k $K nvidia >/dev/null 2>&1; do sleep 5; done; date +%T; echo $K; modinfo -k $K -F version nvidia; modinfo -k $K -F license nvidia; ls /var/cache/akmods/nvidia-580xx/

On our Fedora 45 VM on kernel 7.3.4, where 580xx arrived through the swap described next, the loop printed this once the module landed, 100 seconds after dnf returned:

00:14:35
7.3.4-300.fc45.x86_64
580.196.07
Dual MIT/GPL
580.196.07-1-for-7.3.4-300.fc45.x86_64.log
kmod-nvidia-580xx-7.3.4-300.fc45.x86_64-580.196.07-1.fc45.x86_64.rpm

Reboot once it returns. If the current driver is already installed, which is what happens when a GTX 1080 owner follows an old guide, the swap is one command. A plain dnf install of a legacy branch refuses with “conflicts with xorg-x11-drv-nvidia” and suggests --allowerasing, and that suggestion is the right one. In October the same flag left the other branch’s -libs packages in place and the RPM transaction died on file conflicts; from 620 on our enrolled Fedora 45 VM it removed 8 packages, installed 8, and finished in 61 seconds without a conflict:

sudo dnf install --allowerasing akmod-nvidia-580xx xorg-x11-drv-nvidia-580xx-cuda

Leave -y off this one and read the removal list before you answer the prompt. We ran it unattended with -y on the lab VM, which is why the capture below shows the flag. It takes the 620 kmod for every installed kernel, so the removal list grows with each kernel you keep (nine packages on a VM with two), and swaps xorg-x11-drv-nvidia-power for xorg-x11-drv-nvidia-580xx-power. That swap of the power package costs you suspend support, and nothing warns you. The new -580xx-power package installs first, then the old package’s removal scriptlet runs and prints seven “Removed” lines for the suspend, resume, hibernate, suspend-then-hibernate and powerd unit links, which both packages share. We repeated the swap on a second Fedora 45 VM to check the result, and after a reboot all five units were off, while their presets still said enabled:

systemctl is-enabled nvidia-suspend nvidia-resume nvidia-hibernate nvidia-suspend-then-hibernate nvidia-powerd

Every line read the same:

disabled
disabled
disabled
disabled
disabled

In that state the driver’s suspend and resume hooks never run when the machine sleeps, and a desktop that wakes to a broken screen after the swap is the likely result. Turn them back on right after the swap:

sudo systemctl enable nvidia-suspend nvidia-resume nvidia-hibernate nvidia-suspend-then-hibernate nvidia-powerd

systemctl recreated the seven symlinks, and the same is-enabled check then printed enabled five times.

One package is left behind by the swap, as the last line of the capture shows:

dnf allowerasing swapping the NVIDIA 620 driver for the 580xx legacy branch on Fedora 45 in one transaction

Wait for the 580xx build with the loop above before you reboot, or the next boot has to rebuild it or fall back to nouveau. It took 100 seconds on the first VM and 92 on the second, built the open flavor on the GPU-less VM, and carried the same signer as the 620 module, so an enrolled machine needs no second trip to MokManager.

Remove that orphaned source package, since nothing builds from it any more:

sudo dnf remove xorg-x11-drv-nvidia-kmodsrc

After the swap, check these on your machine:

  • rpm -q akmod-nvidia reports it is not installed, and only akmod-nvidia-580xx remains.
  • modinfo -F signer nvidia prints the same akmods key name as before the swap.
  • dnf repoquery --installed --unneeded | grep -i nvidia prints nothing once the old xorg-x11-drv-nvidia-kmodsrc is gone.
  • nvidia-modprobe and nvidia-persistenced stay on their 620.70.06 builds, which is expected, because the 580xx branch shares them.

If you’d rather wipe the installed Fedora 45 NVIDIA driver(s) and start from nothing, the glob RPM Fusion documents still works: sudo dnf remove "xorg-x11-drv-nvidia*" removed 225 packages on an earlier November VM (there it took out the 580xx stack after the swap, while akmods and kernel-devel stayed), and the 580xx install then put 224 back. Don’t widen the pattern to "*nvidia*". That glob also matches nvidia-gpu-firmware, the firmware nouveau and nova_core load, which Fedora Workstation installs, and the RPM Fusion howto warns that any other removal command takes packages the free driver still needs.

An earlier run of the swap on a Fedora 44 GPU host taught one more thing. On the T4 the 580xx package built the open module, and CUDA reported driver API 13.0 instead of 13.4. On a real Pascal or Volta card the detection script picks the proprietary module from its exclusion list. We could not run that on hardware in this lab. If a GTX 900 or GTX 10 card already fell back to nouveau on the current driver, the troubleshooting guide shows what the NVRM legacy-driver message looks like and how to confirm the branch before you swap.

The 470xx driver for Kepler cards (GTX 600 and GTX 700)

The question Kepler owners ask is whether the 470xx module still compiles against a current Fedora kernel, and in our runs it did. We installed 470.256.02 on Fedora 45 against kernel 7.3.5 and on a fresh Fedora 44 against 7.3.4, and both builds finished with “akmods: Successful.” in the log. Two things are different from the newer branches. RPM Fusion supports 470xx only on the X.org server, and the package carries a hard requirement on Xorg >= 1.19.0-3, which Fedora Workstation no longer installs. You don’t have to add it yourself: on the Fedora 44 VM dnf listed xorg-x11-server-Xorg among the dependencies and pulled it in. The second difference catches people who follow an old guide on a machine that already has the current driver. A plain install fails to resolve:

Failed to resolve the transaction:
Problem 1: installed package kmod-nvidia-7.3.4-300.fc45.x86_64-3:620.70.06-1.fc45.x86_64 requires nvidia-kmod-common >= 3:620.70.06, but none of the providers can be installed
[... 3 lines trimmed ...]
  - installed package xorg-x11-drv-nvidia-3:620.70.06-1.fc45.x86_64 conflicts with xorg-x11-drv-nvidia-470xx provided by xorg-x11-drv-nvidia-470xx-3:470.256.02-5.fc45.x86_64 from rpmfusion-nonfree-updates
  - package xorg-x11-drv-nvidia-470xx-3:470.256.02-5.fc45.x86_64 from rpmfusion-nonfree-updates conflicts with xorg-x11-drv-nvidia provided by xorg-x11-drv-nvidia-3:620.70.06-1.fc45.x86_64 from rpmfusion-nonfree-updates
[... trimmed ...]
You can try to add to command line:
  --allowerasing to allow removing of installed packages to resolve problems
  --skip-broken to skip uninstallable packages

The branches conflict by design, so the fix is the same --allowerasing swap as for 580xx, and the same advice applies: leave -y off and read the removal list before you confirm. We ran it in two steps, the driver first:

sudo dnf install --allowerasing akmod-nvidia-470xx xorg-x11-drv-nvidia-470xx

The power package is not a dependency of the 470xx driver, and the swap removes the old branch’s power package along with its unit links, so install it as a second step once the swap is done:

sudo dnf install xorg-x11-drv-nvidia-470xx-power
systemctl is-enabled nvidia-suspend nvidia-hibernate

On the Fedora 45 VM, coming from 580xx, dnf removed eight 580xx packages, including the kmod and the 580xx power package, whose scriptlet again printed seven “Removed” lines, and installed five. The 470xx module built in 1 minute 34 seconds, signed with the same akmods key as the 620 rebuild and the 580xx build before it:

Checking kmods exist for 7.3.5-300.fc45.x86_64 [  OK  ]
Building and installing nvidia-470xx-kmod [  OK  ]

real	1m34.162s
user	4m26.375s
sys	0m39.409s

That timing comes from a sudo akmods --force --kernels $(uname -r) rerun, because our lab’s job wrapper killed the first background build when dnf exited; a terminal session doesn’t do that, and --force is the right flag for a build that died half way. Installed on its own after the swap, xorg-x11-drv-nvidia-470xx-power created its two links and the check printed enabled twice. It enabled nvidia-suspend and nvidia-hibernate and left nvidia-resume disabled on purpose: its preset file says resume is triggered by nvidia-sleep.sh from a systemd sleep hook. This branch has no nvidia-powerd and no nvidia-suspend-then-hibernate, so the five-unit is-enabled check from the 580xx section answers “not-found” for those two, which is correct.

The swap also leaves pieces of the old branches behind. After it, rpm -qa | grep -iE 'nvidia|akmod' still listed xorg-x11-drv-nvidia-580xx-cuda-libs, xorg-x11-drv-nvidia-580xx-kmodsrc and the 620 xorg-x11-drv-nvidia-kmodsrc. A 580 CUDA library next to a 470 kernel module is the mismatch the CUDA section warns about, so remove whichever of them your own rpm -qa still lists. Coming straight from 620 you won’t have the 580xx ones, so drop those names from the command. Ours had all three:

sudo dnf remove xorg-x11-drv-nvidia-580xx-cuda-libs xorg-x11-drv-nvidia-580xx-kmodsrc xorg-x11-drv-nvidia-kmodsrc

Read the removal list before you confirm, as with every swap here. Ours named those three plus opencl-filesystem, a 0 B filesystem package dnf flagged as unused, and freed 512 MiB; the 470xx packages, nvidia-modprobe and nvidia-persistenced stayed.

Fedora 44 gave us this month’s real surprise. On a fresh install, with RPM Fusion added and nothing else, the 470xx install pulled in 364 packages and the module was ready 118 seconds after dnf returned. Then modinfo -F signer nvidia printed an empty line. /etc/pki/akmods/certs was empty, because the akmods key is created by akmods-keygen.target, which only akmods.service at boot and the per-kernel akmods@ units pull in. The package’s own install scriptlet starts the build directly, so a first driver install with no reboot since akmods arrived builds an unsigned module. Secure Boot will refuse it. If you jumped straight to this section without the Secure Boot step above, check the signer, and if it is empty, create the key and rebuild:

sudo systemctl start akmods-keygen.target
time sudo akmods --rebuild --kernels $(uname -r)
modinfo -F signer nvidia

The target wrote a new certificate named after the host, and the rebuild signed the module with it:

Checking kmods exist for 7.3.4-200.fc44.x86_64 [  OK  ]
Building and installing nvidia-470xx-kmod [  OK  ]

real	1m27.164s
user	3m59.710s
sys	0m36.142s
rpm-lab02_1795327699_bb79c96e

From there it’s the normal enrollment: sudo mokutil --import /etc/pki/akmods/certs/public_key.der and the MokManager screens described earlier. None of our lab hosts has a Kepler card, so these runs prove the 470xx module builds and signs on the current Fedora kernels; they do not prove a GTX 780 drives a display on them. A clean build on 7.3 says nothing about the next kernel series either. Keep the previous kernel installed, and read the akmods log before you reboot after a kernel update.

What happens on a kernel update

Two pieces of akmods cover a new kernel, and knowing which one fires when explains most “driver vanished after an update” reports. The first is a kernel-install hook, /usr/lib/kernel/install.d/95-akmodsposttrans.install. When dnf installs a kernel, the hook runs systemctl restart akmods@<version>.service --no-block, so the build for the new kernel starts in the background and keeps going after dnf has returned, exactly like the driver install. We watched it happen on a second Fedora 45 VM, running 7.3.4 with the 620 driver, when kernel 7.3.5 arrived. The kernel came from updates-testing only because no stable kernel was pending that day; on your machine it is the routine sudo dnf upgrade. Right after dnf returned, the unit for the new kernel was still building:

systemctl list-units 'akmods@*' --all --no-pager

“activating” is the state to look for. Reboot now and the new kernel comes up before its module exists:

  UNIT                                 LOAD   ACTIVE     SUB   JOB   DESCRIPTION
● [email protected]_64.service loaded activating start start Builds and install new kmods from akmod for a given kernel

The journal for those units shows the whole build. It started at 05:48:30, inside dnf’s own transaction, and finished at 05:50:08, 88 seconds after dnf had printed “Complete!”:

journalctl -u 'akmods@*' --no-pager | tail -15

The two “[ OK ]” lines are the ones that matter, a check followed by the build:

Nov 22 05:48:30 rpm-lab01 systemd[1]: Starting [email protected]_64.service - Builds and install new kmods from akmod for a given kernel...
Nov 22 05:48:30 rpm-lab01 systemd-inhibit[16181]: Checking kmods exist for 7.3.5-300.fc45.x86_64 [  OK  ]
Nov 22 05:48:30 rpm-lab01 runuser[16202]: pam_unix(runuser:session): session opened for user akmods(uid=986) by (uid=0)
Nov 22 05:50:04 rpm-lab01 runuser[16202]: pam_unix(runuser:session): session closed for user akmods
Nov 22 05:50:08 rpm-lab01 systemd-inhibit[16181]: Building and installing nvidia-kmod [  OK  ]
Nov 22 05:50:08 rpm-lab01 systemd[1]: Finished [email protected]_64.service - Builds and install new kmods from akmod for a given kernel.

Ask modinfo about the new kernel by name, not about the running one, to confirm the module landed and carries your signing key:

modinfo -k 7.3.5-300.fc45.x86_64 -F version nvidia
modinfo -k 7.3.5-300.fc45.x86_64 -F signer nvidia

Ours printed 620.70.06 and rpm-lab01_1795326509_02eab26a. That name is not the key from the MOK section: on this second VM, akmods-keygen created a fresh key one second before the unit started its build, and we left it unenrolled on purpose to stage the broken boot in the next section. On your machine the signer should match the key you enrolled. Replace the version string with whatever rpm -q kernel-core lists as newest. The practical rule follows: after a dnf upgrade that lists a kernel, wait for that unit to finish, or for modinfo -k to answer, before you reboot. The second piece is akmods.service, enabled by default, which runs early on every boot, before the display manager, checks that a kmod exists for the booted kernel and builds one if it doesn’t. That is the safety net when you reboot too soon. On a boot where nothing changed it finishes in under a second:

sudo journalctl -b -u akmods --no-pager | tail -3

The Fedora 45 VM, rebooted into kernel 7.3.4 after the 620 build, showed the check passing in the same second it started. Fedora 44 printed the same line for its 7.3.4-200 kernel, the one the akmods install had pulled in.

Nov 22 00:11:38 rpm-lab01 systemd[1]: Starting akmods.service - Builds and install new kmods from akmod packages...
Nov 22 00:11:38 rpm-lab01 akmods[728]: Checking kmods exist for 7.3.4-300.fc45.x86_64 [  OK  ]
Nov 22 00:11:38 rpm-lab01 systemd[1]: Finished akmods.service - Builds and install new kmods from akmod packages.

The remaining risk is a module that built but is broken, or a build that failed. Here --force does not do what most people expect: it retries builds that failed earlier, and on a working system it only prints the “Checking kmods exist” line. To actually recompile for the running kernel, use --rebuild:

time sudo akmods --rebuild --kernels $(uname -r)

On the same VM, still running 7.3.4 a minute after the 7.3.5 build, it rebuilt and installed the 620 module in 1 minute 43 seconds:

Checking kmods exist for 7.3.4-300.fc45.x86_64 [  OK  ]
Building and installing nvidia-kmod [  OK  ]

real	1m42.665s
user	4m46.105s
sys	0m53.130s

Keep at least one older kernel installed (Fedora keeps three by default) so a failed build never leaves you without a bootable fallback. A release upgrade replaces the kernel too, so read the Fedora 44 to 45 upgrade guide before you move a GPU workstation across. New akmod-nvidia releases from RPM Fusion arrive through the routine dnf upgrade that brings new kernels, and when one is a security update, our notes on the NVIDIA driver CVE-2026-47591 and CVE-2026-47501 on Fedora show which akmod-nvidia builds Fedora 44 and 45 receive.

Black screen or no GUI after a kernel or driver update

When the login screen doesn’t come back after an update, the cause is almost always that the nvidia module did not load on the new kernel: the build hadn’t finished, it failed, or the kernel refused the signature. Work through it in this order, from a text console or over SSH. We staged the broken case on the second Fedora 45 VM, whose akmods key was never enrolled, so every module it built once the key existed was signed but refused.

First, get a working desktop back by booting the previous kernel, which still has its module. That only helps when the problem is the new kernel’s build; an unenrolled key is refused on every kernel, so on our VM the old kernel was no better. Pick the older entry in the GRUB menu, or set it for one boot from a shell. Use the entry’s id, not its index: our cloned VM carried stale entries for kernels no longer in /boot, and an index can point at a different entry than the one you expect:

sudo grubby --info=ALL | grep -E '^(index|id|kernel)'

Copy the id of the kernel you want and pass it to grub2-reboot, which changes only the next boot:

sudo grub2-reboot 2a101b60b6c44831839e4b096f5df0b7-7.3.4-300.fc45.x86_64
sudo systemctl reboot

The VM came up on 7.3.4, grub2-editenv list showed next_entry= already cleared, and the following reboot went back to 7.3.5 on its own. So this is safe to try: nothing about the default changes. Once you’re on the old kernel, find out why the new one failed, and ask about the new kernel, not the one you’re running. Fedora keeps the journal on disk, so the kernel log of the failed boot is still there as boot -1:

sudo journalctl -k -b -1 --no-pager | grep -iE 'nvidia|NVRM|rejected'

On our VM a modprobe nvidia in the previous boot had been refused, which points at enrollment, not the build. If you have rebooted more than once since the failure, journalctl --list-boots shows which number to pass instead of -1:

Nov 22 06:22:16 rpm-lab01 kernel: Loading of module with unavailable key is rejected

That line, or Key was rejected by service from a manual modprobe, is fixed by the MokManager enrollment, with no rebuild. No line at all means the module never loaded, so check whether it exists for the new kernel, by name. Here we asked about 7.3.4, a kernel the VM’s current driver had not been built for:

modinfo -k 7.3.4-300.fc45.x86_64 -F version nvidia; echo rc=$?

A missing module answers like this:

modinfo: ERROR: Module nvidia not found.
rc=1

Then read that kernel’s build log. akmods keeps one per driver version and kernel in /var/cache/akmods/nvidia/ (nvidia-580xx/ and nvidia-470xx/ for the legacy branches), next to the kmod RPM it built:

ls /var/cache/akmods/nvidia/
sudo tail -5 /var/cache/akmods/nvidia/620.70.06-1-for-7.3.5-300.fc45.x86_64.log

A healthy log ends like the 7.3.5 one did. Anything else near the end, a compiler error or a missing kernel-devel, is the reason the new kernel has no module:

[2/3] Prepare transaction               100% |  10.0   B/s |   1.0   B |  00m00s
[3/3] Installing kmod-nvidia-7.3.5-300. 100% |   4.0 MiB/s |  12.0 MiB |  00m03s
Warning: skipped OpenPGP checks for 1 package from repository: @commandline
Complete!
2026/11/22 05:50:08 akmods: Successful.

For a failed or interrupted build, run sudo akmods --rebuild --kernels with the new kernel’s version, as in the previous section, check modinfo -k against that version, and reboot into it. If the build fails again with the same error, the driver doesn’t support that kernel yet: stay on the older one until RPM Fusion ships a fixed akmod.

The last resort, when no installed kernel gives you a desktop, is to let nouveau take the card for good. nvidia-fallback.service, covered with the errors below, already loads nouveau on a boot where nvidia did not load; this step is for the case it can’t catch, where nvidia loads and the desktop still hangs. The driver install blacklisted it on the kernel command line, as shown earlier, and grubby removes that from every entry:

sudo grubby --update-kernel=ALL --remove-args="rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core"

It printed nothing and exited 0, and grubby --info=DEFAULT then showed the args without the two blacklist entries. grubby also rewrote /etc/kernel/cmdline, so kernels installed later inherit the change. Put the blacklist back once the NVIDIA module loads again:

sudo grubby --update-kernel=ALL --args="rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core"

We left hybrid laptops out on purpose. A black screen on an Optimus machine with PRIME render offload has its own causes, and none of our lab hosts has an Intel or AMD iGPU paired with an NVIDIA card to test them on.

Driver errors from the lab, and the fix for each

Each of these came up on the lab machines, except the nouveau fallback message, which we read from its unit file. Match the exact text before you apply a fix.

modprobe: ERROR: could not insert ‘nvidia’: Key was rejected by service

Secure Boot is on and the akmods key is not enrolled. The module is signed, by a key the firmware has never seen, and dmesg adds “Loading of module with unavailable key is rejected”. We reproduced it on a Fedora 45 VM earlier in November with the import still pending:

modprobe nvidia Key was rejected by service under Secure Boot on Fedora 45 before the akmods key is enrolled

The signer field matches the akmods key name, so the build is fine. Finish the enrollment in MokManager and reboot. You don’t need to rebuild the module, because the signature already on it is the one the firmware learns to trust.

modinfo: ERROR: Module nvidia not found

Right after dnf finishes, this just means the akmod build is still running, so wait with the loop. If it persists, compare uname -r with rpm -q kernel-devel. We hit this on Fedora 44 in both November runs: a newer kernel was installed but not booted (this month the akmods install itself brought 7.3.4 in), and the module existed only for that one:

modinfo Module nvidia not found on the running Fedora 44 kernel while the kmod exists for the newer kernel

A version string from the newest kernel means the module is waiting for it. Reboot into that kernel and the error is gone, so there’s nothing to rebuild. If the newest kernel prints the same error, the build failed and its log in /var/cache/akmods/nvidia/ says why.

NVIDIA kernel module missing. Falling back to nouveau

That message comes from nvidia-fallback.service, shipped in xorg-x11-drv-nvidia. It runs only when nouveau is blacklisted on the kernel command line and the nvidia module did not load:

systemctl cat nvidia-fallback.service

The unit loads nouveau and prints the message to the boot splash. The output below is trimmed after the unit itself; Fedora’s generic 10-timeout-abort.conf drop-in follows it.

# /usr/lib/systemd/system/nvidia-fallback.service
[Unit]
Description=Fallback to nouveau as nvidia did not load
After=akmods.service
Before=display-manager.service
ConditionKernelCommandLine=rd.driver.blacklist=nouveau,nova_core
ConditionPathExists=!/sys/module/nvidia


[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/sbin/modprobe nouveau
ExecStartPost=-/bin/plymouth message --text="NVIDIA kernel module missing. Falling back to nouveau"


[Install]
WantedBy=graphical.target

It is a symptom, not the cause. The three causes we can account for are an unenrolled key (the first error above), a reboot before the build finished, and a GTX 900, GTX 10 or Volta card on the current akmod-nvidia, which needs the 580xx branch. The kernel log tells you which one you have:

sudo dmesg | grep -iE "nvidia|NVRM|rejected"

Don’t read systemctl is-enabled reporting disabled as proof the fallback is off. The same package ships /usr/lib/udev/rules.d/10-nvidia.rules, which adds SYSTEMD_WANTS="nvidia-fallback.service" to every NVIDIA display or 3D controller, so udev starts the unit on any machine with an NVIDIA GPU and its two conditions decide whether it acts. The message therefore appears whenever nouveau is blacklisted and nvidia did not load. We read that from the unit and the udev rule; no GPU host in the lab had a failed load. Our troubleshooting guide for this message works through akmod build failures, Secure Boot key rejection and the 580xx branch, with the log line that points to each one.

mokutil –list-new prints nothing after an import

Run it with sudo. As a normal user it prints nothing and exits 0. That made our first import look like a failure when the request was already queued. sudo mokutil --test-key settles it: “already in the enrollment request” means reboot and finish in MokManager, while “not enrolled” after a reboot means the countdown ran out, or No was accepted at the prompt, and you need to import again. Note that --test-key exits 1 for both “already in the enrollment request” and “already enrolled”, so read the text rather than the exit code in a script.

If the card is for games, gaming on Fedora picks up from here with Steam, Proton, NTSYNC and MangoHud on this driver, and Fedora vs Bazzite compares how the two ship it. For the rest of a new Workstation build, the things to do after installing Fedora 45 list picks up where the driver leaves off. If an old .run installer is still on the box, clear it out with the manual NVIDIA driver removal steps before you install the RPM Fusion packages.

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 NVIDIA Kernel Module Missing, Falling Back to Nouveau on Fedora Fedora NVIDIA Kernel Module Missing, Falling Back to Nouveau on Fedora 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 Subscribe CentOS Server to Katello/Foreman CentOS How To Subscribe CentOS Server to Katello/Foreman

2 thoughts on “Install NVIDIA Drivers on Fedora 45/44 (Secure Boot, Legacy GPUs)”

Leave a Comment

Press ESC to close