Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Nvidia Driver on Fedora: Install and Fix Guide

· 6 min read · Home Tech

In this article
  1. Why Fedora Does Not Ship the Nvidia Driver
  2. How the Driver Stack Fits Together
  3. Installing the Driver: Step by Step
  4. Secure Boot and Signed Modules
  5. Common Problems and Fixes
  6. Choosing Between Proprietary and Open Drivers
  7. Frequently Asked Questions

Nvidia's proprietary driver is not included in Fedora by default because Fedora ships only open-source software; you install it from RPM Fusion's nonfree repository (or use the open-source Nouveau driver that comes preinstalled). The proprietary driver is the practical choice for gaming, CUDA, and recent GeForce cards, while Nouveau is fine for basic desktop use and older hardware.

Why Fedora Does Not Ship the Nvidia Driver

Fedora follows a strict free-software policy: its official repositories contain only packages whose licenses allow redistribution and modification. Nvidia's Linux driver is closed-source and its license restricts redistribution, so it cannot live in Fedora's main repos. Instead, Fedora users get it from RPM Fusion, a third-party repository that packages software Fedora cannot legally ship, including Nvidia drivers, media codecs, and some firmware. This is not a workaround or a hack — it is the documented, supported path that Fedora's own documentation points to.

Out of the box, Fedora uses Nouveau, the reverse-engineered open-source driver built into the kernel and Mesa. Nouveau handles display output, basic 2D acceleration, and video playback on most cards. It does not support Nvidia's proprietary CUDA compute stack, and its 3D performance in games is far below the proprietary driver. For a browser-and-office machine on an older GPU, Nouveau is often enough. For anything demanding, the proprietary driver is the answer.

How the Driver Stack Fits Together

Installing the Nvidia driver on Fedora involves more than one package, and understanding the pieces prevents most confusion:

  • Kernel module — the driver itself, built against your running kernel. Fedora updates kernels frequently, so the module must be rebuilt or reinstalled after kernel updates; the RPM Fusion packages handle this through akmods.
  • akmods — a framework that automatically builds kernel modules when a new kernel is installed, so you are not left without a driver after an update.
  • kmod — a prebuilt kernel module tied to a specific kernel version. It installs faster but can lag behind kernel updates.
  • Xorg/Wayland integration — the driver provides the libraries and configuration that let the display server use the GPU. Wayland support has improved but Xorg remains the more predictable choice for some Nvidia setups.
  • CUDA and NVENC — optional components for compute and hardware video encoding, packaged separately.

The recommended combination on current Fedora releases is the akmod package, because it survives kernel updates without manual intervention. The kmod package is an alternative when you want a prebuilt module and are willing to reinstall it after major kernel changes.

Installing the Driver: Step by Step

These steps assume a standard Fedora Workstation install with Secure Boot disabled or handled separately (see the Secure Boot section below).

  1. Update the system fully: sudo dnf upgrade --refresh. Reboot if the kernel changed.
  2. Enable RPM Fusion's free and nonfree repositories. The official RPM Fusion instructions provide the exact command for your Fedora version; do not copy commands from unrelated guides, because the repository URLs change between releases.
  3. Install the akmod package for your GPU generation. RPM Fusion provides separate packages for current and legacy cards; installing the wrong one is the most common cause of a black screen.
  4. Wait for the module to build. The akmods service compiles it in the background; you can watch progress with systemctl status akmods or check the log.
  5. Reboot. The proprietary driver loads at boot in place of Nouveau.
  6. Verify with nvidia-smi, which should print the driver version and GPU details. If it errors, the module did not load.

Do not install the driver by downloading a .run file from Nvidia's website on Fedora. That method bypasses the package manager, conflicts with RPM Fusion packages, and breaks on kernel updates. The repository route is the supported one.

Secure Boot and Signed Modules

If Secure Boot is enabled in the firmware, the kernel refuses to load unsigned modules, and the Nvidia driver will not work until it is signed. RPM Fusion's akmods can generate a signing key and sign the module automatically, but you must enroll that key in the firmware's MOK (Machine Owner Key) list. The process prompts for a password during the first boot after installation; you then complete enrollment in the blue MOK management screen. Skipping this step leaves you on Nouveau with no obvious error unless you check the kernel log. If you do not need Secure Boot, disabling it is simpler, but that is a security trade-off you should make deliberately.

Common Problems and Fixes

  • Black screen after reboot — usually the wrong driver branch for the GPU, or a failed module build. Boot to a previous kernel or use a text console, remove the Nvidia packages, and reinstall the correct branch.
  • Driver stops working after a kernel update — the akmod build failed, often because kernel headers were missing. Install the matching kernel-devel package and rebuild.
  • Wayland session glitches — some Nvidia features behave differently under Wayland. Switching to an Xorg session at the login screen is a quick diagnostic.
  • Screen tearing — often resolved by enabling the driver's composition pipeline or forcing full composition in the display settings.
  • nvidia-smi not found — the driver did not install or the module is not loaded; check lsmod | grep nvidia.

Choosing Between Proprietary and Open Drivers

Nvidia now publishes an open-source kernel module component, and distributions have begun packaging it, but the userspace driver remains proprietary. On Fedora, the RPM Fusion packages are still the mainstream route. Choose the proprietary driver if you game, use CUDA, run Blender with GPU rendering, or need hardware video encoding. Choose Nouveau if you want a fully open stack, have an older card, or only need a desktop. A third option, the software renderer, is a fallback for troubleshooting, not daily use.

Frequently Asked Questions

Is the Nvidia driver available in Fedora's official repositories?

No. Fedora's repos contain only open-source software. The proprietary driver comes from RPM Fusion's nonfree repository, which Fedora's documentation references as the supported source.

Will the driver survive kernel updates?

With the akmod package, yes — the module is rebuilt automatically when a new kernel arrives. With the kmod package, you may need to reinstall it after kernel updates.

Do I need to disable Secure Boot?

Not necessarily. You can keep Secure Boot enabled and enroll the module signing key through the MOK process, but you must complete that enrollment or the driver will not load.

Can I switch back to Nouveau later?

Yes. Remove the Nvidia packages and reboot; the kernel will fall back to Nouveau. Keep a note of the removal command before you switch, in case you need to do it from a text console.

Does the driver work with Wayland?

It works on current Fedora releases for many configurations, but Xorg remains more predictable for some setups. If you hit glitches, try an Xorg session to isolate the cause.

Why does nvidia-smi fail after installation?

Most often the kernel module did not build or load. Check that kernel-devel matches your running kernel, rebuild the akmod, and confirm the module appears in lsmod.