[ltp] tp_smapi and hdaps compatibility

Leon Brokken linux-thinkpad@linux-thinkpad.org
Wed, 21 Dec 2005 16:18:19 +0100


Shem Multinymous wrote:
> Hi,
>
> A new version of tp_smapi is available, making a first stab at
> compatibility with the hdaps driver. Use
> # make load HDAPS=1
> or
> # make install HDAPS=1
> to activate the automagical patching and loading/installation. You
> need a kernel source tree (it will not be modified). Tested with
> kernels 2.6.14.3 and 2.6.15-rc{5,6}.

Works on T41 with kernel 2.6.14.4:

Recent dmesg output:
tp_base: loaded.
tp_smapi: tp_smapi 0.13 loading...
tp_smapi: successfully loaded (smapi_port=0xb2).
hdaps: IBM ThinkPad T41 detected.
hdaps: initial latch check good (0x02).
hdaps: device successfully initialized.
hdaps: driver successfully loaded.

Force_discharge*, inhibit_charge_minutes, start_charge_thresh, 
stop_charge_thresh don't seem to be implemented on this model.

bash-3.00# cat /sys/devices/platform/smapi/BAT0/*
1ZA5R51EGXJ
LION
0 mA
0 mA
19
47520 mWh
10800 mV
c0 c0 00 80 da 0b 5c 30 00 00 00 00 61 00 6c 11
c0 c0 0b 12 ff ff ff ff ff ff e0 00 13 00 6c 00
c0 c0 90 12 30 2a 31 00 2e 32 b7 55 13 00 6c 00
c0 c0 53 41 4e 59 4f 00 00 00 00 00 00 00 00 00
c0 c0 49 42 4d 2d 30 38 4b 38 31 39 33 00 00 00
c0 c0 4c 49 4f 4e 00 17 34 16 00 00 00 00 00 00
c0 c0 31 5a 41 35 52 35 31 45 47 58 4a 00 00 00
c0 c0 c9 32 41 35 52 35 31 45 47 58 4a 00 00 00
cat: /sys/devices/platform/smapi/BAT0/force_discharge1: Function not 
implemented
cat: /sys/devices/platform/smapi/BAT0/force_discharge2: Input/output error
cat: /sys/devices/platform/smapi/BAT0/inhibit_charge_minutes: Function 
not implemented
1
46190 mWh
SANYO
IBM-08K8193
0 mW
0 mW
44600 mWh
21943
cat: /sys/devices/platform/smapi/BAT0/start_charge_thresh: Function not 
implemented
idle
cat: /sys/devices/platform/smapi/BAT0/stop_charge_thresh: Function not 
implemented
12380 mV
bash-3.00#


Cheers, Leon.