Forked from threeiem/keychron-k2-function-keys-fedora33.md
Created
August 7, 2022 05:07
Revisions
-
threeiem revised this gist
Feb 18, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Keychron K2 or C1 Funtion and Multimedia Keys (Fedora) ## Keyboard Mode Switch -
threeiem revised this gist
Mar 27, 2021 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,14 @@ Mode `2` is normally function keys that switch to multimedia keys by holdings th ## 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. ``` -
threeiem revised this gist
Mar 27, 2021 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,13 +14,17 @@ 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 To set the fnmode in the early user space the initramfs needs to be regenerated. -
threeiem revised this gist
Mar 27, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Keychron K2 Funtion and Multimedia Keys (Fedora) ## Keyboard Mode Switch -
threeiem created this gist
Mar 27, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Keychron K2 (ver. 2) Funtion and Multimedia Keys (Fedora 33) ## 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. ## Set hid_apple fnmode ``` echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode ``` ## Add Kernel Module Option for hid_apple To set the fnmode in the early user space the initramfs needs to be regenerated. ``` dracut --regenerate-all --force ``` This requires a reboot.