This light-locker remove "fix" does not work on my Thinkpad T61:
after lid open the screen is still black. I have to reset the X11 display with "xrandr --auto"
My (nasty) workaround is:
Create /etc/acpi/events/lidopen :
event=button/lid LID open
action=/etc/acpi/lidopen.sh
Create /etc/acpi/lidopen.sh :
su -l -c 'DISPLAY=:0 /usr/local/bin/xreset' $(ps aux | awk '/[\/]xinit/{print $1}')
This light-locker remove "fix" does not work on my Thinkpad T61:
after lid open the screen is still black. I have to reset the X11 display with "xrandr --auto"
My (nasty) workaround is:
Create /etc/acpi/ events/ lidopen :
event=button/lid LID open /etc/acpi/ lidopen. sh
action=
Create /etc/acpi/ lidopen. sh :
su -l -c 'DISPLAY=:0 /usr/local/ bin/xreset' $(ps aux | awk '/[\/]xinit/{print $1}')
Create /usr/local/ bin/xreset :
xrandr --auto settings
killall xfce4-display-
In Ubuntu 12.04 there was /etc/acpi/lid.sh, see:
https:/ /help.ubuntu. com/community/ LaptopLidAndDoc kScripts
but this script has gone, some *CENSORED* have removed it. events/ lidopen and lidopen. sh
Therefore one has to create /etc/acpi/
/etc/acpi/