Re: Linux keyboard support, Logitech Access Keyboard, Multimedia keys



On Mon, 10 Jul 2006 23:12:10 +0200, Andreas Schallenberg staggered into
the Black Sun and said:
I got a [Logitech Access] wireless keyboard and found some keys not
working. The keyboard has 10 extra keys with just one mapping.

You mean all 10 extra keys produce the same keycode according to xev
and/or showkey? That's weird.

Two of the ten extra keys are "Messenger/SMS" and "Webcam". These
produce scancodes which are known to the kernel and should be "e0 11"
(M/SMS) and "e0 12" (Webcam) according to
http://www.johanneshuebner.com/ge/linux.shtml#tastatur
However, they don't work as keys! "xev" gives the following output:

Key "Webcam"
ButtonPress event, serial 31, synthetic NO, window 0x4200001,
state 0x10, button 4, same_screen YES

Key "Messenger/SMS"
ButtonPress event, serial 31, synthetic NO, window 0x4200001,
state 0x10, button 5, same_screen YES

I am not sure, but this looks like these are [being] interpreted as
mouse events! This confuses me.

Sounds like a problem with your X configuration somewhere, or possibly
the scancode->keycode map you're using isn't right. What's the
keyboard's InputDevice section of your xorg.conf look like? Reproduce
that section in a followup. Are you using XKB? Which keyboard layout
are you using?

Is there any way this [problem has anything to do with] the kernel?

Impossible to tell without more info. Is this thing's interface PS/2 or
USB? Which kernel version are you using?

The twelve F keys which have a second mapping produce scancodes which
are not known by the kernel. atkbd.c prints a warning to the kernel
log.

The device is probably too new for your kernel to grok. I still don't
understand what you mean by "second mapping" here. When you press F1,
do you get kernel messages, or do you only get them when you press
{Shift, Ctrl, CapsLock, NumLock}-F1?

What is the usual way of dealing with this situation?

Once the thing's reporting sane scancodes, use xbindkeys (or
gtk-xbindkeys) to make the extra keys do useful things. Making the
keyboard report sane scancodes may require a bit of screwing around with
loadkeys.

Who assigns the static mapping between the scancode and keycode
tables? That is, who [do I] send the scancode table [to]?

"man loadkeys showkey" to do it in console. In X, I have no idea.
There's a table somewhere, but XKB is the world's most awesome mess and
I don't have any idea where that table is.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
.


Quantcast