meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:nvidia [2015/09/07 13:19] niziaklinux:nvidia [2017/08/18 12:58] niziak
Line 2: Line 2:
 With NVidia proprietary driver, apps which grab screen like "x11vnc" doesn't work correctly. With NVidia proprietary driver, apps which grab screen like "x11vnc" doesn't work correctly.
  
-==== Install nvidia driver ====+==== Switch between drivers ==== 
 +<code bash>update-glx --config glx</code> 
 + 
 +To switch betweenr nvidia'driver version 
 +<code bash>update-glx --config nvidia</code> 
 + 
 + 
 +==== Install NVidia driver ==== 
 +see [[https://wiki.debian.org/NvidiaGraphicsDrivers]] 
 + 
 +  * Card:  NVIDIA Corporation GT218 [GeForce 210] 
 +  * Debian Stretch package: nvidia-legacy-340xx-driver 
 +  
 <code bash> <code bash>
 sudo apt-get install nvidia-detect sudo apt-get install nvidia-detect
Line 10: Line 22:
 Your card is supported by the default drivers and legacy driver series 304. Your card is supported by the default drivers and legacy driver series 304.
 It is recommended to install the It is recommended to install the
-    nvidia-driver+    nvidia-legacy-340xx-driver
 package. package.
 </code> </code>
  
 <code bash> <code bash>
 +sudo apt-get install nvidia-legacy-340xx-driver
 +# OR
 sudo apt-get install nvidia-driver sudo apt-get install nvidia-driver
 +</code>
 +
 +Configure X server:
 +<code bash>
 sudo apt-get install nvidia-xconfig sudo apt-get install nvidia-xconfig
 sudo nvidia-xconfig sudo nvidia-xconfig
 </code> </code>
  
 +or 
 +<code bash> 
 +mkdir /etc/X11/xorg.conf.d 
 +echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf 
 +</code>
  
 ==== Install open source driver (nouveau) ==== ==== Install open source driver (nouveau) ====
Line 44: Line 66:
  
 and restart X system and restart X system
 +
 +==== Fan control ====
 +
 +<code bash>
 +echo 1 > /sys/bus/pci/drivers/nouveau/0000:01:00.0/hwmon/hwmon1/pwm1_enable
 +echo 50 > /sys/bus/pci/drivers/nouveau/0000:01:00.0/hwmon/hwmon1/pwm1
 +</code>
 +
 +==== Issues ====
 +apt-get upgrade hangs
 +<code>
 +root     28002  0.0  0.1  64524 19248 pts/0    S+   12:24   0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/libgl1-nvidia-glx:i386.postin
 +root     28008  0.0  0.0   4304   784 pts/0    S+   12:24   0:00 /bin/sh /var/lib/dpkg/info/libgl1-nvidia-glx:i386.postinst configure 340.96-1
 +root     28011  0.0  0.0   4304   808 pts/0    D+   12:24   0:00 /bin/sh /usr/lib/nvidia/check-for-mismatching-nvidia-module 352.79
 +</code>
 +Shell script ''/usr/lib/nvidia/check-for-mismatching-nvidia-module'' hangs accesing ''/proc'' filesystem:
 +<code bash>[ -e /proc/driver/nvidia/version ]</code>
 +Workaround:
 +<code bash>
 +#if [ -e /proc/driver/nvidia/version ]; then
 +if [ true ]; then
 +#<----->running_version="$(grep NVRM /proc/driver/nvidia/version | awk '{ print $8 }')"
 +</code>
 +