[ltp] tp_smapi

Christopher Sawtell linux-thinkpad@linux-thinkpad.org
Sun, 02 Apr 2006 12:41:36 +1200


On Sunday 02 April 2006 12:24, Timothy Murphy wrote:
> I've installed tp_smapi on my T20
> (and modprobe-d it),
> and there is a directory /sys/devices/platform/smapi/BAT0
> (and also BAT1) full of files,
> but none of the files contain anything useful,
> except perhaps "state" which returns "none".
>
> Is this because tp_smapi does not work on my ThinkPad,
> or is it because I have failed to take some step?
>
> ------------------------------------------------------------
> [tim@elizabeth BAT0]$ sudo cat *
> cat: barcoding: No such device or address
> cat: chemistry: No such device or address
> cat: current_avg: No such device or address
> cat: current_now: No such device or address
> cat: cycle_count: No such device or address
> cat: design_capacity: No such device or address
> cat: design_voltage: No such device or address
> cat: dump: Device or resource busy
> cat: force_discharge: Function not implemented
> cat: inhibit_charge_minutes: Function not implemented
> cat: installed: Device or resource busy
> cat: last_full_capacity: No such device or address
> cat: manufacturer: No such device or address
> cat: model: No such device or address
> cat: power_avg: No such device or address
> cat: power_now: No such device or address
> cat: remaining_capacity: No such device or address
> cat: serial: No such device or address
> cat: start_charge_thresh: Function not implemented
> none
> cat: stop_charge_thresh: Function not implemented
> cat: voltage: No such device or address

Interestingly on my R40 I get:-
chris@imogen /sys/devices/platform/smapi/BAT0 $ for f in `echo *`; do 
echo -e "\n$f"; cat $f; done

barcoding
1Z6XB313043

chemistry
LION

current_avg
64484 mA

current_now
64484 mA

cycle_count
215

design_capacity
57600 mWh

design_voltage
14400 mV

dump
c0 c0 00 80 ee 0b b7 3f e4 fb e4 fb 63 00 38 0c
c0 c0 67 0c 6b 00 ff ff ff ff e0 00 d7 00 38 00
c0 c0 80 16 40 38 31 00 23 2e 93 00 d7 00 38 00
c0 c0 53 41 4e 59 4f 00 30 32 00 00 00 00 00 00
c0 c0 49 42 4d 2d 30 32 4b 37 30 35 34 00 00 00
c0 c0 4c 49 4f 4e 00 00 00 00 00 00 00 00 00 00
c0 c0 31 5a 36 58 42 33 31 33 30 34 33 00 00 00
c0 c0 81 2e 36 58 42 33 31 33 30 34 33 00 00 00

force_discharge
cat: force_discharge: Function not implemented

inhibit_charge_minutes
cat: inhibit_charge_minutes: Function not implemented

installed
1

last_full_capacity
31750 mWh

manufacturer
SANYO

model
IBM-02K7054

power_avg
-17159 mW

power_now
-17159 mW

remaining_capacity
31280 mWh

serial
147

start_charge_thresh
cat: start_charge_thresh: Function not implemented

state
idle

stop_charge_thresh
cat: stop_charge_thresh: Function not implemented

voltage
16311 mV

----------------

I suspect that the older ThinkPads don't have the necessary hardware.

Sorry about the previous empty posting.

-- 
CS