macintosh usb keyboard layout

Hi,

I wont to use a macintosh keyboard on a PC with OpenSuse 11.1 to allow the user to share screen, mouse and keyboard between his macbook pro and linux workstation via a kvm. I have this keyboard:
http://static.letsbuyit.com/filer/images/fr/products/original/212/70/clavier-design-touch-usb-configuration-azerty-franais-pour-mac-21270595.jpeg

All seems to work fine except for two key witch are swaped:
the “>/<” key and the “#/@” key (on the left of the keyboard).
I’ve tryed several layout selection without any success. My nearly working config is:
Section “InputDevice”
Driver “kbd”
Identifier “Keyboard[0]”
Option “Protocol” “Standard”
Option “XkbLayout” “fr”
Option “XkbModel” “macintosh”
Option “XkbOptions” “caps:capslock”
Option “XkbRules” “xfree86”
EndSection

any help apreciated!

Patrick

I do not found how to modify the keymap (all my attempts were unsuccesfull :frowning: ) but I found a work around (not sure it’s the best one).

  • identify the two keys with the xev command and get they keycodes.
  • add 2 lines in the* /etc/X11/Xmodmap* file:
keycode 94 = at numbersign
keycode 49 = less greater

and it seams to work properly for every user.