On Tue, 2003-02-25 at 15:30, MEISCH,CORY (HP-Vancouver,ex1) wrote: > Someone who is more familiar with ACPI than me, can you post some > commands to see if ACPI works correctly? On the ACPI stuff that I have > read there is acpiclt applet that has come control over ACPI but it's > not included or I can't seem to find it. I have acpid running and all > the modules, minus the Toshiba one. I have battery status and it knows > when AC is plugged in. Aside from that, I'm not sure how to test any > other ACPI functionality... > > tia, > Cory
handy ACPI client: http://grahame.ucc.asn.au/acpi.shtml install acpid package and then have a look under /etc/acpi/actions and /etc/acpi/events. With any luck you'll have some scripts there: [EMAIL PROTECTED] jack]$ cat /etc/acpi/events/power # change screen brightness and CPU speed event=ac_adapter .* action=/etc/acpi/actions/powerchange # shut down when power button is pressed event=button/power.* action=/sbin/halt [EMAIL PROTECTED] jack]$ cat /etc/acpi/actions/powerchange #!/bin/sh # # Do things, depending on the status of the ac_adapter status=`sed "s/state: *//" /proc/acpi/ac_adapter/ACAD/state` case $status in "on-line" ) echo 8 >/proc/vaio/lcd exit 0 ;; "off-line" ) echo 4 >/proc/vaio/lcd exit 0 ;; esac echo "Something bad happened!" exit 1 -- Jack Coates Monkeynoodle: A Scientific Venture...
