I debuged it a bit. I attach /etc/acpi/lid.sh I used and output from
/var/log/acpid. The only changes are "echo OPENED" and "echo CLOSED"
lines. I tested it using the same procedure - pushing the lid button,
waiting a few seconds and releasing the button. It's clear that

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]

lines fail to detect whether the lid is closed or opened. But when I run these 
commands manually everything is OK.
With lid button up:

[swistak 00:12 ~]$ grep -q closed /proc/acpi/button/lid/*/state
[swistak 00:12 ~]$ echo $?
1

and with lid button down:

[swistak 00:14 ~]$ grep -q closed /proc/acpi/button/lid/*/state
[swistak 00:14 ~]$ echo $?
0

Unfortunately changing if [ $? = 0 ] to if [ $? = 1 ] doesn't help
either. The screen is blanked for a moment and then turns on again. It's
not what I would expect.

Running /etc/acpi/videobtn.sh doesn't cause anything visible.
After removing acpi-support the lid doesn't react at all.

-- 
screen switches off when lid is reopened
https://bugs.launchpad.net/bugs/219916
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to