battery level from command line
Mike -- EMAIL IGNORED
m_d_berger_1900 at yahoo.com
Sat Mar 15 02:29:36 UTC 2008
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.
More information about the fedora-list
mailing list