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

Torsten Wolf linux-thinkpad@linux-thinkpad.org
Mon, 12 Dec 2005 12:26:32 +0100


Hi,

I just checked v0.08 with my R52 which is (according to
http://thinkwiki.org/wiki/SMAPI_support_for_Linux) fully supported.
Compilation under 2.6.15-rc5 works fine. However, on insmod I get

 tp_smapi: tp_smapi 0.08 loading.
 tp_smapi: supported laptop not found!
 tp_smapi: driver init failed (ret=-6)!

If I understand the source correctly, the module checks for the string
"ThinkPad R". dmidecode  | grep -C5 Product on this laptop yields:

                BIOS boot specification is supported

Handle 0x0001, DMI type 1, 25 bytes.
System Information
        Manufacturer: IBM
        Product Name: 1847W62
        Version: ThinkPad .   
        Serial Number: L3LP365
        UUID: 21E97C80-4829-11CB-B18D-E9B2C6B20CB0
        Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 8 bytes.
Base Board Information
        Manufacturer: IBM
        Product Name: 1847W62
        Version: Not Available
        Serial Number: 1ZAWJ57W1ZE

Handle 0x0003, DMI type 3, 17 bytes.
Chassis Information

So I disabled the dmi check and the module works just fine! Both
thresholds can be set without errors:

tp_smapi: [debug] req_in: BX=8220 CX=0 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=920 CX=78 DX=1e DI=4 SI=0 ret=0
tp_smapi: [debug] req_in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=2116 CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=211a CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=211a CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=211a CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=211a CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=2116 CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=211a CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=211a CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=2116 CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=2116 CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=2117 CX=128 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=2117 CX=128 DX=b2 DI=0 SI=0 ret=0
tp_smapi: battery 0: changed start threshold to 40
tp_smapi: [debug] req_in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=2116 CX=328 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=211a CX=100 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=211a CX=300 DX=b2 DI=0 SI=0 ret=0
tp_smapi: [debug] req_in: BX=211b CX=145 DI=0 SI=0
tp_smapi: [debug] req_out: AX=80 BX=211b CX=145 DX=b2 DI=0 SI=0 ret=0
tp_smapi: battery 0: changed stop threshold to 69+1

Thanks for your work!

Regards,
Torsten