Skip to content
Afa' Afa'

How to Disable the Nouveau Kernel Driver for NVIDIA Graphics Cards in Fedora 41

Disable the Nouveau kernel driver on Fedora 41 before installing the NVIDIA proprietary driver.

1 min read Updated

Step 1: Remove Existing NVIDIA Packages

If you’ve previously attempted to install NVIDIA drivers, it’s best to start with a clean slate:

bash
sudo nvidia-installer --uninstall

Step 2: Install Required Packages for Kernel Building

bash
sudo dnf install @base-x kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig xorg-x11-server-Xwayland libxcb egl-wayland

These packages are necessary for building kernel modules, which the NVIDIA installer will need to do.

Step 3: Create a More Comprehensive Blacklist

Edit the system’s main blacklist file:

bash
sudo nano /etc/modprobe.d/blacklist.conf

Add these lines to block Nouveau thoroughly:

text
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

Step 4: Create a Specific KMS Configuration

For extra assurance, create a dedicated file for disabling Nouveau’s kernel mode setting:

bash
echo "options nouveau modeset=0" | sudo tee /etc/modprobe.d/nouveau-kms.conf

Step 5: Update the Initramfs and Reboot

bash
sudo dracut --regenerate-all --force
sudo reboot

Source: https://net2.com/how-to-disable-the-nouveau-kernel-driver-for-nvidia-graphics-cards-in-linux/

Something wrong or want to discuss this article? Get in touch

Search articles and projects

Type to filter articles and projects. Use the arrow keys to move through results and Enter to open one. Press Escape to close.