
usb-us.map.gz) from
/usr/lib/kbd/keymaps/usb into your home
directory/usr/lib/kbd/keymaps/macintosh. In this file you'll
find the necessary key symbols for the next steps.gunzip -f
usb-us.map.gzusb-xx.map, where xx is the abbreviation for
your layout./usr/lib/kbd/keymaps/usbgzip -f filename,
e.g. gzip -f usb-sg.map for a Swiss German
layout./etc/sysconfig/keyboard to
contain the line
KEYTABLE="filename",
i.e. KEYTABLE="usb-sg" for the Swiss German variety.
Save the file./etc/rc.d/init.d/keytable
restart to load the new keytable.You can download the Swiss German keymap to see an example. It isn't perfect but quite useable.

|
Fig 1. |
These are the keycodes for the G3 USB keyboard in text mode. The codes are given in hexadecimal. Please tell me if you know the keycode for the key next to the left Shift key. The keycode for the equal sign on the keypad seems to be 67. Conformation highly welcome :-) |
Getting the USB keyboard working in X-Window was a bit harder. To my knowledge there isn't any USB related xmodmap in the distribution. Strangely enough if I connected an ADB keyboard to my b&w G3, it worked flawlessly (US layout though) but the USB keyboard takes much less of my already cramped (physical) desktop. Fortunately there is a program called xev, which gives you the keycodes and other events. It needs a running X-Window system and should be started from an xterm, so you can see its output.
You can download my Swiss German xmodmap to get started.
xmodmap.usb-sg into your home directory
for modification. I zipped it to prevent LF conversion so you'll
have to unzip it first: gunzip -f
xmodmap.usb-sg.gz/usr/lib/kbd/keymaps/macintosh. In this file you'll
find the necessary key symbols. They seem to differ sometimes from
the ones used in the text console keymaps though.xmodmap.usb-sg layout using Fig.
2 below, and save it as xmodmap.usb-xx, where
xx is the abbreviation for your layout./usr/X11R6/lib/X11/xinit/ as .Xmodmap
(don't forget the dot at the beginning). Next time you start, the
new layout should be in effect systemwide. If you prefer to apply
it only to your own Linux account, put the .Xmodmap
into your home directory.

|
Fig 2. |
These are the keycodes for the G3 USB keyboard in X-Window (Xpmac driver). M2 and M3 are the extra mouse buttons. The codes are given in decimal. If you have information to fill the gaps, please tell me! |