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

Uwe Walter linux-thinkpad@linux-thinkpad.org
Mon, 05 Dec 2005 11:25:20 +0100


Hi Shem.


On Mo, 2005-12-05 at 00:38 +0200, Shem Multinymous wrote:
> Attached is tp_smapi 0.02, which has more informative error reporting.
> Let's see what dmesg says now on your systems.

Although it does not yet work for me: This is really great work, thank
you for your effort! :)

Here's my feedback:

T42p, able to control charge thresholds under windows:


# dmidecode  | grep -C5 Product
                BIOS boot specification is supported

Handle 0x0001, DMI type 1, 25 bytes.
System Information
        Manufacturer: IBM
        Product Name: 2373W6M
        Version: ThinkPad T42p
        Serial Number: [...]
        UUID: [...]
        Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 8 bytes.
Base Board Information
        Manufacturer: IBM
        Product Name: 2373W6M
        Version: Not Available
        Serial Number: [...]

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



# insmod /usr/src/tp_smapi-0.02/tp_smapi.ko 
# cat /sys/devices/platform/smapi/start_charge_thresh 
cat: /sys/devices/platform/smapi/start_charge_thresh: Function not implemented



10:26:32 kernel: tp_smapi: initialized, smapi_port=0xb2.
10:26:32 kernel: tp_smapi: driver successfully loaded.
10:27:35 kernel: tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
10:27:35 kernel: tp_smapi: smapi_request out: AX=80 BX=2116 CX=300 DX=b2 DI=0 SI=0 ret=0
10:27:35 kernel: tp_smapi: smapi_request in: BX=211a CX=100 DI=0 SI=0
10:27:35 kernel: tp_smapi: smapi_request out: AX=8680 BX=211a CX=100 DX=b2 DI=0 SI=0 ret=-38
10:27:35 kernel: tp_smapi: SMAPI error: Function is not supported (BX=211a)
10:27:35 kernel: tp_smapi: get_thresh(0,0) failed



Greetings, UW(e)