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

Richard Hughes hughsient at gmail.com
Mon Jun 4 05:32:34 PDT 2007


On Mon, 2007-06-04 at 15:14 +0300, Daniel Stone wrote:
> On Mon, Jun 04, 2007 at 12:56:34PM +0100, ext Richard Hughes wrote:
> > On Mon, 2007-06-04 at 13:20 +0300, Daniel Stone wrote:
> > > On Mon, Jun 04, 2007 at 11:16:07AM +0100, ext Richard Hughes wrote:
> > > > On Mon, 2007-06-04 at 13:11 +0300, Daniel Stone wrote:
> > > > > Should these not be under input?
> > > > 
> > > > The key prefix or the capability? Thanks.
> > 
> > How about the following patches?
> 
> > --- a/hald/linux/addons/.gitignore
> > +++ b/hald/linux/addons/.gitignore
> > --- a/hald/linux/probing/.gitignore
> > +++ b/hald/linux/probing/.gitignore
> > --- a/hald/run-hald.sh
> > +++ b/hald/run-hald.sh
> 
> Separate patches?

Ahh, ignore these, these are just chaff from my local tree. When I
merge, I do a git diff and then import each bit into master carefully.

> > +static char *
> > +find_atkbd_sysfs (void)
> > +{
> > +}
> 
> 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.

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

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

Richard.




More information about the hal mailing list