From 56de70a264f92cc801c1f06fe2c1f6317a5e4913 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 16 Jul 2012 19:30:18 +0200 Subject: [PATCH] xorg: set GLXVBlank to true when using nouveau driver to fix flickering issues --- postplug.d/30xorg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/postplug.d/30xorg b/postplug.d/30xorg index ccd5e2b..7699590 100644 --- a/postplug.d/30xorg +++ b/postplug.d/30xorg @@ -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