# How to switch FN button behaviour macbook
1- Edit or create the file /etc/modprobe.d/hid_apple.conf, e.g.:
```
$ sudo vim /etc/modprobe.d/hid_apple.conf
```
2- Add this line to the previously open file.
```
options hid_apple fnmode=2
```
3- Save the file and execute the following command to notify hid_apple module to reload it's configuration.
```
$ sudo update-initramfs -u
```
4- Reboot
## Function code
```
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)
```
---
### Sources
https://superuser.com/questions/79822/how-to-swap-the-fn-use-of-function-keys-on-an-apple-keyboard-in-linux