core-admin/dom0/vaio_fixes/01sony-vaio-display
2011-04-07 13:34:17 +02:00

20 lines
368 B
Bash
Executable File

#!/bin/sh
# light up laptop screen for vaio VPCZ12
. "${PM_FUNCTIONS}"
resume_lapscreen()
{
if [ x$DISPLAY = x ]; then
export DISPLAY=:0
export XAUTHORITY=`ls /var/run/kdm/.Xauth*`
fi
/usr/bin/xrandr --output DP3 --off
/usr/bin/xrandr --output DP3 --auto
}
case "$1" in
thaw|resume) resume_lapscreen ;;
*) exit 0 ;;
esac