Re: Logitech iTouch Multimediakeys

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 12/20/04


Date: 20 Dec 2004 19:38:40 GMT

On Mon, 20 Dec 2004 18:46:15 +0100, Berend Veldkamp staggered into the
Black Sun and said:
> MyMommaToldMe wrote:
>> I have an HP keyboard with "multimedia keys" and not all of them were
>> recognized by X or at the console. I had to use showkey(1) and
>> setkeycodes(8) to get anything to recognize the last few. Reading the
>> man pages for those commands should get you going. Also, I believe X
>> needs to be restarted after using setkeycodes to add a new key code
>> (that xev and X will recognize) for a keyboard scan code.
> Thanks, I had already given up, but this was the answer! Now, is
> there a "best place" to put setkeycodes, rc.local? (on Fedora Core 3).
> And is there some kind of standard as to which keycode to choose?

You might as well run this at boot time. /etc/rc.d/rc.local is a
perfectly good place to put the setkeycodes commands if you're running a
Redhat-derived distro. There's really no standard that I know of for
choosing keycodes, though you will want to pick keycodes that aren't in
use by any other keys. You can use xbindkeys (or your window manager's
key-binding utility--xbindkeys is more general) to make your multimedia
keys execute any action you can think of once these keys are generating
keycodes. HTH,

-- 
   Something unpleasant is coming when men are anxious to tell the
   truth.   --Benjamin Disraeli
There is no Darkness in Eternity/But only Light too dim for us to see


Relevant Pages

  • Re: Demystify behaviour of IR-Remote Control
    ... Which LIRC module are you using to drive this remote? ... I get readings from all keys. ... showkey dumps keycodes by default. ... Which keymap are you using? ...
    (comp.os.linux.hardware)
  • Re: [PATCH] Input: document the proper usage of EV_KEY and KEY_UNKNOWN
    ... I think we should aim at the most common case - when there are no multiple ... mapping user chose and automatically reload keymap upon next reboot. ... a slightly larger set of keycodes representing user-definable keys. ... I had this exact PoV, too, until Dmitry reminded me that keycodes are ...
    (Linux-Kernel)
  • Re: Logitech iTouch Multimediakeys
    ... >>And is there some kind of standard as to which keycode to choose? ... > choosing keycodes, though you will want to pick keycodes that aren't in ... > use by any other keys. ... but I'll have a look at xbindkeys anyway, ...
    (comp.os.linux.x)
  • Re: keyboards and scancodes
    ... that those keys do not generate ... These all generate both unique scancodes, but also unique keycodes. ... writing interrupt handler for DOS or similar seems to ...
    (comp.os.linux.development.system)
  • Re: [PATCH] Input: document the proper usage of EV_KEY and KEY_UNKNOWN
    ... a slightly larger set of keycodes representing user-definable keys. ... keyboards with a significantly larger set of unlabelled keys. ... I had this exact PoV, too, until Dmitry reminded me that keycodes are ... function) in different input devices would end up mapped to KEY_PROGx by ...
    (Linux-Kernel)