How to Install Nvidia Driver in Debian 9 Stretch + XFCE fix

by Neon Cipher - Mon, 29 Jan 2018
Tags: #nvidia #debian #xfce #driver

Before installing Nvidia drivers make sure you have the latest Debian version by running:

sudo apt-get update
sudo apt-get dist-upgrade

then reboot your computer

lspci -nn | egrep -i "3d|display|vga"

http://us.download.nvidia.com/XFree86/Linux-x86_64/375.82/README/supportedchips.html

sudo nano /etc/apt/sources.list

(main contrib non-free)

sudo apt-get update
sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
sudo apt-get install nvidia-settings nvidia-driver nvidia-opencl-common

or (for hybrid graphics chipset):

sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install bumblebee-nvidia primus primus-libs:i386

Tips for users with Optimus (hybrid) graphics chipsets with bumblebee-nvidia driver installed:

  1. To run a game with Nvidia support, type in the terminal: optirun (program-name)

2. You can't install Nvidia Tweaking tool with graphical interface (Nvidia X server settings). Doing so can corrupt your system! If you've generated /etc/X11/xorg.conf using nvidia-xconfig, remove that file. It's not compatible with Optimus laptops: sudo rm /etc/X11/xorg.conf

3. To fix screen tearing in Bumblebee, you need to follow my tutorial for INTEL cards: https://youtu.be/IJeX35wbZY4

4. All Nvidia tweaks should be done through modifying /etc/bumblebee/xorg.conf.nvidia configuration file

How to Install Nvidia Driver and Steam on Debian 9 (For Gamers): https://youtu.be/YSlTMEmUOBs

How to Fix Nvidia Horizontal Lines Screen Tearing Bug: https://youtu.be/oYWer86A20s

Comments