Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @threeiem threeiem revised this gist Feb 18, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion keychron-k2-function-keys-fedora33.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Keychron K2 Funtion and Multimedia Keys (Fedora)
    # Keychron K2 or C1 Funtion and Multimedia Keys (Fedora)

    ## Keyboard Mode Switch

  2. @threeiem threeiem revised this gist Mar 27, 2021. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions keychron-k2-function-keys-fedora33.md
    Original 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.

    ```
  3. @threeiem threeiem revised this gist Mar 27, 2021. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions keychron-k2-function-keys-fedora33.md
    Original 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.

    ## Set hid_apple fnmode
    ## 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
    ```

    ## Add Kernel Module Option for hid_apple
    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.

  4. @threeiem threeiem revised this gist Mar 27, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion keychron-k2-function-keys-fedora33.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Keychron K2 (ver. 2) Funtion and Multimedia Keys (Fedora 33)
    # Keychron K2 Funtion and Multimedia Keys (Fedora)

    ## Keyboard Mode Switch

  5. @threeiem threeiem created this gist Mar 27, 2021.
    30 changes: 30 additions & 0 deletions keychron-k2-function-keys-fedora33.md
    Original 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.