[ltp] tp_smapi and hdaps compatibility

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


Shem Multinymous wrote:
> On 12/21/05, Leon Brokken <leon.brokken@med.lu.se> wrote:
>   
>> Force_discharge*, inhibit_charge_minutes, start_charge_thresh,
>> stop_charge_thresh don't seem to be implemented on this model.
>>     
>
> Thanks. The Wiki contains countrary (positive) information for the
> ThinkPad T41, but I can't find the source of that information now so
> maybe it was just a copy&paste error (or maybe a different
> sub-model?). For now I've updated it to reflect your report.
>
> Can you provide the dmesg output caused by "cat force_dischrage2"?
>   

tp_smapi: req_in: BX=2104 CX=100 DI=0 SI=0
tp_smapi: req_out: AX=80 BX=2103 CX=100 DX=13 DI=0 SI=0 ret=0
tp_smapi: cannot get force_discharge2 of battery 0: bx=2103

> Yes, as explained in the README and Wiki, in recent versions cd_speed
> is disabled by default since there are safer ways to get this
> functionality.  To enable it, add this at the top of tp_smapi.c:
> #define PROVIDE_CD_SPEED
>   

Yes sorry for that, should have RTFM better... ;)  Fixed now. Haven't 
actually tested it, but the file exists now.

Cheers, Leon.