Apple Keyboard

From ArchWiki
Revision as of 08:55, 25 December 2008 by Xilon (talk | contribs) (Add keysym mappings)
Jump to: navigation, search

Got problems with your Apple Keyboard, the aluminium version?

F1-F4 buttons doesn't work

If your problem is that the F1-F4-buttons doesn't work, do this as root:

echo 2 > /sys/module/hid/parameters/pb_fnmode

and place it in /etc/rc.local to make the setting permanent.

< and > have changed place with § and ½

If the < and > are switched with the § and ½ keys, do the following:

setxkbmap -option apple:badmap

Place that in ~/.bash_profile, or if you use KDE:

Go to the "Control Center" -> "Regional & Accessibility" -> "Keyboard Layout" and press the "Xkb Options" tab. Scroll down and check the "apple" and "Swap keycodes of..." checkboxes. Click on "Apply".

Keysym mapping

To map the appropriate functions to your "media" keys place the following in ~/.Xmodmap:

keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume

keycode 144 = XF86AudioPrev
keycode 162 = XF86AudioPlay
keycode 153 = XF86AudioNext

keycode 101 = XF86MonBrightnessDown
keycode 212 = XF86MonBrightnessUp

keycode 204 = XF86Eject

and run xmodmap ~/.Xmodmap. For more information about these mappings see Extra Keyboard Keys in Xorg.