Thread (6 messages) 6 messages, 2 authors, 2009-02-10

Re: Logitech MX5000 extra keys

From: Bastien Nocera <hadess@hadess.net>
Date: 2009-02-09 11:32:13

On Sat, 2009-02-07 at 02:12 +0100, Jiri Kosina wrote:
On Fri, 6 Feb 2009, Bastien Nocera wrote:
quoted
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.
[ ... ]
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help