Skip to content

Commit

Permalink
Merge pull request #6 from auu/patch-1
Browse files Browse the repository at this point in the history
Update k2.md
  • Loading branch information
kurgol authored Mar 5, 2020
2 parents 404f4d0 + eabdff9 commit 204cafe
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions k2.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
# Keychron K2

## Table of Contents
## Table of Contents

1. [udev](#udev)
2. [Numlock](#numlock)
3. [Insert](#insert)
4. [Battery](#battery)
5. [Sleep](#sleep)
6. [Caps Lock and Num Lock](#caps-lock-and-num-lock)
7. [F Keys on Ubuntu](#f-keys-on-ubuntu)
8. [Keymap](#keymap)
1. [udev](#udev)
2. [Numlock](#numlock)
3. [Insert](#insert)
4. [Battery](#battery)
5. [Sleep](#sleep)
6. [Caps Lock and Num Lock](#caps-lock-and-num-lock)
7. [F Keys on Ubuntu](#f-keys-on-ubuntu)
8. [Keymap](#keymap)
9. [Firmware](#firmware)
10. [Fast reconnect bluetooth](#fast-reconnect-bluetooth)
11. [GitLab](#gitlab)

## udev
## udev
This udev rule is credited to [Emilio Coppa](https://www.facebook.com/ercoppa) from the [Facebook: Keychron User Group](https://www.facebook.com/profile.php?id=534114427066453&ref=br_rs) and was provided as [GitHub Gist: ercoppa/80-keychron.rules](https://gist.github.com/ercoppa/87a42a5d1fd65539844d7badc276d8e7).

1. Create udev rule `sudo touch /etc/udev/rules.d/80-keychron.rules`
2. Add the udev rule `SUBSYSTEMS=="input", ATTRS{name}=="Keychron K2", RUN+="echo 0 | tee /sys/module/hid_apple/parameters/fnmode"` to `/etc/udev/rules.d/80-keychron.rules`
3. `sudo udevadm control --reload-rules && sudo udevadm trigger`

An alternative solution was offered by [Thạch Nguyễn](https://www.facebook.com/Cobblestone8x).
An alternative solution was offered by [Thạch Nguyễn](https://www.facebook.com/Cobblestone8x).

1. Set fkeyfirst by:
- create the conf file `sudo touch /etc/modprobe.d/hid_apple.conf`.
1. Set fkeyfirst by:
- create the conf file `sudo touch /etc/modprobe.d/hid_apple.conf`.
- add this line to the file: `options hid_apple fnmode=2` and save
- `sudo update-initramfs -u`
- `sudo update-initramfs -u`
- `reboot`
2. Use the keyboard in Windows/Android mode


## Numlock
If you get stuck in Numlock mode, double tap F6 to disable it.
Alternative way is to open `onboard` and disable "NmLk" in there.

## Insert
By default there is no `Insert` key natively on the Keychron K2. But [since firmware v1.6](https://www.keychron.com/pages/firmware-v2-3-for-k2-keyboards), `fn`+ DEL will be interpreted as `Insert`. Also it is possible to switch to permanent `Insert` by pressing `fn` + `I` + `D` for 6 seconds.
By default there is no `Insert` key natively on the Keychron K2. But [since firmware v1.6](https://www.keychron.com/pages/firmware-v2-3-for-k2-keyboards), `fn`+ DEL will be interpreted as `Insert`. Also it is possible to switch to permanent `Insert` by pressing `fn` + `I` + `D` (for 6 seconds).

## Battery
The battery can report it's state via upower. If your distribution supports this you will be able to get a battery indicator on your desktop.
The battery can report it's state via upower. If your distribution supports this you will be able to get a battery indicator on your desktop.

To check the keyboard is recognized type:
```
Expand All @@ -49,28 +51,32 @@ You can get some GUI front-end to reflect the battery status, and different dist
## Sleep
The keyboard goes to Auto Sleep Mode in 10 mins of sitting idle to save battery.

Press fn+S+O (for 3 seconds) to disable the Auto Sleep Mode.(If you want to go back to the Auto Sleep Mode, press fn+S+O (for 3 seconds) again.)
Press `fn` + `S` + `O` (for 3 seconds) to disable the Auto Sleep Mode. If you want to go back to the Auto Sleep Mode, press `fn` + `S` + `O` (for 3 seconds) again. (Wait for the visual light confirmation.)

## Caps Lock and Num Lock
The Caps Lock key does not have an dedicated hardware indicator, but [since firmware v1.37](https://www.keychron.com/pages/firmware-v2-3-for-k2-keyboards) you can press `Fn` + `caps lock`+ `p` for 3 seconds and the caps lock key will no longer follow the backlight mode. Instead it will be used to indicate the status of capital/ small letters.
The Caps Lock key does not have an dedicated hardware indicator, but [since firmware v1.37](https://www.keychron.com/pages/firmware-v2-3-for-k2-keyboards) you can press `fn` + `Caps Lock`+ `P` for 6 seconds and the Caps Lock key will no longer follow the backlight mode. Instead it will be used to indicate the status of capital/ small letters (with red LED).

There is also a [Gnome Extension: Lock Keys](https://extensions.gnome.org/extension/36/lock-keys/) that will show a Caps Lock and Num Lock indicator on the panel.
There is also a [Gnome Extension: Lock Keys](https://extensions.gnome.org/extension/36/lock-keys/) that will show a Caps Lock and Num Lock indicator on the panel.

## F Keys on Ubuntu

There is a [discussion on Stackexchange](https://unix.stackexchange.com/questions/121395/on-an-apple-keyboard-under-linux-how-do-i-make-the-function-keys-work-without-t?fbclid=IwAR0cJUOhd6rRn3MG5lGK_3CGE73iy0nCFXqWrjjmtMVCeYjXLQdl7CzOn-E) regarding making the F Keys work.
There is a [discussion on Stackexchange](https://unix.stackexchange.com/questions/121395/on-an-apple-keyboard-under-linux-how-do-i-make-the-function-keys-work-without-t?fbclid=IwAR0cJUOhd6rRn3MG5lGK_3CGE73iy0nCFXqWrjjmtMVCeYjXLQdl7CzOn-E) regarding making the F Keys work.

[Claus Zotter](https://www.facebook.com/claus.zotter) noticed the `F1``F12` keys always act as though `function` key is pressed.
[Claus Zotter](https://www.facebook.com/claus.zotter) noticed the `F1``F12` keys always act as though `function` key is pressed.

Edit `etc/modprobe.d/hid_apple.conf` and add the line `options hid_apple fnmode=2` followed by:
Edit (create if it doesn't exist, it doesn't on 16.04) `etc/modprobe.d/hid_apple.conf` and add the line `options hid_apple fnmode=2` followed by:

```
$ sudo update-initramfs -u && reboot
```

> fnmode = 0 disable `fn` key
> fnmode = 1 function keys are used as last key
> fnmode = 2 function keys are used as first key
Reference:
* [Claus Zotter Gist](https://gist.github.com/mid9commander/669273)
* [Andrii Shkodyn Gist](https://gist.github.com/j2ko/00254950a24498df5902ddc9fceb5ee0) who also notied he does not get a bind action on Ubuntu 16.04 but that it was working as expected on 18.04.
* [Andrii Shkodyn Gist](https://gist.github.com/j2ko/00254950a24498df5902ddc9fceb5ee0) who also noticed he does not get a bind action on Ubuntu 16.04 but that it was working as expected on 18.04. (Seems of no issue with 1.6 in 16.04)

## Keymap
If your Keymap appears to be incorrect make sure that `/sys/module/hid_apple/parameters/fnmode` is set to `0` and not `1`.
Expand Down

0 comments on commit 204cafe

Please sign in to comment.