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

Michael Gaber linux-thinkpad@linux-thinkpad.org
Wed, 07 Dec 2005 19:29:54 +0100


This is a cryptographically signed message in MIME format.

--------------ms000307070605030706050106
Content-Type: multipart/mixed;
 boundary="------------060808050707090409050800"

This is a multi-part message in MIME format.
--------------060808050707090409050800
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hello

i tried version 0.04 today and on my R50p not one single function works :(

i attached the output of dmesg hope that helps


Stefan Schmidt wrote:
> Hello.
> 
> On Mon, 2005-12-05 at 15:52, Shem Multinymous wrote:
>> Model-specific status
>> ---------------------
>> * ThinkPad T43
>>     works:      all
>> * ThinkPad X40, T42p, G41
>>     work:       start_charge_thresh, inhbit_charge
>>     don't work: stop_charge_thresh (not supported by hardware)
>> * ThinkPad T40p, R40
>>     unknown:    inhbit_charge
>>     don't work: start_charge_thresh, stop_charge_thresh
>>
>> Volker, Peter, Stefan, Csillag, Jiang, Michael, Uwe:
>> Thanks for the detailed feedback! Could you verify the above on your machines?
> 
> New tests with version 0.04:
> 
> Load Module:
> ------------
> tp_smapi: initialized, smapi_port=0xb2.
> tp_smapi: driver successfully loaded.
> 
> 
> echo 40 > /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
> (BX=211a)
> tp_smapi: get_thresh(0,0) failed
> tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
> tp_smapi: smapi_request out: AX=8680 BX=2116 CX=100 DX=b2 DI=0 SI=0
> ret=-38
> tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
> (BX=2116)
> tp_smapi: get_thresh(0,1) failed
> 
> 
> 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=8680 BX=2116 CX=100 DX=b2 DI=0 SI=0
> ret=-38
> tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
> (BX=2116)
> tp_smapi: get_thresh(0,1) failed
> 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
> (BX=211a)
> tp_smapi: get_thresh(0,0) failed
> 
> 
> echo 1 > /sys/devices/platform/smapi/inhibit_charge:
> ----------------------------------------------------
> tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
> tp_smapi: smapi_request out: AX=8680 BX=2114 CX=100 DX=b2 DI=0 SI=0
> ret=-38
> tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
> (BX=2114)
> tp_smapi: inhibit_charge_read failed for bat=0
> 
> 
> So it seems to me, that on T40p {start,stop}_charge_tresh and
> inhibit_charge are not supported by hardware.
> 
> But i am still interessting in charge cycle count. I can read the
> counter with IBM Battery MaxiMiser on windows.
> 
> regards
> Stefan Schmidt


--------------060808050707090409050800
Content-Type: text/plain;
 name="tp_errors"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="tp_errors"

tp_smapi: initialized, smapi_port=0xb2.
tp_smapi: driver successfully loaded.
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=2116 CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (BX=2116)
tp_smapi: get_thresh(0,1) failed
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 (BX=211a)
tp_smapi: get_thresh(0,0) failed
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 (BX=211a)
tp_smapi: get_thresh(0,0) failed
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=2116 CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (BX=2116)
tp_smapi: get_thresh(0,1) failed
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=2116 CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (BX=2116)
tp_smapi: get_thresh(0,1) failed
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 (BX=211a)
tp_smapi: get_thresh(0,0) failed
tp_smapi: smapi_request in: BX=2116 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=2116 CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (BX=2116)
tp_smapi: get_thresh(0,1) failed
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 (BX=211a)
tp_smapi: get_thresh(0,0) failed
tp_smapi: smapi_request in: BX=2114 CX=100 DI=0 SI=0
tp_smapi: smapi_request out: AX=8680 BX=2114 CX=100 DX=b2 DI=0 SI=0 ret=-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS (BX=2114)
tp_smapi: inhibit_charge_read failed for bat=0<6>agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.

--------------060808050707090409050800--

--------------ms000307070605030706050106
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJ8DCC
BPQwggLcoAMCAQICAwFGqjANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290IENBMR4w
HAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmlu
ZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNTA3
MDcxMDUyMThaFw0wNjA3MDcxMDUyMThaMD4xFjAUBgNVBAMTDU1pY2hhZWwgR2FiZXIxJDAi
BgkqhkiG9w0BCQEWFU1pY2hhZWwuR2FiZXJAZ214Lm5ldDCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBANlvNCEKkhAhmwIpzXamq89nexUPZxbvGR05bN8NlABb/ZkrsUzq56ni
E4uA61Uuwz3stsXXPN5SOV+oJABDWgvgUsk4fZavEMbP7Kk5iJpZf+ZYDc+z+cYEgxLcQ/v2
I3j5r7sdT8L6KuB4mvJaQ2WLMcAzyE4J3b39IzPHjrKkTWHyNQP8UUVEJ8qIZ3oCNAYYkTar
2nKv9uCz//ne40luTpPaEi4vrV5x3F9VKLVLWp1pjceE2xC6wSRlF9ZouOhk6aefTeJ0zMCK
yiCxhk/4pDM5GfXePU7a05uP7NWtvFPPVt8ahIXoX4J4mRdxByijW1wIAqP2ghjL0IHWHlcC
AwEAAaOBvzCBvDAMBgNVHRMBAf8EAjAAMFYGCWCGSAGG+EIBDQRJFkdUbyBnZXQgeW91ciBv
d24gY2VydGlmaWNhdGUgZm9y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