Skip to content

Instantly share code, notes, and snippets.

@Ian-FR
Last active December 5, 2022 23:26
Show Gist options
  • Save Ian-FR/6286262e897d2728d433127c03b89223 to your computer and use it in GitHub Desktop.
Save Ian-FR/6286262e897d2728d433127c03b89223 to your computer and use it in GitHub Desktop.
keychron K2 V2 linux

How to enable Keychron K2 keyboard functionalities under Linux

Below are the steps to enable Keychron K2 keyboard functions (fn f1-f12 and multimedia keys) on linux (Manjaro Arch linux in my case)

Step 1

Open terminal and run command below to create the keychron service file:

sudo nano /etc/systemd/system/keychron.service

Step 2

Paste the following into the file:

[Unit]
Description=The command to make the Keychron K2 work

[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 0 > /sys/module/hid_apple/parameters/fnmode"

[Install]
WantedBy=multi-user.target

Press ctrl+s and then ctrl+x to save and exit

Step 3

On terminal, run this commands:

systemctl enable keychron && systemctl start keychron

Use the keyboard on Windows mode. That`s it! On reboot this command always will be executed

[Unit]
Description=The command to make the Keychron K2 work
[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 0 > /sys/module/hid_apple/parameters/fnmode"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment