Date: Tue, 31 Jan 2006 19:05:21 +0100
From: Richard Mittendorfer <[EMAIL PROTECTED]>
Subject: Re: [LIB] battery check

Also sprach "carval" <[EMAIL PROTECTED]> (Tue, 31 Jan 2006 07:07:09
-0800):
> Date: Tue, 31 Jan 2006 15:03:49 GMT
> From: "carval" <[EMAIL PROTECTED]>
> Subject: Re: [LIB] battery check
> 
> Sir
> 
> Im not checking for resistance, Im checking for voltage
> to see if the battery is fully charged. Most battery have a 
> plus (+) side and a minus (-), I just asked for that.

You can get this information from ACPI too. I don't know how accurate it
is / you need it.

[EMAIL PROTECTED]:~$ cat /proc/acpi/battery/MBAT/state 
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            0 mA
remaining capacity:      2280 mAh
present voltage:         11330 mV
[EMAIL PROTECTED]:~$ cat /proc/acpi/battery/MBAT/info  
present:                 yes
design capacity:         2400 mAh
last full capacity:      2280 mAh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 46 mAh
design capacity low:     0 mAh
capacity granularity 1:  24 mAh
capacity granularity 2:  24 mAh
model number:            XM2002P03   
serial number:           2600000194
battery type:            Li-ION  
OEM info:                

I can't tell about what pins are used, but if you open it you'll for
sure be able to figure it out. Else google for datasheets.

> I warning from you would be fine,
> A scolding is not

I'm quite sure it wasn't.
 
> my name is carval
> in the future dont answer by posting
> I dont need your advice

This is a public list. Don't read it if you have problems with it. This
is what mailfilters are for. Your have now qualified for mine. ;-)

BTW: Then you'll end up with no answers from a very experienced person. 

sl ritch


Reply via email to