[ltp] tp_smapi 0.09 (dual battery, extended status support)

Volker Gropp linux-thinkpad@linux-thinkpad.org
Tue, 13 Dec 2005 01:28:13 +0100


* On Tue, Dec 13, 2005 at 01:33:47 +0200, Shem Multinymous wrote:

> Hi,
> 
> A new version of ThinkPad SMAPI support for Linux:
> 
> https://sourceforge.net/project/showfiles.php?group_id=1212&package_id=171579

first of all nice work, you rock. My status report on X40 for the new
functions:

> Questions
> ---------
> I'm not sure about all of the extended status files. In particular:
> * Is cycle_count correct?
yes it is, according to windows

> * What's the difference between current1 and current1?
no idea, but current1 looks like present rate to me, and current2 like
some average over last minute?

> * Are design_capacity and last_full_capacity reversed?
yes, design_capacity is last_full_capacity and vice versa

> * Where are the activity (charging etc.) bits?
hmm, i only noticed yet discharging is 40 d0 in first lines of
dump, c0 c0 is "charged". 

One thing i noticed, stop threshold isnt supported on x40 as i already
supported, but trying to set it, results in:

echo 90 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh

tp_smapi: battery 0: changed start threshold to 88
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)
tp_smapi: cannot get stop thresh of battery 0: Function is not supported by SMAPI BIOS

So even when stop failes, the values minus 2 will be set as start
threshold.

Volker Gropp