[patch] add keymap data to make random laptop vendor keys work

Daniel Stone daniel.stone at nokia.com
Mon Jun 4 05:53:30 PDT 2007


On Mon, Jun 04, 2007 at 01:32:34PM +0100, ext Richard Hughes wrote:
> On Mon, 2007-06-04 at 15:14 +0300, Daniel Stone wrote:
> > Uhm, this is already in input.device.
> 
> Ahh yes, stupid me. Yet another problem - the thinkpad_acpi driver is
> going to emit input events with a keycode of KEY_UNKNOWN and scancode
> encoded in MSC_SCAN. It creates an input device (event6 on my machine)
> and shovels events though this. We'll need to map these scan codes to
> keycodes, and this wont be detected with matching i8042 KBD.

Right, hence why it needs to be per-device.

> Maybe we should just match the hald-setup-keymap against "AT Translated
> Set 2 keyboard" and "ThinkPad Extra Buttons".

Just against ThinkPad Extra Buttons, no?  If you remap to something
sensible, then you can have a generic remapping for atkbd, and
everything using evdev just works anyway.

> I think this is the best way, and we can avoid poking around in sysfs
> completely.

Indeed.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20070604/90cbb151/attachment.pgp 


More information about the hal mailing list