30xorg: workaround configuration to disable DPMS on bananapi

This commit is contained in:
Silvan Calarco 2014-12-21 13:27:09 +01:00
parent 97242a1b52
commit 05c2d2cf43

View File

@ -470,6 +470,17 @@ fi
# Configure keyboard
xorg_d_configure_input
if [ -d /sys/devices/platform/sunxi-rtc -a ! -e /etc/X11/xorg.conf.d/30-serverflags.conf ]; then
# Workaround: disable DPMS on BananaPi
cat > /etc/X11/xorg.conf.d/30-serverflags.conf << _EOF
Section "ServerFlags"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
_EOF
fi
[ -e $XORGCONF -a "$VIDEODRIVER" ] || exit 0
# add missing brackets to Xorg.conf device entries