From 652a22aa911251c8b7f0a71f534964d290a44a5b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Apr 2013 14:54:33 +0200 Subject: [PATCH] xorg: fix when nouveau/modeset is returning -1 instead of 1 (treat as 1) --- postplug.d/30xorg | 1 + 1 file changed, 1 insertion(+) diff --git a/postplug.d/30xorg b/postplug.d/30xorg index 592e8bc..02f1f51 100644 --- a/postplug.d/30xorg +++ b/postplug.d/30xorg @@ -185,6 +185,7 @@ if [ -e $XORGCONF ]; then VIDEODRIVER=${VIDEODRIVERS[0]} [ -e /sys/module/nouveau/parameters/modeset ] && NOUVEAU_MODESET=`cat /sys/module/nouveau/parameters/modeset` + [ "$NOUVEAU_MODESET" = "-1" ] && NOUVEAU_MODESET=1 [ -e /sys/module/radeon/parameters/modeset ] && RADEON_MODESET=`cat /sys/module/radeon/parameters/modeset` if [ "$VIDEODRIVER" = "nvidia" -a "$NOUVEAU_MODESET" = "1" ]; then