#Functions of the f keys on mac keyboard install#
You still need to install an appropriate kernel header package manually. While the dkms will be pulled in by dependency. The package uses DKMS to automatically recompile the module during kernel upgrades. This will install the patched hid-apple and mask out the original one. To use it, install the hid-apple-patched-git-dkms AUR package. While the original hid-apple module does not have options to further customize the keyboard, like swapping Fn and left Ctrl keys or having Alt on the left side of Super, there is a patched version adding this functionality to the module. Treating Apple keyboards like regular keyboardsĭepending on the customisations you want to accomplish, there are two solutions available and some options that are in the kernel. This will map PrintScreen/ SysRq to F13, as well as Scroll lock to F14 and Pause to F15.Īlternatively, follow the Map scancodes to keycodes article to map the F13 scancode to the PrintScreen/ SysRq keycode, where 458856 (0x0 70068) is the scancode of F13, and sysrq is the keycode of PrintScreen/ SysRq. To fix this, you can add setxkbmap -option "apple:alupckeys" to your.
This means that Alt+SysRq sequences do not work, and application actions associated with PrintScreen (such as taking screenshots in many games that work under Wine) do not work. etc/modprobe.d/hid_nf options hid_apple iso_layout=0Īpple Keyboards have an F13 key instead of a PrintScreen/ SysRq key. To make the change permanent, set the hid_apple iso_layout option to 0:
# echo "0" > /sys/module/hid_apple/parameters/iso_layout To change the behavior temporarily, overwrite /sys/module/hid_apple/parameters/iso_layout with 0: With the US layout, `/~ and are exchanged. With German layout, circumflex/degree symbol and are exchanged. have changed place with ^ and ° (or and #, or ` and ~) etc/modprobe.d/hid_nf options hid_apple swap_fn_leftctrl=1 # echo "1" > /sys/module/hid_apple/parameters/swap_fn_leftctrl This will switch the Fn and left Control keys. You then need to regenerate the initramfs. etc/modprobe.d/hid_nf options hid_apple swap_opt_cmd=1 Permanent change, taking place at next reboot: # echo "1" > /sys/module/hid_apple/parameters/swap_opt_cmd This will switch the left Alt and Cmd key as well as the right Alt/ AltGr and Cmd key. You would then need to regenerate the initramfs. To apply the change to your initial ramdisk, in your mkinitcpio configuration (usually /etc/nf), make sure you either have modconf included in the HOOKS variable or /etc/modprobe.d/hid_nf in the FILES variable. etc/modprobe.d/hid_nf options hid_apple fnmode=2 To make the change permanent, set the hid_apple fnmode option to 2: # echo 2 > /sys/module/hid_apple/parameters/fnmode To change the behavior temporarily, append 2 to /sys/module/hid_apple/parameters/fnmode.
#Functions of the f keys on mac keyboard driver#
If your F keys do not work, this is probably because the kernel driver for the keyboard has defaulted to using the media keys and requiring you to use the Fn key to get to the F keys.