Skip to content

Instantly share code, notes, and snippets.

@insdavm
Last active September 14, 2018 19:59
Show Gist options
  • Save insdavm/ef44dd40d0eaf5cc5f08b9db40c94f5e to your computer and use it in GitHub Desktop.
Save insdavm/ef44dd40d0eaf5cc5f08b9db40c94f5e to your computer and use it in GitHub Desktop.
Switch what function keys do on a MacBook Pro keyboard in Linux

Swap function key usage on MacBook

1 = special key is used first; press 'fn' to get function key (e.g., F1, F2, etc)
2 = fn key is used first; press 'fn + F2' will increase screen brightness.

Example:

echo 2 > /sys/module/hid_apple/parameters/fnmode

Make permanent (Arch example)

#!/bin/sh

echo "options hid_apple fnmode=2" > /etc/modprobe.d/hid_apple.conf
mkinitcpio -p linux          # make sure the "modconf" hook is there in /etc/mkinitcpio.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment