public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Should battery generate events?
@ 2004-10-04 21:25 Tim Dijkstra
       [not found] ` <Pine.LNX.4.60.0410051614420.3936@frog.athome>
       [not found] ` <20041004232557.6c342288-7SZEXzPdWeU90gtriz95AQ@public.gmane.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Tim Dijkstra @ 2004-10-04 21:25 UTC (permalink / raw)
  To: ACPI-devel

Hi,

Last week my laptop (Acer Travelmate 636Lci) run out of power resulting
in a unclean shutdown, disk corruption and me spending a few evenings to
get it to sanely work again.

I would want to avoid this happening again. Ideally I would want my
laptop to "shutdown -h now" if battery power is to low (well rather have
it go to S3 or softwaresuspend, but it seems hopeless to get that to
work :(  

>From some googl'ing I get the impression that ACPI should generate
battery events on a change of capacity or at least when it's low. My
idea was to have acpid call some script on battery events. 
The problem is that there doesn't seem to be such events on my machine. 

Should every bios generate these events?
Could it be a bug in my DSDT?
Does it have anything to do with
tdykstra@bonenpikster:/$ cat /proc/acpi/battery/BAT0/alarm
alarm:                   unsupported
?

FYI from my /proc/acpi:

tdykstra@bonenpikster:/$ cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charging
present rate:            unknown
remaining capacity:      3840 mAh
present voltage:         14800 mV
tdykstra@bonenpikster:/$ cat /proc/acpi/battery/BAT0/info
present:                 yes
design capacity:         3920 mAh
last full capacity:      3920 mAh
battery technology:      rechargeable
design voltage:          14800 mV
design capacity warning: 30 mAh
design capacity low:     20 mAh
capacity granularity 1:  10 mAh
capacity granularity 2:  3470 mAh
model number:            Bat0
serial number:
battery type:            Lion
OEM info:                Acer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-10-18 14:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 21:25 Should battery generate events? Tim Dijkstra
     [not found] ` <Pine.LNX.4.60.0410051614420.3936@frog.athome>
     [not found]   ` <20041005204929.647d25c9@commensaal.drs.p>
     [not found]     ` <20041005204929.647d25c9-7SZEXzPdWeU90gtriz95AQ@public.gmane.org>
2004-10-05 21:20       ` liste-9nAOAgdJVo4b1SvskN2V4Q
     [not found]         ` <Pine.LNX.4.60.0410052308181.5157-KnfdeQs3A3X/9pzu0YdTqQ@public.gmane.org>
2004-10-07 19:06           ` Tim Dijkstra
     [not found] ` <20041004232557.6c342288-7SZEXzPdWeU90gtriz95AQ@public.gmane.org>
2004-10-04 22:14   ` David Bronaugh
     [not found]     ` <4161CB55.9040800-Jp3n8lUXroSX6QiC4yPwbg@public.gmane.org>
2004-10-05 18:28       ` Tim Dijkstra
     [not found]         ` <20041005202844.50abc833-7SZEXzPdWeU90gtriz95AQ@public.gmane.org>
2004-10-05 20:41           ` Tim Dijkstra
2004-10-08 16:10   ` Stefan Seyfried
     [not found]     ` <20041008161046.GC10581-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2004-10-12 18:20       ` Tim Dijkstra
     [not found]         ` <20041012202010.750c98b4-7SZEXzPdWeU90gtriz95AQ@public.gmane.org>
2004-10-12 23:14           ` Stefan Seyfried
2004-10-18 14:57           ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox