How to Install NVIDIA 510.xx Drivers on Fedora 35 Linux

Most modern Linux Desktop systems such as Fedora come with an NVIDIA driver pre-installed in the Nouveau open-source graphics device driver for NVIDIA video cards. For the most part, this is acceptable; however, if you are using your Linux system for graphical design or gaming, you may get better drivers.

Historically, the Nouveau drivers are slower than Nvidia’s proprietary drivers, lacking the latest graphics card hardware’s latest features, software technology, and support.

Currently, NVIDIA 510 Drivers are available to install, which bring many new features and improvements to the very latest and existing supported graphic cards with better Linux Kernel support, ReBAR indicator, GBM API support, and much more.

The following tutorial will teach you how to install the latest NVIDIA Drivers 510.xx series on Fedora 35 Linux or Fedora 34 using the command line terminal with alternative installation methods.

Update Fedora

Before you begin, update your system to make sure all existing packages are up to date to avoid conflicts during the installation.

sudo dnf upgrade --refresh -y

Important Notice

The NVIDIA Properiarty Drivers only support X11 and not Wayland on Fedora 35.

The NVIDIA 510 Graphic Card drivers have been officially released, the beta was 510.37.xx, and the release versions are now from 510.47.xx onwards.

This tutorial uses a stock standard installation of the Fedora 35 Workstation. Heavily modified systems may encounter issues that are not supported in this tutorial.

Determine your Graphics Card

The first step for users with aging NVIDIA Graphics cards is to determine what it is and if it is supported, users with brand new cards can skip this part as no doubt they will be supported.

First, find your graphics card module.

lspci | grep -e VGA

Example output:

03:00.0 VGA compatible controller: NVIDIA Corporation TU117 [GeForce GTX 1650] (rev a1)

Next, visit the supported NVIDIA GPU 510 supported chips section and verify your card is listed before moving on. For example, the tutorial uses an older GeForce GTX 1650, which is still kept in that list.

Option 1. Install NVIDIA Drivers – RPM Fusion

For users who would prefer to install NVIDIA drivers using an RPM, visit our tutorial on how to Install NVIDIA Graphic Drivers on Fedora 35 to see the full tutorial installation details, which also covers support for legacy drivers and the beta/testing drivers repository.

A quick overview of installing the drivers with RPM fusion is as follows.

Import RPM Fusion Free:

sudo dnf install \
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

Import RPM Fusion Nonfree:

sudo dnf install \
  https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Next, use the following command to install the NVIDIA 510 drivers.

sudo dnf install akmod-nvidia

Optionally, for users that want CUDA support as well, use the following command.

sudo dnf install xorg-x11-drv-nvidia-cuda

Once installed, reboot your PC.

sudo reboot

Once back in your system, run the following terminal command to verify the installation.

nvidia-smi

As explained, more details of installing NVIDIA drivers with RPM Fusion can be found in the tutorial linked with legacy drivers and beta/testing drivers.

Option 2. Download/Install NVIDIA Drivers – Manually

UEFI/SECURE BOOT USERS, VISIT THE DOCUMENTATION BY NVIDIA HERE FOR KERNEL MODULE SIGNING. FAILURE TO DO THIS POSSIBLY WILL BREAK YOUR OPERATING SYSTEM.

First, visit NVIDIA’s downloads page and download the latest .run file or get the link and use the wget command.

Example:

Install NVIDIA 510.47.03 Drivers on Fedora Linux 34/35

Example command only (make sure to get the latest link):

wget https://us.download.nvidia.com/XFree86/Linux-x86_64/510.54/NVIDIA-Linux-x86_64-510.54.run

Install Linux Headers and compilation dependencies:

sudo dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig -y

Next, blacklist the nouveau driver create a blacklist file:

sudo nano /etc/modprobe.d/blacklist-nouveau.conf

Once inside the file, add the following:

blacklist nouveau
options nouveau modeset=0

Example:

Install NVIDIA 510 Drivers on Fedora 35

Save the file CTRL+O, then exit CTRL+X.

You will then need to regenerate the Linux boot process.

sudo dracut -v -f

Warning, you will see a possible missing firmware message now. This is ok to ignore.

Now, reboot to the multi-user run level; this means for newer users that you will reboot your system in terminal mode entirely, forgoing any graphic UI while you install your NVIDIA drivers.

