Apple Keyboard

Configuration

You can set up the keyboard layout with this command:

$ sudo dpkg-reconfigure keyboard-configuration

This will change the config file /etc/default/keyboard into something like this:

XKBMODEL="apple_laptop"
XKBLAYOUT="us"
XKBVARIANT="mac"
XKBOPTIONS="terminate:ctrl_alt_bksp"

… or another example:

XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT="mac"
XKBOPTIONS="lv3:rwin_switch"

Default behaviour

Function key behaviour

The hid_apple module has a parameter called 'fnmode' to change the behaviour of the 'fn'-key

There's three settings for fnmode:

There's several ways to set this parameter:

Swapped keys on international keyboards

The hid_apple module also has a parameter called 'iso_layout'

There's several ways to set this parameter:

See also

See also AppleKeyboard on Ubuntu's wiki.