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

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Wed, 7 Dec 2005 11:48:11 +0200


Oops, I set wrong subject  line in my last posting. I hereby
send it again with the correct subject line.

Hi Shem,

I tried tp_smapi-0.07 it on my R51 1836-GEU.

Load module:
------------
tp_smapi: tp_smapi 0.07 loading.
tp_smapi: initialized, smapi_port=0xb2.
tp_smapi: driver successfully loaded.


echo 45 > /sys/devices/platform/smapi/start_charge_thresh:
----------------------------------------------------------
tp_smapi: smapi_request in: BX=211a CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=211a CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)
tp_smapi: error in get_real_thresh(0,stop): Function is not supported by SMAPI BIOS
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=80 BX=2116 CX=328 DX=b2 DI=0 SI=0 ret=0
tp_smapi: smapi_request in: BX=2117 CX=12d DI=0 SI=0
tp_smapi: smapi_request out: AX=80 BX=2117 CX=12d DX=b2 DI=0 SI=0 ret=0
tp_smapi: battery 0: changed start threshold to 45


echo 70 > /sys/devices/platform/smapi/stop_charge_thresh:
---------------------------------------------------------
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=80 BX=2116 CX=32d DX=b2 DI=0 SI=0 ret=0
tp_smapi: smapi_request in: BX=211a CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=211a CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (func=211a)
tp_smapi: error in get_real_thresh(0,stop): Function is not supported by SMAPI BIOS


echo 10 > /sys/devices/platform/smapi/inhibit_charge_minutes:
-------------------------------------------------------------
tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=80 BX=2114 CX=701 DX=b2 DI=0 SI=4b0 ret=0
tp_smapi: smapi_request in: BX=2115 CX=101 DI=0 SI=a
tp_smapi: smapi_request out: AX=80 BX=2115 CX=101 DX=b2 DI=0 SI=a ret=0
tp_smapi: battery 0: inhibited charge for 10 minutes


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

Handle 0x0001, DMI type 1, 25 bytes.
System Information
    Manufacturer: IBM
    Product Name: 1836GEU
    Version: ThinkPad R51
    Serial Number: 99CK009
    UUID: AC23CA81-46DB-11CB-8D03-F8231F609D60
    Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 8 bytes.
Base Board Information
    Manufacturer: IBM
    Product Name: 1836GEU
    Version: Not Available
    Serial Number: J1WE547M248

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

Unfortunately I cannot check if all this functionality works
in Windows for now, as I don't have it installed.

Thanks for your great work, I am happy to be able to inhibit
battery charging, which means that I don't have to take out
the battery anymore (I rarely use it but like to have it in
the laptop:)).

Regards,
George