I have a Matias wireless mac keyboard (US layout) and while in Mac the fn keys work fine, for example,
Fn + F12 works as volume up, however I have switched to linux on my desktop and in Debian (stretch 9.8) this is not the case and registers the key as F12.
What I Tried
xevto get the keycode and it doesn't change when the fn key is changed or not. F12 will give keycode 96 even if the Fn key is pressed
Changing the keyboard layout. I have changed the keyboard layout in the settings in
Gnome Settings > Region & Language > Input Sourcesto various English setting including those with mackintosh in the name.
echo 2 > /sys/module/hid_apple/parameters/fnmodeI have tried to change the settings as stated in the Arch wiki (https://wiki.archlinux.org/index.php/Apple_Keyboard) and an ls of
/sys/modulelooking for folders with hid gives
hid hid_apple hid_generic hidp usbhidHowever this command does not fix the problem and came up with file not found until I plugged in a real apple keyboard which the function keys work correctly, eg. F12 will give key code 96 but when Fn is pressed it will give 123.
Also, if this issue requires switching to Arch, I would be willing to do so as I use the function keys a lot and usually have ctrl and some function keys mapped to macros.