For me on a Debian 12 machine with NVIDIA GP107 [GeForce GTX 1050 Ti]
here is the workaround.
I install nvidia driver for my card from debain unstable(sid) repository.
Remove all previous nvidea drivers Installed from current repository or By nvidia website script.
sudo apt purge nvidia-*
Reboot the system to use embedded Intel Graphic card.
deb http://deb.debian.org/debian sid main non-free-firmware non-free contrib
sudo apt update
sudo apt -d -u -t sid install nvidia-driver
sudo apt -t sid install nvidia-driver
After that you can remove sid line from source.list then update source.
sudo apt update
After above steps here is info.
$ nvidia-settings
$ lspci -nn | egrep -i "3d|display|vga"
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:43d2] (rev 11)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1)
Checking card: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
Your card is supported by all driver versions.
Your card is also supported by the Tesla drivers series.
Your card is also supported by the Tesla 470 drivers series.
It is recommended to install the
nvidia-driver
package.
$ nvidia-smi
Sun Mar 10 15:32:51 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A |
| 45% 32C P0 N/A / 75W | 322MiB / 4096MiB | 5% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 875 G /usr/lib/xorg/Xorg 187MiB |
| 0 N/A N/A 1410 G xfwm4 1MiB |
| 0 N/A N/A 5389 G ...b/firefox-esr/firefox-esr 129MiB |
+-----------------------------------------------------------------------------+
$ screenfetch
_,met$$$$$gg. esmaeel@system
,g$$$$$$$$$$$$$$$P. OS: Debian 12 bookworm
,g$$P"" """Y$$.". Kernel: x86_64 Linux 6.1.0-18-amd64
,$$P' `$$$. Uptime: 29m
',$$P ,ggs. `$$b: Packages: 2263
`d$$' ,$P"' . $$$ Shell: bash 5.2.15
$$P d$' , $$P Resolution: 1920x1080
$$: $$. - ,d$$' DE: Xfce
$$\; Y$b._ _,d$P' WM: Xfwm4
Y$$. `.`"Y$$$$P"' WM Theme: Default
`$$b "-.__ GTK Theme: Xfce [GTK2]
`Y$$ Icon Theme: Tango
`Y$$. Font: Sans 10
`$$b. Disk: 76G / 440G (19%)
`Y$$b. CPU: Intel Core i5-10400 @ 12x 4.3GHz [46.0°C]
`"Y$b._ GPU: NVIDIA GeForce GTX 1050 Ti
`"""" RAM: 10337MiB / 31947MiB
$ sudo apt install hashcat hashcat-nvidia
$ hashcat -b
$ nvidia-smi
$ apt search nvidia-smi
nvidia-smi/testing,now 535.161.08-2 amd64 [installed,automatic]
NVIDIA System Management Interface
Above package have weird behaviour. It consumes all Memory when run in this way.
$ nvidia-smi
Here is output of memory consumption.
$ ps aux --sort=-%mem | head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
esmaeel 7820 48.2 93.6 54546372 30649996 pts/6 D+ 11:31 0:06 nvidia-smi
esmaeel 5635 9.6 1.2 12009736 410036 ? Dl 11:11 1:55 /usr/lib/firefox/firefox
Report this bug to debian package maintainers.
https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=nvidia-smi;dist=unstable