Score:0

Keychron K2 Fn lock solve in Ubuntu 22.04

ss flag

On Linux, the Keychron K2 doesn't register any of the F1-F12 function keys as actual F keys, instead, treating them as multimedia keys by default. How to fix it?

They keyboard has 2 modes: Windows/Android and MacOS, but neither mode worked properly out of the box.

Esther avatar
es flag
Hello, and welcome to Ask Ubuntu! Things work a bit differently on this site than what you might be used to. Specifically, we only post questions that need an answer in the "Questions" section, and answers in the "Answers" section. You can answer your own question, but the answer should be amongst all the other answers. You can take the [tour] and read the [help] for more information.
Score:0
sa flag

To fix this:

  1. Set the keyboard to Windows mode via the side switch
  2. Use Fn + X + L (hold for 4 seconds) to set the function key row to "Function" mode. (usually that's all that's necessary on Windows)
  3. Run: echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode

Once complete the F1-F12 keys will work properly, and holding Fn turns them into multimedia keys. You can use the evtest utility to check how keyboard keys are registering until you get the above combination of settings configured properly.

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

You may need to rebuild your initramfs if hid_apple is included. - Ubuntu: sudo update-initramfs -u - arch: mkinitcpio -P

See also:

  • /u/fratdaddyZC's comment on Reddit for the fnmode tip
  • Kurgol's keychron repo of tips - K2 manual
Higor Nabuco avatar
ss flag
Thanks for formatting
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.