meta data for this page
This is an old revision of the document!
nvidia
With NVidia proprietary driver, apps which grab screen like “x11vnc” doesn't work correctly.
Switch between drivers
update-glx --config glx
To switch betweenr nvidia's driver version
update-glx --config nvidia
Install NVidia driver
see https://wiki.debian.org/NvidiaGraphicsDrivers
- Card: NVIDIA Corporation GT218 [GeForce 210]
- Debian Stretch package: nvidia-legacy-340xx-driver
sudo apt-get install nvidia-detect nvidia-detect Detected NVIDIA GPUs: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2) Your card is supported by the default drivers and legacy driver series 304. It is recommended to install the nvidia-legacy-340xx-driver package.
sudo apt-get install nvidia-legacy-340xx-driver # OR sudo apt-get install nvidia-driver
Configure X server:
sudo apt-get install nvidia-xconfig sudo nvidia-xconfig
or
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
Install open source driver (nouveau)
sudo apt-get --purge remove ^nvidia-* sudo mv -vi /etc/X11/xorg.conf /etc/X11/xorg.conf.nvidia sudo apt-get install nvidia-glx
Following package will clean after nvidia drivers (remove blacklisting of nouveau module)
sudo apt-get install glx-alternative-nvidia
stop X system, generate new xorg.conf file:
sudo Xorg -configure sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
set MESA as default GLX provider
update-alternatives --config glx
and restart X system
Issues
apt-get upgrade hangs
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
Shell script /usr/lib/nvidia/check-for-mismatching-nvidia-module
hangs accesing /proc
filesystem:
[ -e /proc/driver/nvidia/version ]
Workaround:
#if [ -e /proc/driver/nvidia/version ]; then if [ true ]; then #<----->running_version="$(grep NVRM /proc/driver/nvidia/version | awk '{ print $8 }')"