meta data for this page
  •  

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
linux:nvidia [2015/08/04 08:48] – created niziaklinux:nvidia [2016/04/20 13:25] niziak
Line 1: Line 1:
 +====== nvidia ======
 +With NVidia proprietary driver, apps which grab screen like "x11vnc" doesn't work correctly.
 +
 +==== Switch between drivers ====
 +<code bash>update-glx --config glx</code>
 +
 +To switch betweenr nvidia's driver version
 +<code bash>update-glx --config nvidia</code>
 +
 +
 +==== Install NVidia driver ====
 +see [[https://wiki.debian.org/NvidiaGraphicsDrivers]]
 +
 <code bash> <code bash>
 sudo apt-get install nvidia-detect sudo apt-get install nvidia-detect
Line 15: Line 28:
 sudo nvidia-xconfig sudo nvidia-xconfig
 </code> </code>
 +
 +
 +
 +==== Install open source driver (nouveau) ====
 +<code bash>
 +sudo apt-get --purge remove ^nvidia-*
 +sudo mv -vi /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia
 +sudo apt-get install nvidia-glx
 +</code>
 +
 +Following package will clean after nvidia drivers (remove blacklisting of nouveau module)
 +<code bash>
 +sudo apt-get install glx-alternative-nvidia
 +</code>
 +
 +stop X system, generate new xorg.conf file:
 +<code bash>
 +sudo Xorg -configure
 +sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
 +</code>
 +
 +set MESA as default GLX provider
 +<code bash>update-alternatives --config glx</code>
 +
 +and restart X system
 +
 +==== 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>
 +