You use NVIDIA Drivers for Linux but sometime, after an update/upgrade of Xorg or your Kernel, you need have to re-install Nvidia drivers. This is a script to auto install nvidia driver when it's needed.
/sbin/modinfo nvidia > /dev/null
NV=$?
# test if nvidia driver is correctly installed
if [[ -h "/usr/lib/xorg/modules/extensions/libglx.so" && $NV -eq 0 ]]
then
echo "NVIDIA Driver is [OK]"
else
echo "NVIDIA Driver is [NOTOK]
"
export IGNORE_CC_MISMATCH=1 # Ignore gcc version (when gcc kernel version is different with installed gcc)
/etc/init.d/gdm stop # stop gdm
sh /root/NVIDIA-Linux-* -s --no-x-check # install nvidia without any questions
/etc/init.d/gdm start # re-start gdm
fi
This is great info to know.
RépondreSupprimer