Extra keyboard buttons

David Zeuthen david at fubar.dk
Tue May 1 18:51:05 PDT 2007


On Sun, 2007-04-29 at 00:36 +0100, Richard Hughes wrote:
> On Mon, 2007-04-23 at 22:14 +0100, Bastien Nocera wrote:
> > In keymaps...
> > 
> > Richard's fix is for keys that don't generate kernel keycodes
> > properly, only scancodes.
> > 
> > > I'm fine with having all this in hal-info but _only_ if it's the
> > right place to store this kind of data.
> > 
> > Some is, as Richard pointed out, but for everything else keymaps are
> > the right way to go. 
> 
> What about something like the attached FDI file? It's pretty hacked up
> but shows the general principle I was thinking about. A simple shell
> script can process the string list, which will take a tiny amount of
> time to process. Plus it's really easy to add new models or issue
> updates to make stuff just work.
> 
> Let me know what you think.

I think it makes sense; but before committing it you should probably
check with the maintainers of Ubuntu's hotkey-setup that a) they're fine
with us using this data; b) are fine with switching to HAL for doing
this (to avoid avoid the data in two places)...

Also, I think it's fine to use hexcodes; in fact, no-one says the XML
file in hal-info needs to be the pristine source; it could in fact be
generated via a script that replaces symbolic constants with hex-codes
or something (then we'd need to carry a copy of Linux's input.h to make
this work on other OS'es).

How does this sound?

     David




More information about the hal mailing list