Debian 9.xx nvidia quadro K420 e nvidia driver

La scheda nvidia quadro K420 è supportata nativamente dai driver noveau di debian stretch.

Per controllare digitare

 
lspci -nnk | grep -i vga -A3 | grep 'in use'
lspci -nnk | grep -i vga -A3 | grep 'in use' 
Kernel driver in use: nouveau

informazioni estese

lspci -nnk | grep -i vga -A3
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1)
	Subsystem: NVIDIA Corporation GK107GL [Quadro K420] [10de:1106]
	Kernel driver in use: nouveau
	Kernel modules: nouveau

ancora solo prima riga

 lspci -nn | egrep -i "3d|display|vga"
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1)

lspci -vnn | grep VGA -A 12

 maurizio# lspci -vnn | grep VGA -A 12
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: NVIDIA Corporation GK107GL [Quadro K420] [10de:1106]
	Flags: bus master, fast devsel, latency 0, IRQ 41, NUMA node 0
	Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel


se è installata una scheda nvidia conviene installare i driver proprietari non-free di nvidia e alcuni pacchetti collegati
nvidia-detect

apt install nvidia-detect

lanciare

maurizio# nvidia-detect
Detected NVIDIA GPUs:
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1)

Checking card:  NVIDIA Corporation GK107GL [Quadro K420] (rev a1)
Your card is supported by the default drivers and legacy driver series 340.
It is recommended to install the
    nvidia-driver
package.

Il driver proprietario “NVIDIA Accelerated Linux Graphics Driver” fornisce accelerazione hardware ottimizzata per le applicazioni OpenGL attraverso il direct-rendering con il server X. È un driver solo binario per Xorg che richiede un modulo del kernel Linux per essere usato.

Ripreso dal wiki debian it/NvidiaGraphicsDrivers – Debian Wiki  per debian9:

Installazione in Debian 9 “Stretch”

A partire da stretch, non è più necessario nvidia-xconfig e nella maggior parte dei casi non è necessario nemmeno un file xorg.conf. Inoltre è stato fatto un fork della serie 340 in una propria serie di pacchetti per gestire le schede più vecchie

apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver
root@deb9p4B:/home/maurizio# apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-amd64 is already the newest version (4.9+80+deb9u4).
linux-headers-amd64 set to manually installed.
The following additional packages will be installed:
  glx-alternative-mesa glx-alternative-nvidia glx-diversions libegl-nvidia0 libegl1-glvnd-nvidia libgl1-glvnd-nvidia-glx libgl1-nvidia-glvnd-glx
  libgldispatch0-nvidia libgles-nvidia1 libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0 libglx0-glvnd-nvidia libnvidia-cfg1
  libnvidia-eglcore libnvidia-glcore libnvidia-ml1 libopengl0-glvnd-nvidia libvulkan1 libxnvctrl0 nvidia-alternative nvidia-driver-bin
  nvidia-driver-libs nvidia-egl-common nvidia-egl-icd nvidia-installer-cleanup nvidia-kernel-common nvidia-kernel-dkms nvidia-kernel-support
  nvidia-legacy-check nvidia-modprobe nvidia-persistenced nvidia-settings nvidia-support nvidia-vdpau-driver nvidia-vulkan-common nvidia-vulkan-icd
  update-glx xserver-xorg-video-nvidia
Suggested packages:
  vulkan-utils
Recommended packages:
  nvidia-driver-libs-i386
The following NEW packages will be installed:
  glx-alternative-mesa glx-alternative-nvidia glx-diversions libegl-nvidia0 libegl1-glvnd-nvidia libgl1-glvnd-nvidia-glx libgl1-nvidia-glvnd-glx
  libgldispatch0-nvidia libgles-nvidia1 libgles-nvidia2 libgles1-glvnd-nvidia libgles2-glvnd-nvidia libglx-nvidia0 libglx0-glvnd-nvidia libnvidia-cfg1
  libnvidia-eglcore libnvidia-glcore libnvidia-ml1 libopengl0-glvnd-nvidia libvulkan1 libxnvctrl0 nvidia-alternative nvidia-driver nvidia-driver-bin
  nvidia-driver-libs nvidia-egl-common nvidia-egl-icd nvidia-installer-cleanup nvidia-kernel-common nvidia-kernel-dkms nvidia-kernel-support
  nvidia-legacy-check nvidia-modprobe nvidia-persistenced nvidia-settings nvidia-support nvidia-vdpau-driver nvidia-vulkan-common nvidia-vulkan-icd
  update-glx xserver-xorg-video-nvidia
0 upgraded, 41 newly installed, 0 to remove and 68 not upgraded.
Need to get 30.3 MB of archives.
After this operation, 121 MB of additional disk space will be used.


Ciò installa il pacchetto nvidia-driver. DKMS compilerà il modulo nvidia per il sistema in uso, attraverso il pacchetto nvidia-kernel-dkms.
Riavviare il sistema per abilitare l’inserimento nella lista nera di nouveau.

Verremo informati che non il nuovo dirver va in conflitto con il driver nouveau che si risolvrerà al primo riavvio.

nvidia-current:

Setting up nvidia-driver-libs:amd64 (375.82-1~deb9u1) ...
Processing triggers for nvidia-alternative (375.82-1~deb9u1) ...
update-alternatives: updating alternative /usr/lib/nvidia/current because link group nvidia has changed slave links
Setting up nvidia-kernel-dkms (375.82-1~deb9u1) ...
Loading new nvidia-current-375.82 DKMS files...
Building for 4.9.0-3-amd64 4.9.0-6-amd64
Building initial module for 4.9.0-3-amd64
Done.


Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-3-amd64/updates/dkms/

depmod.....

DKMS: install completed.
Building initial module for 4.9.0-6-amd64
Done.

nvidia-current:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-6-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-6-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-6-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-6-amd64/updates/dkms/

depmod...

DKMS: install completed.
Setting up nvidia-driver (375.82-1~deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for update-glx (0.7.4) ...
Processing triggers for glx-alternative-nvidia (0.7.4) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-6-amd64

Al riavvio ricontrolliamo il driver installato

 

Ci sarà comunque in setting

che ci informa che il driver installato è la versione 375.82


Per controllare digitare

 
lspci -nnk | grep -i vga -A3 | grep 'in use'
lspci -nnk | grep -i vga -A3 | grep 'in use' 
Kernel driver in use: nvidia

informazioni estese

lspci -nnk | grep -i vga -A3
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GL [Quadro K420] [10de:0ff3] (rev a1)
	Subsystem: NVIDIA Corporation GK107GL [Quadro K420] [10de:1106]
	Kernel driver in use: nvidia
	Kernel modules: nvidia

ancora solo prima riga

OpenGL

glxinfo | grep OpenGL

maurizio# glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro K420/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 375.82
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 375.82
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 375.82
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

 

Risorse:

Annunci

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...