[ltp] Re: [ANN] tp_smapi - a new Linux SMAPI driver
Stefan Schmidt
linux-thinkpad@linux-thinkpad.org
Mon, 5 Dec 2005 16:02:15 +0100
--Cqq5NadOW2RfLMJ/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello.
On Mon, 2005-12-05 at 15:52, Shem Multinymous wrote:
>=20
> 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
>=20
> Volker, Peter, Stefan, Csillag, Jiang, Michael, Uwe:
> Thanks for the detailed feedback! Could you verify the above on your mach=
ines?
New tests with version 0.04:
Load Module:
------------
tp_smapi: initialized, smapi_port=3D0xb2.
tp_smapi: driver successfully loaded.
echo 40 > /sys/devices/platform/smapi/start_charge_thresh:
----------------------------------------------------------
tp_smapi: smapi_request in: BX=3D211a CX=3D100 DI=3D0 SI=3D0
tp_smapi: smapi_request out: AX=3D8680 BX=3D211a CX=3D100 DX=3Db2 DI=3D0 SI=
=3D0
ret=3D-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
(BX=3D211a)
tp_smapi: get_thresh(0,0) failed
tp_smapi: smapi_request in: BX=3D2116 CX=3D100 DI=3D0 SI=3D0
tp_smapi: smapi_request out: AX=3D8680 BX=3D2116 CX=3D100 DX=3Db2 DI=3D0 SI=
=3D0
ret=3D-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
(BX=3D2116)
tp_smapi: get_thresh(0,1) failed
echo 70 > /sys/devices/platform/smapi/stop_charge_thresh:
---------------------------------------------------------
tp_smapi: smapi_request in: BX=3D2116 CX=3D100 DI=3D0 SI=3D0
tp_smapi: smapi_request out: AX=3D8680 BX=3D2116 CX=3D100 DX=3Db2 DI=3D0 SI=
=3D0
ret=3D-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
(BX=3D2116)
tp_smapi: get_thresh(0,1) failed
tp_smapi: smapi_request in: BX=3D211a CX=3D100 DI=3D0 SI=3D0
tp_smapi: smapi_request out: AX=3D8680 BX=3D211a CX=3D100 DX=3Db2 DI=3D0 SI=
=3D0
ret=3D-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
(BX=3D211a)
tp_smapi: get_thresh(0,0) failed
echo 1 > /sys/devices/platform/smapi/inhibit_charge:
----------------------------------------------------
tp_smapi: smapi_request in: BX=3D2114 CX=3D100 DI=3D0 SI=3D0
tp_smapi: smapi_request out: AX=3D8680 BX=3D2114 CX=3D100 DX=3Db2 DI=3D0 SI=
=3D0
ret=3D-38
tp_smapi: SMAPI error: Function is not supported by SMAPI BIOS
(BX=3D2114)
tp_smapi: inhibit_charge_read failed for bat=3D0
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
--Cqq5NadOW2RfLMJ/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDlFZ3bNSsvd31FmURAu0GAJ4yxMoC5VslfCQiHd+hW1YEjyrXtgCgkVKz
fUaYmID6qJ1GAAF91llyPn0=
=pD/R
-----END PGP SIGNATURE-----
--Cqq5NadOW2RfLMJ/--