xscreensaver and unwanted switching of virtual consoles

David Mandelberg mandelbergd at eth0.is-a-geek.org
Wed Dec 22 20:03:20 UTC 2004


Daniel Stone wrote:
> On Sun, 2004-12-19 at 19:35 -0500, David Mandelberg wrote:
> 
>>Whenever I lock the screen and close my laptop screen or push the button that
>>senses the state of the screen, it switches to tty12 (I found out the tty number
>>by running ``for i in `seq 8 12`; do echo $i | sudo dd of=/dev/tty$i; done'').
>>
>>When I switch back to tty7 (Ctrl+Alt+F7), the screensaver is blank instead of
>>the one I selected.
>>
>>The problem is either in /etc/acpi/lid.sh or /proc/acpi/button/lid/LID/state.
>>/etc/acpi/lid.sh is called every time the screen is opened or closed and does
>>grep -q closed /proc/acpi/button/lid/LID/state to test the state of the lid
>>(opened or closed). The problem is that /proc/.../state shows the state as
>>closed when it's opened and when it's closed, so /etc/acpi/lid.sh always does
>>the closed action (blank the screensaver and change to tty12).
>>
>>Does anyone know how to get it to accurately tell if the lid is open or closed?
> 
> 
> The right way is to grep /proc/acpi/button/lid/*/state; it sounds like
> your laptop's ACPI support is broken.  Please file a bug with the name
> and model of your laptop, output of dmesg, and output of lspci.
I'll try a hoary kernel before filing a bug, but if it doesn't work in the hoary
kernel, what should I file the bug for, acpid or linux-image-`uname -r`?

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/CM$/CS>$/CC/IT$/M/S/O/U dpu s+:++ !a C++$>C+++$
UB+++>++++$L++++$*-- P+>++$ L+++(++++)$ E-(---) W+++>$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)>$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e->++++ h* r? z*
------END GEEK CODE BLOCK------

David Mandelberg
mandelbergd at eth0.is-a-geek.org




More information about the ubuntu-users mailing list