summaryrefslogtreecommitdiffstats
path: root/core/modules/idleaction/data/etc/X11/Xsession.d/50-set_session_dpms
blob: 3459a503e04e35105a5821bf49dd2c29df3954c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/ash sourced

# Set DPMS values in Xsession. This will apply for user sessions

if [ -z "$SLX_PXE_SERVER_IP" ] && [ -z "$SLX_SCREEN_STANDBY_TIMEOUT" ]; then
	. /opt/openslx/config # Not sourced yet
fi

xset s off
if [ -n "$SLX_SCREEN_STANDBY_TIMEOUT" ]; then
	xset dpms 0 0 0 &> /dev/null
	xset +dpms &> /dev/null
else
	xset -dpms &> /dev/null
fi

: