For anyone owning a Kemove K61 keyboard and struggling to get the function keys working (Fn + 1 for F1 , Fn + 2 for F2 and so on) I found a solution that seems to apply not only to Apples but also to Mutter/X11. They key is the parameter
/sys/module/hid_apple/parameters/fnmode
After installing F43 Budgie this has the value of 3 but after experimenting I found out setting it to 2 got the function keys working, while moving the media keys to where they are printed on the keys. All while having the keyboard mode switch to Win (I’m not sure if this does anything in Linux)
Changing is
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
Unfortunately this settings is lost at reboot, therefor
a service
To create a service to set this at boot create /etc/systemd/system/kemove-keyboard.serivce as
[Unit]
Description=kemove-keyboard
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"
[Install]
WantedBy=multi-user.target
And enable this with
sudo systemctl enable kemove-keyboard
Where should I put this in order to help users with the same predicament.