Re: Map extra keys on compaq evo

From: Dmitry Torokhov
Date: Mon Nov 01 2004 - 23:27:31 EST


On Monday 01 November 2004 12:28 pm, Pavel Machek wrote:
> Hi!
>
> > > With accurate list "hotkeys" could run with no configuration, but I am
> > > afraid maintaining accurate list of keys for each keyboard is way too
> > > much work.
> >
> > The lists need to be kept _somewhere_, so why not have a userspace
> > database with a program that loads the description into the kernel at
> > boot, possibly using DMI as a hint to what keyboard is connected?
>
> Doing dmi blacklist from userspace is going to be pretty
> painfull... Kernel already has all the infrastructure.
>
> My preference is forget about providing list of keys (it never worked
> anyway), and just fixup few notebooks we know...

What about all those "multimedia" and "Internet" keyboards out there?

Plus I don't think using DMI is a good idea. Many people use 2 keyboards
with their laptops - built-in and external and DMI mapping will sure be
wrong for external keyboard. Theoretically it should be possible to have
several completely independent keyboards (at least as far as keycodes go).

I actually would love to set up X to have 2 keyboards with 2 different
layouts, I wonder if event keyboard driver can help here... And we'd have
to adjust setkeycodes too...

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/