[ltp] HAL and ThinkVantage
Joachim Breitner
linux-thinkpad@linux-thinkpad.org
Sun, 21 Dec 2008 23:28:24 +0100
--=-PKKtzqeNlQLmsVLsM26L
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,
Am Montag, den 15.12.2008, 23:28 +0100 schrieb Yves-Alexis Perez:
> On jeu, 2008-10-23 at 23:44 +0200, Damjan wrote:
> > Now the question is whats the correct keymap data for the ThinkVantage
> > button? It's not 0x17!
> >=20
> > The input event value for volume-up is=20
> > #define KEY_VOLUMEUP 115
> > and in HAL we have 0x14?!?
> >=20
> > For ThinkVantage
> > #define KEY_VENDOR 0x168
> > (it's hex now)
> >=20
> > what's the HAL keymap??
> >=20
> Did you manage to get a keycode for ThinkVantage key?
>=20
> I'm kind-of running into the same issue as you, so if you have new stuff
> on this it'd be nice to share them :)
I worked around this issue by using:
$ cat /etc/hal/fdi/information/40-thinkvantage-KEY_PROG1.fdi=20
<?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version=3D"0.2">
<device>
<!-- These are buttons synthesized in the thinkpad-acpi kernel module -=
->
<match key=3D"input.product" string=3D"ThinkPad Extra Buttons">
<!-- Lenovo systems have a similar but different layout to IBM system=
s -->
<match key=3D"/org/freedesktop/Hal/devices/computer:system.hardware.v=
endor" prefix=3D"LENOVO">
<append key=3D"input.keymap.data" type=3D"strlist">0x17:prog1</appe=
nd>
<append key=3D"info.capabilities" type=3D"strlist">input.keymap</ap=
pend>
</match>
</match>
</device>
</deviceinfo>
With this change, I the key is reported as XF86Launch1 to X
applications, and I could successfully bind this key in xmonad.
Of course, it=E2=80=99d be cleaner if I could bind XF86Vendor, but this doe=
s not
exist yet, it seems.
Greetings,
Joachiom
--=20
Joachim "nomeata" Breitner
mail: mail@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/
Debian Developer: nomeata@debian.org
--=-PKKtzqeNlQLmsVLsM26L
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEUEABECAAYFAklOwwgACgkQ9ijrk0dDIGw4agCfRnltzO/S1AUSKz7s+EGXkNVW
E9wAmODBZN9zxXbCNsuxjNrVr2jAhPM=
=F0gi
-----END PGP SIGNATURE-----
--=-PKKtzqeNlQLmsVLsM26L--