Skip to contentSkip to conversation

Battery cycle count on IBM Thinkpads.

DISCUSSION Stefan Schmidt 2 participants 5 messages Nov 19, 2005 – Dec 13, 2005 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hello.

Does somebody know, how i can read the cycle counter for battery charge on IBM Thinkpads?
You can read the number with "IBM Battery MaxiMiser" under windows. I hope it could be possible to read the value the same way as other values from /proc/acpi/battery/BAT0/info were read.
Is there documentation for vendor specific things like cycle count?

regards
Stefan Schmidt

#1 lore raw
Quoted 8 lines · Stefan Schmidt

Hello.

Does somebody know, how i can read the cycle counter for battery charge on IBM Thinkpads?
You can read the number with "IBM Battery MaxiMiser" under windows. I hope it could be possible to read the value the same way as other values from /proc/acpi/battery/BAT0/info were read.
Is there documentation for vendor specific things like cycle count?

You may be able to talk to smartbattery directly (using i2c), and get that info... expect to do some programming...
Pavel

Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
#3 lore raw
In reply to a message not in the archive

Hello.

Quoted 3 lines · Pavel Machek

You may be able to talk to smartbattery directly (using i2c), and get that info... expect to do some programming...

I'm not sure if this is a smart battery. At the moment i get this infos with normal battery modul form kernel:

stefan@fairlight:~$ cat /proc/acpi/battery/BAT0/info 
present:                 yes
design capacity:         71280 mWh
last full capacity:      58540 mWh
battery technology:      rechargeable
design voltage:          10800 mV
design capacity warning: 2927 mWh
design capacity low:     200 mWh
capacity granularity 1:  1 mWh
capacity granularity 2:  1 mWh
model number:            IBM-93P5003
serial number:            1645
battery type:            LION
OEM info:                SONY

I will test the smartbattery modul later. And if that di not help too, i'll look deeper in source code.

regards
Stefan Schmidt

#5 lore raw
In reply to a message not in the archive

Hello.

Quoted 6 lines · Pavel Machek
Quoted 3 lines

Does somebody know, how i can read the cycle counter for battery charge on IBM Thinkpads?

You may be able to talk to smartbattery directly (using i2c), and get that info... expect to do some programming...

Shem Multinymous wrote the tp_smapi driver to have more support for the smapi features in Thinkpad. With version 0.09 it is possible to read the charge cycle count an more information about the battery.

http://tpctl.sourceforge.net/
http://www.thinkwiki.org/wiki/SMAPI_support_for_Linux

regards
Stefan Schmidt