sudo systemctl set-default multi-user.target

Reboot system.

sudo reboot now

Install NVIDIA 510 Drivers

When you reboot your system, you will come to the terminal UI, log in to your account and navigate to the directory you downloaded your NVIDIA 510 .run driver package.

Next, run the following bash command to start the installation process.

Example only (your version should be different in the future):

sudo bash NVIDIA-Linux-x86_64-510.{version-number}.run

Example:

sudo bash NVIDIA-Linux-x86_64-510.*.run

Next, you will see a screen and loading bar for building the kernel. After a few seconds to minutes, you will see a prompt.

The first prompt will ask about allowing DKMS to automatically build a new module if you install or upgrade a new module.

This is an optional choice, but it is recommended to select Yes given how many Kernel updates occur on Fedora unless you are confident about doing it yourself.

Example:

Install NVIDIA 510 Drivers on Fedora 35

Next, if you want to install 32-bit compatibility, select Yes or No to proceed with the following optional prompt installation choice.

Example:

Install NVIDIA 510 Drivers on Fedora 35

It is recommended to select Yes for 32-bit compatibility for most users.

Next, the installation will build the DKMS kernel module, which may take a few minutes.

Example:

Install NVIDIA 510 Drivers on Fedora 35

In the last configuration option, you will receive another prompt asking to keep default settings for the nvidia-xconfig utility or if you would like the utility to configure the files for you automatically.

Example:

Install NVIDIA 510 Drivers on Fedora 35

This is optional, but the recommended option for fresh installs would be Yes for unsure users.

One last prompt will appear informing you that you have successfully installed the Nvidia Drivers package.

Example:

Install NVIDIA 510 Drivers on Fedora 35

Select Ok to exit.

Now that the drivers are installed, you need to reboot your system but first, make sure to switch back to the graphical UI interface.

sudo systemctl set-default graphical.target

Now, reboot.

sudo reboot now

Verify NVIDIA 510 Drivers

After you log back into your system, you can view the status of the graphic card with the nvidia-smi” command.

nvidia-smi

Example output:

Install NVIDIA 510 Drivers on Fedora 35

Alternatively, open your Nvidia X Server GUI to confirm the driver’s build version.

Example only:

Install NVIDIA 510 Drivers on Fedora 35

Option 3. Install NVIDIA Drivers – NVIDIA Repository

WARNING, X86_64 ARCHITECTURE IS ONLY SUPPORTED IN THIS METHOD FROM NVIDIA.

For users who do not want the work involved in compiling kernels and manually downloading every time an update occurs, an easier way to install the latest kernel available for your system is to import the NVIDIA repository directly.

This may not be suitable for some secure systems using third-party repositories, but the following steps will be ideal for the majority.

First, import the repository for your Fedora 34 or 35 system.

Import Fedora 34 NVIDIA Repository:

sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora34/x86_64/cuda-fedora34.repo

Import Fedora 35 NVIDIA Repository:

sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora35/x86_64/cuda-fedora35.repo

Install required dependencies for safe measures.

sudo dnf install kernel-headers kernel-devel dkms -y

Next, install the latest NVIDIA drivers which are 510 series at the time of this tutorial, using the following command.

sudo dnf module install nvidia-driver:latest-dkms

Example output:

Download/Install NVIDIA 510.39.01 Beta Drivers on Fedora 34/35

Type Y, then press the ENTER KEY to proceed.

For users wishing to install CUDA, use the following command.

sudo dnf install cuda

Note you will be prompted to import GPG keys during the installation. This is safe to do so for newer users.

Situational – Warning, the repository and installation may occur compatibility issues with RPM-FUSION NON-FREE. Use the following command to disable the NVIDIA drivers part of this extra third-party repository.

sudo dnf --disablerepo="rpmfusion-nonfree*" install cuda

Lastly, reboot your system once done.

reboot

Verify the installation by running NVIDIA-SMI as the manual installation steps showed beforehand.

nvidia-smi

Example output:

Download/Install NVIDIA 510.39.01 Beta Drivers on Fedora 34/35

Comments and Conclusion

Congratulations, you have installed the latest NVIDIA 510 Graphic Card Drivers on your Fedora 35 Workstation. Ideally, use the installation methods requiring repositories to constantly keep receiving new updates when released compared to the manual process.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!