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

Stefan Schmidt linux-thinkpad@linux-thinkpad.org
Sun, 4 Dec 2005 21:06:41 +0100


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

Hello.

On Sun, 2005-12-04 at 20:34, Peter Fr?hberger wrote:
>=20
> I had to comment out the demidecode check in tp_smapi.c, without I got:
> [43036536.770000] tp_smapi: supported laptop not found!
> [43036536.770000] tp_smapi: driver init failed (ret=3D-6)!

On T40p 2373G1G, driver loads fine.

Here are my dmesg output:

After loading 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=3D2 BX=3D3 CX=3D4 DX=3D5 DI=3D6 SI=3D7 OK=
=3Dfffb
tp_smapi: get_thresh(0,0) 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=3D2 BX=3D3 CX=3D4 DX=3D5 DI=3D6 SI=3D7 OK=
=3Dfffb
tp_smapi: get_thresh(0,1) 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=3D2 BX=3D3 CX=3D4 DX=3D5 DI=3D6 SI=3D7 OK=
=3Dfffb
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=3D2 BX=3D3 CX=3D4 DX=3D5 DI=3D6 SI=3D7 OK=
=3Dfffb
tp_smapi: get_thresh(0,0) failed

The problem seems to be the same.=20

regards
Stefan Schmidt

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

iD8DBQFDk0xQbNSsvd31FmURAhoSAJ485m0Wl92iM5XifzdhAK0EGevb+wCePFEZ
GdxE4Lvuxh5B5w7mTx9fDK4=
=v+kw
-----END PGP SIGNATURE-----

--y0Ed1hDcWxc3B7cn--