On Fri, Jan 23, 2004 at 06:32:05PM +0000, Timothy Miles-Board wrote:
>
> Having just spent some time getting the extra buttons (e.g. Mute, Mail,
> Web..) on my Microsoft Natural Multimedia Keyboard (1.0A) working in Ion
> via xmodmap [1], I thought I'd post the fruits of my labours here in the
> hope that they may be of use to other Ion newbies like myself with
> non-standard buttons on their keyboards :)
>
> [1] http://www.xfree86.org/4.2.0/xmodmap.1.html
>
> 1. Map button KeyCodes to KeySyms using xev to discover the KeyCodes [2]
> and the file /usr/X11R6/lib/X11/XKeysymDB (Redhat 9 box) to discover the
> available KeySyms.
>
> [2] See for example http://www.tillgerken.de/item/225
>
> I defined these mappings in ~/.xmodmaprc (note that I couldnt find a
> suitable existing KeySym for Redo and Print - I could define my own if I
> wanted to use those keys):
There's an easier way to do these steps, usually. See if you can find your
keyboard in /etc/X11/xkb/symbols/inet (or perhaps one of the other files in
that directory). Then all you need to do is add the appropriate XkbModel
line to your XF86Config (rather than the default pc102).
I have a Logitech Cordless Freedom Pro, so the relevant section of
XF86Config for me looks like:
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "logicordless"
Option "XkbLayout" "us"
EndSection
For an MS Natural Keyboard, I'd try "microsoftpro" rather than
"logicordless".
Using xev you ought to find that XF86AudioPlay, etc, now all work as
expected.
Of course, if this doesn't work, there's always xmodmap :)
-Andrew.