From 05c2d2cf43dd29d1690deb67e55268d74f218d5d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 21 Dec 2014 13:27:09 +0100 Subject: [PATCH] 30xorg: workaround configuration to disable DPMS on bananapi --- postplug.d/30xorg | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/postplug.d/30xorg b/postplug.d/30xorg index bb6b81c..2f5894c 100644 --- a/postplug.d/30xorg +++ b/postplug.d/30xorg @@ -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