Replacement for hal-setup-keymap

Kay Sievers kay.sievers at vrfy.org
Tue May 5 04:48:33 PDT 2009


On Tue, May 5, 2009 at 13:21, Martin Pitt <martin.pitt at ubuntu.com> wrote:
> I got quite the hang of adding model specific keymaps to hal-info
> these days, and I wondered what the replacement of hal-setup-keymap
> will be in the new udev/DK world?
>
> I didn't find any existing discussion about this. Is someone already
> working on this? If not, I'd be quite interested in helping out with
> this.

Sounds great.

> I expect that the most conformant way forward would be to have udev
> rules which trigger on addition of an input device, do the matching on
> system vendor/product [1], and run a setkeycodes-like callout with the
> key map as arguments. In conjunction to that, there should be an XSLT
> which transforms our current hal-info keymap FDIs into those udev
> rules. Unless nobody else is working on this, I'm happy to take this
> on.
>
> [1] this is currently a bit tricky with udev, since you cannot easily
> refer to a property like "system vendor". I'm discussing various
> possibilities with Scott James Remnant, our udev maintainer; we'll
> find a solution.

"[dmi/id]:<attribute-name>" should work to get to that information.

I think Lennart had some tool too, that may be useful, if I remember correctly.

Thanks,
Kay


More information about the devkit-devel mailing list