Re: Logitech MX5000 extra keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2009-02-07 at 02:12 +0100, Jiri Kosina wrote:
> On Fri, 6 Feb 2009, Bastien Nocera wrote:
> 
> > Some keys aren't reported at all through the input layer, but there is 
> > code in the mx5000-tools[2] to make those keys work through hiddev.
> [ ... ]
> > I was wondering what the best course of action would be to make this
> > code work out-of-the-box. Would it be better to write a HAL addon, and
> > do all this work in user-space, or would it be more useful to have
> > directly in the kernel?
> > Obviously, if the latter, I'd appreciate a bit of guidance on where I
> > should add the code.
> 
> Hi Bastien,
> 
> the HAL people are trying to put as much possible of the mappings into the 
> userspace HAL code, see [1].

Problem is that it's not just a mapping problem, as the keys don't get
out of the kernel at all. The code in hid-lg.c looks more like what's
required. Not sure whether the magic is the same to enable the extra
keys on this keyboard.

> If you prefer doing the mappings correctly already in-kernel for this 
> particular keyboard, please see Logitech-specific HID driver in 
> drivers/hid/hid-lg.c; we already handle various kinds of Logitech devices 
> there, and adding a new one is pretty straightforward (maybe the code can 
> even be shared with a different model).

I'll have to get my kernel groove back on and test this.

Cheers

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux