[ltp] tp_smapi and hdaps compatibility

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


Leon Brokken wrote:
> 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.
I can confirm that setting cd_speed works flawlessly, even when the cd 
is mounted and files are read.
>
> Cheers, Leon.
>
>

-- 
Leon J.S. Brokken
Dept. of Laboratory Medicine, Tumor Biology, Lund University
UMAS, Wallenberg Laboratory, Entrance 46, 20502 Malmö, Sweden
Tel. +46(0)40336851, +46(0)739531450 (gsm), Fax +46(0)40337043
--
GnuPG: 0x4433824A | 42C2 193C 89BA C75F D068 6254 F39F 9080 4433 824A
--