With the release of the brand new Ubuntu, a new X server was introduced.
Because of this my apple aluminium keyboard has incorrectly swapped two keys.
With old ubuntu change the compatibility option in control panel was enough, but with the new version that is simply ignored.
To resolve ( temprarly ) i created a file called .Xmodmap in my home directory and pasted :
keycode 49=less greater
keycode 94=backslash bar
and the keybord magically started to work as is expected to.
To test if this works you can simply digit xmodmap -e “keycode 49=less greater” && xmodmap -e “keycode 94=backslash bar” in a terminal window but , first time you reboot, changes will be lost

![[Google]]( http://www.e-tip.net/blog/wp-content/plugins/easy-adsenser/google-light.gif)
#1 by kevin on August 10, 2009 - 1:39 am
Nice one! Thanks!
Together with these tips, it’s almost fully usable!
http://tipotheday.com/2008/04/30/slim-aluminum-apple-keyboard-with-ubuntu-hardy-heron/comment-page-1/#comment-2365
Now, how do you “undo” those changes? I have a laptop, and i have the slim usb keyboard at home, but another regular Dell keyboard at work… how do you manage 2 different layouts (setting 2 layouts in the keyboard manager does not work for me just yet)?