xorg: fix when nouveau/modeset is returning -1 instead of 1 (treat as 1)
This commit is contained in:
parent
97a897b29e
commit
9f585a34c9
@ -185,6 +185,7 @@ if [ -e $XORGCONF ]; then
|
|||||||
VIDEODRIVER=${VIDEODRIVERS[0]}
|
VIDEODRIVER=${VIDEODRIVERS[0]}
|
||||||
|
|
||||||
[ -e /sys/module/nouveau/parameters/modeset ] && NOUVEAU_MODESET=`cat /sys/module/nouveau/parameters/modeset`
|
[ -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`
|
[ -e /sys/module/radeon/parameters/modeset ] && RADEON_MODESET=`cat /sys/module/radeon/parameters/modeset`
|
||||||
|
|
||||||
if [ "$VIDEODRIVER" = "nvidia" -a "$NOUVEAU_MODESET" = "1" ]; then
|
if [ "$VIDEODRIVER" = "nvidia" -a "$NOUVEAU_MODESET" = "1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user