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

# Set DPMS values in Xsetup. These will apply for the login screen.

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

(
	sleep 1
	xset s off
	if [ -n "$SLX_SCREEN_STANDBY_TIMEOUT" ]; then
		xset dpms "$SLX_SCREEN_STANDBY_TIMEOUT" "$SLX_SCREEN_STANDBY_TIMEOUT" "$SLX_SCREEN_STANDBY_TIMEOUT"  &> /dev/null
	else
		xset -dpms
	fi
) &

: