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

Uwe Walter linux-thinkpad@linux-thinkpad.org
Mon, 05 Dec 2005 22:17:32 +0100


Hi Shem!


On Mo, 2005-12-05 at 15:52 +0200, Shem Multinymous wrote:
> Attached is a new version of the SMAPI driver.
> Volker, Peter, Stefan, Csillag, Jiang, Michael, Uwe:
> Thanks for the detailed feedback! Could you verify the above on your machines?

Tried the current 0.05 on the same T42p from my last feedback.

Works like a charm (*)! :)
I'm impressed!
(Waited for exactly this feature quite some time.)


Still get the error messages about the unsupported stop threshold. Not a
big deal, since one could use inhibit_charge as a workaround if
necessary.
(However, I thought it was possible to set a stop threshold under
windows, but must verify this.)



(*) Just before I hit the send button, I noticed an interesting
behavior: My TP resets inhibit_charge after about a minute back to zero
(charging starts again, if not prevented by a start threshold):


# date; cat inhibit_charge 
Mon Dec  5 22:10:12 CET 2005
0

Dec  5 22:10:12 kernel: tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
Dec  5 22:10:12 kernel: tp_smapi: smapi_request out: AX=80 BX=2114 CX=700 DX=b2 DI=0 SI=1 ret=0


# date; echo 1 >inhibit_charge 
Mon Dec  5 22:10:20 CET 2005

Dec  5 22:10:20 kernel: tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
Dec  5 22:10:20 kernel: tp_smapi: smapi_request out: AX=80 BX=2114 CX=700 DX=b2 DI=0 SI=1 ret=0
Dec  5 22:10:20 kernel: tp_smapi: smapi_request in: BX=2115 CX=101 DI=0 SI=1
Dec  5 22:10:20 kernel: tp_smapi: smapi_request out: AX=80 BX=2115 CX=101 DX=b2 DI=0 SI=1 ret=0
Dec  5 22:10:20 kernel: tp_smapi: battery 0: set inhibit charge to 1


# date; cat inhibit_charge 
Mon Dec  5 22:10:49 CET 2005
1

Dec  5 22:10:49 kernel: tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
Dec  5 22:10:49 kernel: tp_smapi: smapi_request out: AX=80 BX=2114 CX=701 DX=b2 DI=0 SI=1 ret=0


# date; cat inhibit_charge 
Mon Dec  5 22:11:21 CET 2005
0

Dec  5 22:11:21 kernel: tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
Dec  5 22:11:21 kernel: tp_smapi: smapi_request out: AX=80 BX=2114 CX=700 DX=b2 DI=0 SI=1 ret=0

Whops, obviously, the TP desperately tries to charge the battery! ;)



Nevertheless,
congrats and many thanks. Fantastic work! :)


Greetings, UW(e)