Set Fn key to always on with Apple keyboard

AppleHow toLinux

If you’re using an Apple keyboard with Linux and want to use the Function keys normally, for example F2 to rename files, it’s possible to do so with a simple modification.

Open a terminal and run this command:

sudo -s 'echo 2 > /sys/module/hid_apple/parameters/fnmode'

If you want something other than Function keys taking precedence there are other options.

The following are the accepted values:

  • 0 = disabled : Disable the ‘fn’ key. Pressing ‘fn’+’F8’ will behave like you only press ‘F8’
  • 1 = fkeyslast : Function keys are used as last key. Pressing ‘F8’ key will act as a special key. Pressing ‘fn’+’F8’ will behave like a F8.
  • 2 = fkeysfirst : Function keys are used as first key. Pressing ‘F8’ key will behave like a F8. Pressing ‘fn’+’F8’ will act as special key (play/pause)

 

References:

https://superuser.com/questions/79822/how-to-swap-the-fn-use-of-function-keys-on-an-apple-keyboard-in-linux/1141657