Nvidia 800M/ALL on linux Debian Buster

How to Nvidia Drivers on Debian Buster:

Warning: Tested only in Debian Buster with DELL Inspirion 3442.

First enable the non-free contrib repository. Then follow the steps:

Identifying the correct driver:

To find out which driver you should install, install nvidia-detect with the command below on the terminal.

sudo apt install nvidia-detect

Run the command below to identify the recommended driver for your Nvidia VGA.


Save the result, in my case it was the nvidia-legacy-390xx-driver.

Installation, follow:

Add support for installing i386 packages to your apt.

sudo dpkg --add-architecture i386

Remove any traces of Nvidia or Bumblebee.

sudo apt remove --purge nvidia* bumblebee* primus* xserver-xorg-video-nouveau

Clean the residue.

sudo apt autoremove

Very important:

Login root mode.

su -

To ensure that the nouveau will not load, type was root.

nano /etc/modprobe.d/blacklist.conf

Add line -> blacklist nouveau , then save with ctrl+o -enter- , ctrl+x -enter-, then type exit -enter-.

Update the initramfs image.

sudo update-initramfs -u


sudo reboot

Drive installation, follow:

Change driver_recommended by the driver indicated by nvidia-detect.

sudo apt install nvidia-xconfig driver_recomended

Make a xorg.conf

sudo nvidia-xconfig

Edit the xorg.conf

sudo nano /etc/X11/xorg.conf

Very important:

Locate Section "Device" and replace it with the one below.

Section "Module"

Load "modesetting"


Section "Device"

Identifier "nvidia"

Driver "nvidia"


Option "AllowEmptyInitialConfiguration"


Change X: Y: Z by the BuzID of your board, to know which is the command below in the terminal.

lspci | egrep '3D'

In xorg.conf it should look like the example.

BusID "PCI:08:00:0"

Find Section "Monitor" and change Identifier "Monitor0" to Identifier "Monitor1". Look my xorg.conf

Final step, follow:

Script xrandr, execute commands:

su -

nano /usr/local/bin/switch_nvidia.sh

Paste the lines below.

xrandr --setprovideroutputsource modesetting NVIDIA-0

xrandr --auto

xrandr --dpi 96

Save file with ctrl+o -enter-, then ctrl+x -enter-

Make the file executable.

chmod +x /usr/local/bin/switch_nvidia.sh

XSetup config:

nano /usr/share/sddm/scripts/Xsetup

Paste the line below at the end of the file.


Save file with ctrl+o -enter-, then ctrl+x -enter-

Type exit to exit Root mode.

Disable Intel graphics:

sudo nano /etc/modprobe.d/intel.conf

Add on file:

blacklist i915

Save file with ctrl+o -enter-, then ctrl+x -enter-

Update the initramfs image.

sudo update-initramfs -u
sudo reboot