xorg: set GLXVBlank to true when using nouveau driver to fix flickering issues

This commit is contained in:
Silvan Calarco 2012-07-16 19:30:18 +02:00
parent c454411a28
commit 56de70a264

View File

@ -323,13 +323,19 @@ if [ "$CONFCREATED" = "1" ]; then
DefaultColorDepth 24' $XORGCONF ;; DefaultColorDepth 24' $XORGCONF ;;
esac esac
# Compiz/3d configuration options # NVIDIA Compiz/3d configuration options
if [ "$VIDEODRIVER" == "nvidia" ]; then if [ "$VIDEODRIVER" == "nvidia" ]; then
sed -i -e '/Section "Screen"/a\ sed -i -e '/Section "Screen"/a\
Option "AddARGBGLXVisuals" "true"\ Option "AddARGBGLXVisuals" "true"\
Option "DisableGLXRootClipping" "true"' $XORGCONF Option "DisableGLXRootClipping" "true"' $XORGCONF
fi fi
# Nouveau configuration options
if [ "$VIDEODRIVER" == "nouveau" ]; then
sed -i -e '/Driver.*"nouveau"/a\
Option "GLXVBlank" "true"' $XORGCONF
fi
# configure VirtualBox mouse driver # configure VirtualBox mouse driver
if [ "$VIDEODRIVER" = "vboxvideo" ]; then if [ "$VIDEODRIVER" = "vboxvideo" ]; then
sed -i "s|\"mouse\"|\"vboxmouse\"|" $XORGCONF sed -i "s|\"mouse\"|\"vboxmouse\"|" $XORGCONF