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 --uninstallStep 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-waylandThese 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.confAdd these lines to block Nouveau thoroughly:
text
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau offStep 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.confStep 5: Update the Initramfs and Reboot
bash
sudo dracut --regenerate-all --force
sudo rebootSource: https://net2.com/how-to-disable-the-nouveau-kernel-driver-for-nvidia-graphics-cards-in-linux/
Related articles
- Installing NVIDIA Drivers and CUDA 12.6 on Debian 13 (RTX 5070)Linux · GPU · CUDA · Docker
- Fixing Docker Swarm Startup Failures on Debian 13 Due to Network TimingDocker · Linux · Networking
- Taking Oremi Izwi to the GPU: What We Learned from a Deep TTS Performance InvestigationAI · GPU · Python · TTS