[ACPI-sppt] Graceful shutdown with ACPI
Eli Billauer <[email protected]> Fri, 28 Nov 2003 02:47:35 +0200
| Newsgroups | gmane.linux.acpi.support |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm using the ACPI version that comes with 2.4.22 (20030813, I suppose), and it seems like it's working just fine on my Compaq Presario 2121EA! Now I want to be sure that the computer shuts down gracefully when the battery is going to die out soon. Could anyone comment on how to do this (or if I need to do nothing)? In particular: (1) What happens if ACPI is in the kernel, but no daemon is activated to detect low battery? Will someone shut it off eventually, this way or another, or will the voltage slowly go down until the computer gets ill? (2) Is there a trustful event (as in /proc/acpi/events) to tell me that the battery is low? If so, is it the kernel code that triggers it off, or is it something related to the computer (BIOS/hardware)? Does anyone have an example for the acpid config file? (3) My /proc/acpi/battery/BAT1/info goes: present: yes design capacity: 4400 mAh last full capacity: 4128 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 300 mAh design capacity low: 200 mAh capacity granularity 1: 32 mAh capacity granularity 2: 32 mAh model number: 01KT serial number: 7 battery type: LION OEM info: SMP So I presume that the computer should be shut down an 300mAh, if I want to be a good boy. Now, I wonder: Who says this 300 mAh? Is it the hardware in some way? (4) Last but not least, suppose that my kernel hangs for some reason. Could the computer be damaged as a result of an overheat or operation at low battery? Despite my attempts to find some info on the web, I haven't found a guide that tells me, in concrete terms, what makes the ACPI thing tick. Any tips? (I've been at the regular HOWTO's and the links they offer). Thanks in advance, Eli -- Web: http://www.billauer.co.il ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/