Hey i had the same probleme when i closed my laptop lid and moved the mouse the screen came back so i used the code in Andrew Oakley post and workt here is my lid.sh
and the code if your not registered:
#!/bin/bash
# TODO: Change the above to /bin/sh
test -f /usr/share/acpi-support/state-funcs || exit 0
Hey i had the same probleme when i closed my laptop lid and moved the mouse the screen came back so i used the code in Andrew Oakley post and workt here is my lid.sh
and the code if your not registered:
#!/bin/bash
# TODO: Change the above to /bin/sh
test -f /usr/share/ acpi-support/ state-funcs || exit 0
. /usr/share/ acpi-support/ power-funcs acpi-support/ policy- funcs acpi-support
. /usr/share/
. /etc/default/
export XAUTHORITY=`ls -1 /home/* /.Xauthority` button/ lid/*/state
export DISPLAY=:0
grep -q closed /proc/acpi/
if [ $? = 0 ]
then
xrandr --output LVDS --off
else
xrandr --output LVDS --auto
if [ $? = 1 ]
then
xrandr --output LVDS --on
fi
fi
i hope this will help!