Skip to content

Instantly share code, notes, and snippets.

@threeiem
Last active September 1, 2022 05:17
Show Gist options
  • Save threeiem/c7d927487ddc219ea3a495bcc057d8e9 to your computer and use it in GitHub Desktop.
Save threeiem/c7d927487ddc219ea3a495bcc057d8e9 to your computer and use it in GitHub Desktop.
Keychron K2 Function and Multimedia Keys (Fedora)

Keychron K2 or C1 Funtion and Multimedia Keys (Fedora)

Keyboard Mode Switch

On the left hand side of the keyboard there are two switches. Slide the switch closest to the USB port to "Win/Android". The writing can be very difficult to read because of the small letters. The "Win/Android" position on the switch is closest to the USB port.

Keyboard Mode for Function and Multimedia Keys

Set the keyboard to "Windows" for the multimedia and function keys.

Hold [fn] + [X] + [L] for 4 seconds.

The keyboard LEDs will also blink when "Windows" is enabled.

Disable Apple Keyboard Top Row

Set the Apple keyboard top row key's mode to disabled (0).

echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode

Mode 2 is normally function keys that switch to multimedia keys by holdings the Fn key.

Add Kernel Module Option for Apple Keyboard Function Keys

Add a option to the kernel to set the mode on a boot to disabled (0).

echo "options hid_apple fnmode=0" | sudo tee -a /etc/modprobe.d/hid_apple.conf

Regenerate intramfs

To set the fnmode in the early user space the initramfs needs to be regenerated.

dracut --regenerate-all --force

This requires a reboot.

@DavidRamosSal
Copy link

It works with the Keychron C1. Thank you so much!

@ianyxtan
Copy link

Worked on Fedora 36. You're a life saver!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment