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

Stefan Schmidt linux-thinkpad@linux-thinkpad.org
Mon, 5 Dec 2005 08:47:06 +0100


--n83H03bbH672hrlY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello.

On Mon, 2005-12-05 at 00:38, Shem Multinymous wrote:
>=20
> Peter,  Stefan, Csillag: thanks for the reports! Maybe your laptops
> (R40, T40p and G41) don't support this specific SMAPI function? Can
> you set charge threshold under Winows from IBM's Battery Maximizer?

I will try this later the day.

> Attached is tp_smapi 0.02, which has more informative error reporting.
> Let's see what dmesg says now on your systems.

Okay, dmesg outputs again.

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 (BX=3D211a)
tp_smapi: get_thresh(0,0) failed

cat /sys/devices/platform/smapi/start_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 (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 (BX=3D2116)
tp_smapi: get_thresh(0,1) failed

cat /sys/devices/platform/smapi/stop_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 (BX=3D211a)
tp_smapi: get_thresh(0,0) failed

If i cat the files, i get also a "Function not implemented"

regards
Stefan Schmidt

--n83H03bbH672hrlY
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)

iD8DBQFDk/B6bNSsvd31FmURAts0AJ9vhDzxceOCWvPsxDc46BBztu5t4wCgxOWx
s7cc1hKLxRELDPsv5LjDrBA=
=Dm05
-----END PGP SIGNATURE-----

--n83H03bbH672hrlY--