xscreensaver and unwanted switching of virtual consoles

David Mandelberg mandelbergd at eth0.is-a-geek.org
Mon Dec 20 00:35:39 UTC 2004


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?

-- 
-----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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041219/ddfbc983/attachment.sig>


More information about the ubuntu-users mailing list