[How to] swap Function keys on Apple/Mac keyboards

[Background]
In its default setting, function keys on Apple keyboards are set as multimedia keys. In order to use them as function keys, it is necessary to press "fn" key at the same time.

[Problem]
It is a great inconvenience for some people who frequently uses function key.

[Solution]
Edit /etc/modules file and create a new file /etc/modprobe.d/hid_apple.conf to modify the default setting.

[Procedure]

  1. Edit /etc/modules with your favourite editor (mousepad in this tutorial)
sudo mousepad /etc/modules

Append the following line at the end:

hid_apple

  1. Create a new file hid_apple.conf
sudo mousepad /etc/modprobe.d/hid_apple.conf

copy the following into this file

options hid_apple fnmode=2

  1. Reboot and enjoy your "true" function keys :blush:
1 Like