Comment 38 for bug 41994

Revision history for this message
szaby007 (szabymail) wrote :

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
. /usr/share/acpi-support/policy-funcs
. /etc/default/acpi-support

export XAUTHORITY=`ls -1 /home/*/.Xauthority`
export DISPLAY=:0
grep -q closed /proc/acpi/button/lid/*/state
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!