[ltp] [ANN] tp_smapi - a new Linux SMAPI driver

Csillag Tamás linux-thinkpad@linux-thinkpad.org
Sun, 4 Dec 2005 21:42:51 +0100


On 12/04, Peter Frühberger wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
> 
> Shem Multinymous schrieb:
> 
...
> 
> Hi, I just tested this on my R40 2722-B3G
> 
> I had to comment out the demidecode check in tp_smapi.c, without I got:
...
> root@todesstern:/sys/devices/platform/smapi# ls
> bus  driver  power  start_charge_thresh  stop_charge_thresh
> 
> root@todesstern:/sys/devices/platform/smapi# echo 40 > start_charge_thr=
esh
> root@todesstern:/sys/devices/platform/smapi#
> 
> root@todesstern:/sys/devices/platform/smapi# cat start_charge_thresh
> cat: start_charge_thresh: Input/Output Error
> 
> thx for additional help?
> 
> Peter

I am also interested in this module, but it does not work me neither.

host:/sys/devices/platform/smapi# cat start_charge_thresh 
cat: start_charge_thresh: Input/output error

tp_smapi: initialized, smapi_port=0xb2.
tp_smapi: driver successfully loaded.
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=80 BX=2116 CX=300 DX=b2 DI=0 SI=0 OK=1
tp_smapi: smapi_request in: BX=211a CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=2 BX=3 CX=4 DX=5 DI=6 SI=7 OK=fffb
tp_smapi: get_thresh(0,0) failed
tp_smapi: smapi_request in: BX=211a CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=2 BX=3 CX=4 DX=5 DI=6 SI=7 OK=fffb
tp_smapi: get_thresh(0,0) failed

This is a thinkpad G41.

Thanks.

-- 
It's mathematical: (uNsTable - NT) = usable.

cstamas