Latest

How to Install Nvidia Driver Ubuntu 20.04

Pinterest LinkedIn Tumblr

As Linux becomes more and more user-friendly, game developers are adding support for Steam. The performance of Graphics Processing Units (GPUs) mainly depends on the drivers. Ubuntu uses the Open Source New graphics driver by default, which offers limited support and capabilities compared to Nvidia’s own drivers.

The Nvidia driver is important for Ubuntu users who want to play games. However, if you are a new user, you do not need to install this driver because it works well with open source.

In this tutorial we will learn the different ways to install Nvidia drivers under Ubuntu 20.04 LTS.

Hardware CheckGPU Information

Before installing the Nvidia drivers under Ubuntu, make sure that the Nvidia GPU is installed on your system. There are many commands to get detailed information about Linux hardware.

To confirm, simply execute the following hwinfo command.

$ sudo hwinfo – gfxcard – short

You can check which card is used by the prime-select command:

Sudo prime selection

The lshw command can display information about the equipment and driver of the Nvidia card currently in use.

sudo lshw -c Display | grep NVIDIA

The lspci command is another way to get information about GPU hardware.

sudo lspci -nnk | grep -iA3 vga
or
$ sudo lspci | grep -i -color ‘vga|3d|2d’.

If you have installed the inxi tool, execute the following command.

$ sudo inxi -Gx

Install the Nvidia drivers with the graphical interface.

We will first check how to install the Nvidia driver of the GUI. Call the Software Update Manager from the main menu and click on it to open it.

Click on the Settings & Livepatch button in the pop-up window of the updater, as shown in the figure.

The Software and Updates window will then open as shown below:

At the top of the Software and Updates window you will find a number of options that are displayed, including Ubuntu software, other software, updates, and so on. In this case, click on the Additional drivers button and you will see that the Nvidia -435 driver (proprietary, tested) has been configured as the default driver for the Nvidia card and that some proprietary drivers are listed.

Both Nvidia – 430 (own) and Nvidia – 390 (own) drivers are available for the GeForce GTX 1080 Ti card. Select the first option to install the Nvidia 430 driver.  When finished, click Apply Changes to install the driver.

Then wait until the Internet download is complete and click on the Close button.

Restart the computer for the changes to take effect. Start the next one to restart the computer.

$ sudo shutdown -r now

or

Reboot the ship

Installation of the Nvidia Command Line Driver (CLI)

Then execute the following commands to check the list of available drivers for the Nvidia card in the standard Ubuntu repository.

Ubuntu driver boot

Four Nvidia drivers are available for the GeForce MX130. These include the non-free Nvidia -440 driver (recommended for Ubuntu systems), the non-free Nvidia -435 and -390 distribution drivers and the new open source graphics driver (standard). You can now execute the following commands to install the desired driver.

driver car installation sudo ubuntu driver

$ sudo apt Installation nvidia-driver-390

Once Nvidia Diver is installed, you will need to restart your computer so that Nvidia prime (the technology) can switch from Intel Graphics to the Nvidia graphics card.

$ sudo shutdown -r now

Test with nvidia-smi

The nvidia-smi command line is a utility used to provide monitoring and management functions for any device, i.e. Nvidia Tesla, GRID, Quadro and GeForce from Fermi and other superior architecture families. Open the Terminal application and execute the following command to display the GPU and the process using the Nvidia GPU

$vidia-smi

Nvidia Graphicsdriver configuration

Use the Nvidia Setup command to start the Graphics User Interface (GUI) tool to configure the Nvidia Graphics Driver. This allows you to view all the information on the GPU and even configure multiple external monitors connected to your system. To start the Nvidia window and the server settings, execute the following command.

Shipsnidia parameters

How do I remove my own Nvidiadriver?

In the open forums I found that many users have problems uninstalling and reinstalling Nvidia drivers. Let me tell you about the steps I followed to successfully remove the Nvidia driver and switch to the new driver.

Step one: Run the following commands to uninstall Nvidia’s own driver.

$ sudo dpkg -p $(dpkg -l | grep nvidia-driver | awk ‘{print $2}’)
$ sudo apt autoremove
or $ sudo apt cleange nvidia -*

Step two: Execute these commands to return to the new driver.

$ sudo apt installation xserver-xorg-video-new

You can probably also switch to the new driver directly from the GUI. In the Software and Update application, select the option Additional drivers. Then select the new rich display driver and click on Apply Changes.

Step three: Then restart the system.

$ sudo shutdown -r now

Step four: After rebooting the system, run the following command to confirm that the new rich module is loaded.

$ lsmod | grep new

Conclusion

In this tutorial we have studied two ways to install Nvidia drivers on Ubuntu 20.04 LTS.

In this context, Nvidia Vulkan, which should provide better performance and a more balanced CPU/GPU driver for Linux, is replacing OpenGL.

In recent years, Redhat developers have added extra code to the New Open Source code to make it much better, and we hope to be able to use it in a modern game in the near future.

If you have any questions or comments, please leave your questions.