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 ;;
esac
# Compiz/3d configuration options
# NVIDIA Compiz/3d configuration options
if [ "$VIDEODRIVER" == "nvidia" ]; then
sed -i -e '/Section "Screen"/a\
Option "AddARGBGLXVisuals" "true"\
Option "DisableGLXRootClipping" "true"' $XORGCONF
fi
# Nouveau configuration options
if [ "$VIDEODRIVER" == "nouveau" ]; then
sed -i -e '/Driver.*"nouveau"/a\
Option "GLXVBlank" "true"' $XORGCONF
fi
# configure VirtualBox mouse driver
if [ "$VIDEODRIVER" = "vboxvideo" ]; then
sed -i "s|\"mouse\"|\"vboxmouse\"|" $XORGCONF