Menu

NVIDIA Guide

Anonymous

Run the following commands in a terminal, the printout will indentify which graphic card you have installed and the available driver(s) for it.

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

  2. sudo apt install nvidia-detect

  3. nvidia-detect

Example: the printout from these commands, listing the graphic card and available drivers for my Dell Optiplex 7070 Tower.

cavy@tower:~$ lspci -nn | egrep -i "3d|display|vga"
00:02.0 Display controller [0380]: Intel Corporation CometLake-S GT2 [UHD Graphics 630] [8086:3e92]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)
cavy@tower:~$ nvidia-detect 
bash: nvidia-detect: command not found
cavy@tower:~$ sudo apt install nvidia-detect 
[sudo] password for cavy: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  nvidia-detect

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 233 kB of archives.
After this operation, 307 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/non-free amd64 nvidia-detect amd64 460.91.03-1 [233 kB]
Fetched 233 kB in 0s (1,921 kB/s) 
Selecting previously unselected package nvidia-detect.
(Reading database ... 280166 files and directories currently installed.)
Preparing to unpack .../nvidia-detect_460.91.03-1_amd64.deb ...
Unpacking nvidia-detect (460.91.03-1) ...
Setting up nvidia-detect (460.91.03-1) .
cavy@tower:~$ nvidia-detect 
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)

Checking card:  NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
Your card is supported by all driver versions.
Your card is also supported by the Tesla 460 drivers series.
Your card is also supported by the Tesla 450 drivers series.
Your card is also supported by the Tesla 418 drivers series.
It is recommended to install the
    nvidia-driver
package.
cavy@tower:~$ 

CLI instructions how to install the correct driver identified by nvidia-detect: https://wiki.debian.org/NvidiaGraphicsDrivers#bookworm-390

Or install via Synaptic Package Manager, in this example it is the nvidia-driver which is the latest 460 driver, this draws in all the needed dependencies, once installed to activate the driver, the system requires to be rebooted, run this command in the terminal systemctl reboot

Please note:
Use of the 340-series driver is strongly discouraged. It is not included in stable releases of Debian anymore, has serious unfixable
security vulnerabilities, and may not be updated for new kernels in a timely manner. You are highly recommended to use the built-in Nouveau driver if security is a priority.