Fixing Keychron function keys on Linux machines.
Tested on Keychron K2v2 on Xubuntu 20.04 and 22.04 on trenzalore.
To enable Function keys on Keychron K2:
- Set the keyboard to Windows mode
- Run the following command:
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
To make this change persistent, add a module option for hid_apple:
echo "options hid_apple fnmode=0" | sudo tee -a /etc/modprobe.d/hid_apple.conf
To toggle function mode, hold Fn + X + L for 4 seconds.
If this all fails, set it back to 1:
echo 1 | sudo tee /sys/module/hid_apple/parameters/fnmode