Re: Determining Button State
From: James D Strandboge <hidden>
Date: 2002-12-08 05:31:44
On Sun, 2002-12-08 at 00:19, James D Strandboge wrote:
On Sun, 2002-12-08 at 00:01, Matthew Tippett wrote:quoted
Hello, Looking at rolling out some sort of ACPI script environment for acpid. Is there any way that the ACPI system determines exposes what state the subsystem is in.
# go to X now
/usr/bin/chvt 7
# restore the keyboard
/sbin/kbdrate -r 30 -d 250 < /dev/console
else
logger -p daemon.info "ACPI lid: lid is closed"
touch $CLOSEDFILE
# go to a tty1 first
/usr/bin/chvt 1
Though its probably obvious, but all the chvt stuff is for my laptop and is assuming you are in X first-- which is an ok assumption for me. Closing the lid at a console with my script above won't work right. Jamie -- Email: jstrand1-aYIB8uWIUb2Vn7q6wjsIow@public.gmane.org GPG/PGP ID: 26384A3A Fingerprint: D9FF DF4A 2D46 A353 A289 E8F5 AA75 DCBE 2638 4A3A ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf