Install Nvidia Drivers on Debian

28/12/2020
Chưa phân loại

Install Nvidia Optimus Graphics Drivers on Debian 9 Stretch

In this article, I am going to show you how to install and uninstall Nvidia Optimus Graphics drivers for devices that can run in hybrid graphics mode. In Linux, there are two types of Nvidia graphics drivers available. One is called nouveau which is open source and the other one is the closed source drivers from Nvidia. For most people, the open source nouveau drivers are enough. But if you strictly need the closed source Nvidia drivers for high performance graphics experience, then this article is for you.  Let’s get started. I am using GNOME3 desktop on Debian 9 Stretch.

First go to Activities and click on “Software and Updates”

Make sure all of these checkboxes are marked. If they are marked then you’re good to go.

Now run the following command to check whether your device supports Hybrid graphics:

lspci | grep 'VGA|Nvidia'

You can see that I have Nvidia GeForce 940M and Intel HD Graphics 520 on my laptop.

Now to install Nvidia Optimus graphics drivers, run the following commands:

  sudo apt-get update  sudo apt-get install bumblebee-nvidia  

Press ‘y’ and press <Enter> to continue. It should take a while for it to download and install all of these packages from the internet.

You should get the following message, simply press <Enter>. It’s nothing serious. The nouveau graphics driver will be blacklisted after installing the proprietary Nvidia drivers anyway. So it won’t be loaded from the next boot.

Once it’s complete, restart your computer. Once your computer boots, you have to perform some additional steps.

Open a terminal and run the following command:

sudo nano /usr/share/applications/nvidia-settings.desktop

The following window opens up:

Here you have to change only the marked section. Change it as it’s shown in the screenshot below.

Now press Ctrl+X and press to save the file.

Now click on “Activities” in the top left corner and search for “Nvidia”:

Click on Nvidia icon and you should be able to see Nvidia settings as shown below.

So everything is working correctly.

If you want to uninstall Nvidia Optimus drivers and go back to open source nouveau drivers, just run the following commands:

sudo apt-get autoremove --purge bumblebee-nvidia

Press ‘y’ and then press , Nvidia Optimus graphics drivers should be uninstalled.

Once it’s complete, restart your computer. That’s how you install and uninstall Nvidia Optimus graphics drivers on Debian 9 Stretch.

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

Understanding The Dockerfile

You’ll agree with me that the impact Docker is having on the world of technology is massive. It is saving software developers...
29/12/2020

Installing Wine on Debian 10

Wine is a Windows compatibility layer for Linux. It is used to run Windows applications on Linux.  In this article, I...
29/12/2020

Secure Boot Linux

Linux: What is Secure Boot? At its start a computer runs a specific program to detect and initialize its hardware components....
28/12/2020
Bài Viết

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

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

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

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

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024

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