[ltp] Re: tp_smapi 0.34 and hdaps

Yves-Alexis Perez linux-thinkpad@linux-thinkpad.org
Sun, 20 Jan 2008 01:26:10 +0100


--=-wiC45XzfYvBtIzNYvZvt
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


On ven, 2008-01-11 at 13:23 -0500, Shem Multinymous wrote:
> On Jan 9, 2008 1:57 PM, Evgeni Golov <sargentd@die-welt.net> wrote:
> > > hdaps init failed at: hdaps_check_ec failed
>=20
> The failed check is a piece of code (writing to some ports and
> checking the result) that follows the reverse-engineered clean-room
> spec for HDAPS. We don't know what those values mean, so maybe it's
> not really an error to receive different values.
>=20
> Evgeni, Yves-Alexis, can you apply the attached patch to tp_smapi,
> recompile, reload, and report the dmesg output?Jan 20 01:19:49 hidalgo ke=
rnel: thinkpad_ec: thinkpad_ec 0.34 loaded.

Jan 20 01:19:49 hidalgo kernel: hdaps: LENOVO ThinkPad T61 detected,
setting orientation 1
Jan 20 01:19:49 hidalgo kernel: hdaps: initial mode latch is 0x05
Jan 20 01:19:49 hidalgo kernel: bad hdaps_check_ec reply
0x01,0x00,0x00,0x00<3>hdaps init failed at: hdaps_check_ec failed
Jan 20 01:19:49 hidalgo kernel: input: ThinkPad HDAPS joystick emulation
as /class/input/input9
Jan 20 01:19:49 hidalgo kernel: input: ThinkPad HDAPS accelerometer data
as /class/input/input10
Jan 20 01:19:49 hidalgo kernel: hdaps: driver successfully loaded.

So only the patch doesn't work.

> If you're brave, you can also to disable that check (comment out the
> line "return -EIO;" in the function hdaps_check_ec) and see if that
> helps. Make sure you back up your data first...

This kind of comment sure doesn't make people feel like they want to
test.

Anyway:

Jan 20 01:24:46 hidalgo kernel: thinkpad_ec: thinkpad_ec 0.34 loaded.
Jan 20 01:24:46 hidalgo kernel: hdaps: LENOVO ThinkPad T61 detected,
setting orientation 1
Jan 20 01:24:46 hidalgo kernel: hdaps: initial mode latch is 0x05
Jan 20 01:24:46 hidalgo kernel: bad hdaps_check_ec reply
0x01,0x00,0x00,0x00<7>hdaps: setting ec_rate=3D250, filter_order=3D2
Jan 20 01:24:46 hidalgo kernel: hdaps: fake_data_mode set to 0
Jan 20 01:24:46 hidalgo kernel: hdaps: device successfully initialized.
Jan 20 01:24:46 hidalgo kernel: input: ThinkPad HDAPS joystick emulation
as /class/input/input13
Jan 20 01:24:46 hidalgo kernel: input: ThinkPad HDAPS accelerometer data
as /class/input/input14
Jan 20 01:24:46 hidalgo kernel: hdaps: driver successfully loaded.

Seems to work, and hdaps-gl works too.

HTH,
--=20
Yves-Alexis

--=-wiC45XzfYvBtIzNYvZvt
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHkpUiTUTAIMXAW64RAjsVAJ9GgL3FnsjG4qTACb946EgZYC19zgCfcXML
ZVeYQtQd4kVv7pJ3VsbgllY=
=+z14
-----END PGP SIGNATURE-----

--=-wiC45XzfYvBtIzNYvZvt--