How to install Nvidia drivers on Fedora 29

Muhammed Kaplan
Feb 11, 2019 · 2 min read

Hi, everyone! i just wanted to publish a blog for how to install nvidia drivers on fedora. As you all know installing nvidia drivers is bit hard for newbies, and thats why i decided to write this blog. Let’s begin.

  1. First upgrade your system to latest software and then reboot:

sudo dnf upgrade

2. Then add negativo repo

dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo

3. Update your repos:

sudo dnf update

4. Install Nvidia drivers

sudo dnf install nvidia-driver nvidia-driver-libs nvidia-libXNVCtrl nvidia-driver-cuda nvidia-driver-cuda-libs nvidia-driver-NVML nvidia-persistenced nvidia-modprobe nvidia-settings nvidia-xconfig dkms-nvidia

This will install nvidia drivers with dkms modules. What we need to do is compile dkms modules to get nvidia working.

5. We need kernel-headers and kernel-devel package to build modules.

sudo dnf install kernel-headers kernel-devel

After installation of kernel modules run

sudo dkms autoinstall

6. And wala! the nvidia drivers is installed what you need to do is disabling the nouveau, you can refer to this link for how to disable nouveau.

2.6 Disable nouveau

2.6.1 Create or edit /etc/modprobe.d/blacklist.conf

Append ‘blacklist nouveau’

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

2.6.2 Edit /etc/sysconfig/grub

Append ‘rd.driver.blacklist=nouveau’ to end of ‘GRUB_CMDLINE_LINUX=”…”‘.

## Example row ##
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"

2.6.3 Update grub2 conf

## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg
## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Final results!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade