How can I reverse the 'fn' key on an Apple Keyboard so that F1, F2, F3... are used as default? [duplicate]

To be more clear, right now the volume and brightness keys are used and I have to hold Fn in order to execute an F1, F2, F3, F4, F5... command. Can I reverse this so it's function key by default and holding Fn enables the volume and other special controls?


This is described on the Ubuntu Community Wiki:

https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior

You can try:

sudo bash -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"

If it works you can change this permanently (per the linked wiki page):

echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all
sudo reboot # optional

please try this when editing directly fnmode fails.

echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode