File: screenblank

package info (click to toggle)
acpi-support 0.137-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,008 kB
  • ctags: 9
  • sloc: sh: 1,330; makefile: 58; ansic: 51
file content (13 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
if [ `pidof xscreensaver` ]; then
	su $user -c "(xscreensaver-command -throttle)"
		if [ x$LOCK_SCREEN = xtrue ]; then	
		su $user -c "(xscreensaver-command -lock)"
	fi
elif [ `pidof dcopserver` ]; then
	dcop kdesktop KScreensaverIface lock
fi

xset dpms force off
if [ x$RADEON_LIGHT = xtrue ]; then
    [ -x /usr/sbin/radeontool ] && radeontool light off
fi