The default open source Nouveau driver works in most situations, but you may encounter issues like screen tearing with it.
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
Since Fedora doesn’t ship the Nvidia driver, you need to add the RPMFusion repos to your Fedora 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.rpm
Don’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.
You can double click on the downloaded RPM file to install it.
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 VGA
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-340xx
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.
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 use gstreamer:
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?