source: lliurex-rpi-packages/trunk/fuentes/ldm/ltsp/xinitrc.d/I10-dpms @ 2328

Last change on this file since 2328 was 2328, checked in by kbut, 3 years ago

add new package

File size: 619 bytes
Line 
1# Sourced
2
3# Set DPMS blanking interval for X
4# NOTE: Does not apply to startx/xdmcp script.  For XDMCP, this should be
5#       accomplished server-side
6
7if [ -n "${X_BLANKING}" ]; then
8    if [ "${X_BLANKING}" = "0" ]; then
9        xset s off
10        xset -dpms
11    else
12        # X_BLANKING should be a number, if anything else is passed
13        # let's make sure not to return false
14        #
15        # Set both dpms and the screensaver to achieve blanking even
16        # when dpms is not supported.
17        xset dpms ${X_BLANKING} 2>/dev/null || true
18        xset s ${X_BLANKING} 2>/dev/null || true
19    fi
20fi
21
22
Note: See TracBrowser for help on using the repository browser.