30xorg: workaround configuration to disable DPMS on bananapi
This commit is contained in:
parent
97242a1b52
commit
05c2d2cf43
@ -470,6 +470,17 @@ fi
|
|||||||
# Configure keyboard
|
# Configure keyboard
|
||||||
xorg_d_configure_input
|
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
|
[ -e $XORGCONF -a "$VIDEODRIVER" ] || exit 0
|
||||||
|
|
||||||
# add missing brackets to Xorg.conf device entries
|
# add missing brackets to Xorg.conf device entries
|
||||||
|
Loading…
Reference in New Issue
Block a user