The default open source Nouveau driver works in most situations, but you may encounter issues like screen tearing with it.
Display issue in Fedora with Nouveau graphics driver
If you encounter such graphics/video issues, you may want to install the official proprietary Nvidia drivers in Fedora. Let me show you how to do that.
Installing Nvidia drivers in Fedora
I am using Fedora 32 in this tutorial but it should be applicable to other Fedora versions.
Before you do anything else, make sure that your system is up-to-date. You can either use the Software Center or use the following command in the terminal:
sudo dnf update.Step 2
Since Fedora doesn’t ship the Nvidia driver, you need to add the RPMFusion repos to your system. You can use the following command in the terminal
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpmDon’t like terminal? Use GUI method to add RPMFusion repository
If you are using Firefox, you can also add the RPMFusion repositories from your browser. Go to the Configuration page and scroll down to the “Graphical Setup via Firefox web browser” section. Click the link for the free and then the nonfree repo. This will download the .rpm file, which will eventually install the repository.
RPMFusion Browser Installation
You can double click on the downloaded RPM file to install it.
RPMFusion in the Software CenterStep 3
Now you need to determine what graphics card (or chip) you have in your Linux system. Pull up the terminal and enter the following command:
lspci -vnn | grep VGAVideo Card Lookup in Fedora
Note: Keep in mind that there are only three drivers available to install, even though the Nvidia list shows more. The most recent cards are supported by the Nvidia driver. Old devices are supported by the nvidia-390 and nvidia-340 drivers.
To install the required driver, enter one of the commands into the terminal. The following command is the one I had to use for my card. Update as appropriate for your system.
sudo dnf install akmod-nvidia sudo dnf install xorg-x11-drv-nvidia-390xx akmod-nvidia-390xx sudo dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xxNvidia terminal installationStep 5
To make the changes take effect, reboot your system. It might take longer for your system to reboot because it is injecting the Nvidia driver into the Linux kernel.
Once you log in to your system after reboot, you should have a better visual performance and no screen tearing.
Fedora with Nvidia driversBonus Tip:
This is an optional step but it is recommended. When you add the RPMFusion repos, you get access to multimedia packages that are not available in the regular repos.
This command will install packages for applications that usegstreamer:
sudo dnf groupupdate multimedia –setop=”install_weak_deps=False” –exclude=PackageKit-gstreamer-plugin
This command will install packages needed by sound and video packages:
sudo dnf groupupdate sound-and-video
Hopefully, you find this tutorial useful in installing Nvidia drivers on Fedora. What other Fedora tutorials would you like to see on It’s FOSS?