How to install Nvidia Drivers on Linux

Chưa phân loại

You can use Nvidia cards with the open-source Nouveau device driver or the Nvidia proprietary drivers. The proprietary driver supports more Nvidia cards than Nouveau.

Nouveau – Nvidia Open Source Driver

Nouveau is the open-source device driver to support Nvidia graphics cards and the Nvidia Tegra family of SoCs. The device driver was developed with the cooperation of Nvidia engineers but it’s not the official Nvidia driver.

Nouveau is based on Nvidia’s proprietary Linux driver. The project is currently managed by X.Org Foundation. It has three components:

  • Linux Kernel KMS driver (nouveau)
  • Gallium3D drivers in Mesa
  • DDX

The source code is hosted on

Nouveau is freely distributed under the MIT License. The predecessor of Nouveau is the deprecated 2D-only open-source nv driver. In 2005, Nouveau started as nv driver patches. The first official release was demonstrated in the in 2007. In 2010, Nouveau was accepted into the Linux kernel as an experimental device driver.

The initial versions of Nouveau were using Direct Rendering Infrastructure (DRI) for Mesa 3D for 3D graphics functionalities. But since 2008, Gallium3D is being used for 3D support. Nouveau is used as the default Nvidia device driver for Linux distributions like Fedora, Ubuntu, Debian, and OpenSUSE.

The Nouveau project is actively supported by the open-source community. It is improving with every new release.


Nouveau users should be aware of the following limitations:

  • Performance: 3D performance may be slower than Nvidia proprietary drivers.
  • Refresh Rates: Higher refresh rates (above 60 Hz) might run into bottlenecks.
  • Advanced Features: The driver might not support new advanced features in the latest Nvidia graphics cards (like multiple-display capabilities of Nvidia Quadro cards without Scalable Link Interface or SLI).

Nvidia Proprietary Driver

The Nvidia proprietary driver is developed and maintained by Nvidia. It supports a wider range of graphics cards than Nouveau driver. This closed-source driver provides better performance for 3D graphics and computer games than the open-source option.

The Nvidia proprietary driver consists of two parts:

  • Wrapper functions compile against the Linux kernel.
  • The binary blob (Binary Large OBject) takes care of the communication with the card.

The kernel module and the X11 driver are included in a single package. Users have to choose the specifics of how the components are installed from the package.

Hardware Compatibility

The package comes with support for multiple generations of Nvidia cards. You can find out about the card compatibility with your system using the Nvidia driver download page form.

Kernel Compatibility

Nvidia kernel driver installs and runs against the current Linux kernel. The driver builds as a module and needs a kernel that is capable of loading kernel modules. The kernel module is called nvidia.ko. The nvidia.ko consists of a proprietary part, known as the binary blob, and an open-source part, known as the glue. The binary blob takes care of the graphics card functionalities. The glue part works as the intermediary between the binary blob and the kernel. The binary blob, the glue, and the system kernel have to work together to create a smooth operation. These components take care of operating system issues like kernel panics, X server crashes, overheating and power management.

The Challenges of Nvidia Drivers

A risk of using the Nvidia proprietary driver is the changes to any Linux internal Application Binary Interface (ABI) can have adverse consequences. New Linux kernel releases can change the internal ABI for drivers. It requires all drivers using those ABIs to be updated. It is not a big deal for open-source products. Users can easily review the chain of calls between drivers and update the ABIs easily. But users don’t have that level of transparency into nvidia.ko. So after a new kernel release, Nvidia cards might start to showcase data loss or hardware failures. If you are using nvidia.ko, always use caution before a kernel update. It’s recommended to stick to the current kernel version until Nvidia releases a new version of nvidia.ko for general use.

Relationship with the Open-Source Community

Nvidia has a contentious relationship with the open-source community. The Nvidia graphics cards still outperform Intel and AMD cards on Linux systems. But the closed-source nature of Nvidia drivers makes it difficult for open-source communities to contribute. In the past, open-source Nouveau developers used to take the firmware images of the Nvidia device drivers and reverse engineer them to find out more about the internals of the drivers. Then they would replicate the functionalities on Nouveau. But Nvidia started to release signed firmware images which can’t be reverse engineered. Nvidia has claimed that they want to stop the use of imitation graphics cards. But it is preventing the development of open-source support for Nvidia cards.

Switching Between Nouveau and Nvidia Drivers

Users can switch between Nouveau and Nvidia proprietary drivers. It’s difficult but still possible. Here are three methods you can use:

  • Switching with the help of two kernels
  • Switching with the help of a single kernel and hprofile
  • Switching with the help of a single kernel and systemd

You can learn more about the methods here.

Linux Distribution Specific Installation Instructions

Please use the following links to find the installation instructions for specific Linux distributions. The detailed instructions should help you install the Nvidia proprietary driver on your Linux machine. If your favorite distribution is missing, you can send us an email and we will look into adding the necessary instructions.



Linux Mint



In Conclusion

Nvidia is one of the best companies for graphics cards for Linux machines. However, installing and running Nvidia drivers on Linux systems is challenging due to the company’s propensity to keep its hardware and software closed-sourced. You can use Nouveau open-source drivers to run Nvidia cards at a performance penalty. Also, find out more about the performance differences between Nouveau and Nvidia proprietary drivers from this Phoronix review.

Further Information:

Nouveau Information Page

Nvidia Driver Download Page

Switching Between Nouveau and Nvidia Proprietary Driver


ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

How to install LibreCAD 2.1.3 on Ubuntu & Linux Mint

How to install LibreCAD, a free Open Source personal CAD application for Windows, Macintosh and Linux. It’s a comprehensive,...

Add A Debian Repository

This article gives a brief introduction to Debian repositories and how to add them by editing the sources.list file and...

Converting Documents From Markdown Into Microsoft Word Format

Among other activities, writing and editing text documents belongs to the most common actions we use our (desktop) computers...
Bài Viết

Bài Viết Mới Cập Nhật

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh

Mua proxy Onet uy tín tại

Thuê mua IPv4 giá rẻ, tốc độ nhanh, uy tín #1

Thuê địa chỉ IPv4 IPv6 trọn gói ở đâu chất lượng, giá RẺ nhất?