The F1-F12 function keys aren’t registered as actual F on Linux by default. Here’s how to fix it!
Keychron K2 has 2 modes: Windows/Android and MacOS, but neither mode worked properly out of the box.
To fix this:
Fn + X + L(hold for 4 seconds) to set the function key row to “Function” mode.
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
Fn keywhile using them seems to turn them into multimedia keys.
Pro Tip: You can use the
evtestutility to check how keyboard keys are registering until you get the above combination of settings configured properly.
If you want to persist this change, add the below option to hid_apple module:
echo "options hid_apple fnmode=0" | sudo tee -a /etc/modprobe.d/hid_apple.conf
Once done, you may need to rebuild your
hid_apple is included in the default modules to be loaded.
Run the following to update your initramfs:
sudo update-initramfs -u -k all