battery level from command line
Dennis Gilmore
dennis at ausil.us
Sat Mar 15 02:34:39 UTC 2008
On Friday 14 March 2008, Mike -- EMAIL IGNORED wrote:
> On Fri, 14 Mar 2008 21:15:00 -0500, Dennis Gilmore wrote:
>
> [...]
>
> >> > cat /proc/acpi/battery/BAT*/state
> >> >
> >> > Dennis
> >>
> >> Looks good. How do I know the full mAh? I guess I'll just wait and
> >> see.
> >>
> >> # cat /proc/acpi/battery/BAT0/state
> >> present: yes
> >> capacity state: ok
> >> charging state: charging
> >> present rate: unknown
> >> remaining capacity: 3040 mAh
> >> present voltage: 12483 mV
> >
> > cat /proc/acpi/battery/BAT*/info
> >
> > Dennis
>
> Interesting. But it still begs the question of how it
> decided that the "last full capacity" was in fact a
> full capacity.
>
> # cat /proc/acpi/battery/BAT0/info
> present: yes
> design capacity: 6000 mAh
> last full capacity: 4032 mAh
> battery technology: rechargeable
> design voltage: 14800 mV
> design capacity warning: 207 mAh
> design capacity low: 125 mAh
> capacity granularity 1: 10 mAh
> capacity granularity 2: 25 mAh
> model number: Primary
> serial number:
> battery type: LION
> OEM info: Hewlett-Packard
>
> Mike.
thats what the battery took last charge
present: yes
design capacity: 7800 mAh
last full capacity: 2945 mAh
battery technology: rechargeable
design voltage: 11100 mV
design capacity warning: 780 mAh
design capacity low: 236 mAh
capacity granularity 1: 78 mAh
capacity granularity 2: 78 mAh
model number: DELL YD6236
serial number: 1957
battery type: LION
OEM info: SMP
when new the battery lasted over 6 hours now it lasts ~ 3hrs
last full capacity will always get smaller over the life of a battery, if
only the replacement battery was not $190
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080314/121505fd/attachment-0001.sig>
More information about the fedora-list
mailing list