Hello List.
I have a Compaq Presario 2121EA. I recently recompiled the 2.4.22 kernel
to make it support ACPI (a flavor of power management) and installed
acpid as well.
I do this for one single purpose: I want the laptop to shut down
gracefully when the battery goes low. I must be sure about this working
properly.
The sample file for acpid says:
event=button power.*
action=/usr/local/bin/power.sh "%e"
which is more or less a handling of the power button. While this makes
some people enthusiastic, it's by far not what I need.
What acpid does is to listen to /proc/acpi/events, and trigger off a
program according to the nature of the event and the config files.
My questions:
(1) Does a low battery generate an "event"?
(2) Does anyone know how to use ACPI to shut down a laptop gracefully?
(3) In case I'll write an application of my own, that polls
/proc/acpi/battery/(something): What behaviour can I expect from my
laptop? Will it disconnect power by itself at some stage? What's the
criterion for doing that? What should trigger off a graceful shutdown?
Thanks,
Eli
--
Web: http://www.billauer.co.il
--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]