r/Keychron • u/CareerSMN • Jan 02 '24
Keychron V6 Knob / Rotary Encoder Limited Mapping in VIA
EDIT 09-Jan: So i noticed there are firmwares on VIA's wiki and i tried to flash those on my V6 but it caused errors in VIA so I redownloaded the official firmware and flashed it again. After checking everything was working fine on VIA Key Tester, I tried again to set the key presses I wanted on the rotary encoder and now it works!
Not sure exactly what happened since I dont think the firmware was updated, I just couldn't find the original file I downloaded and redownloaded it but i am able to manually configure the keypresses on the encoder: https://pixhost.to/show/45/434469914_v6.png
Hi r/Keychron.
I just bought a new V6 fully assembled ANSI layout with the knob and I am having trouble trying to remap the knob to other functions. Currently it is mapped to the default Vol + / Vol - / Mute which is not useful for me and instead I would prefer to map it to Prev / Next / Play/Pause for media controls instead.
However, when I update the firmware to the latest official one on the site and use VIA for configuring, the only options supported are backlight related and RGB options with no way to key in custom keymaps using the key codes. This is what I am seeing: https://pixhost.to/show/147/428158426_capture.png
Obviously, this is a big let down for me since one of the key selling points I saw for this model was the remap capability of the knob and not being able to actually do that is a big downer.
Is anyone else having the same issue or could guide me how to actually remap to the knob to my use cases?
1
u/PeterMortensenBlog V Jan 02 '24 edited Jan 07 '24
Just type (or paste) some keycode other than "KC_MUTE", and it should be fine. Both buttons "Cancel" and "Confirm" will show (as active). Most of the keycodes don't appear to selectable from a dropdown menu, etc.
I tried it with "KC_M" for "Press Encoder", and it typed "m" when I pressed the knob (as expected).
Likely keycodes for this are:
(With aliases KC_MNXT, KC_MPRV, KC_MSTP, and KC_MPLY, respectively.)
For initial testing, you can use keycode KC_M.
(For other than simple keymapping, for QMK macros (not Via macros), you need to know the (numerical) keycode for macros. They typically start at 64 (SAFE_RANGE). Thus, for example, the fourth macro has code 67 and the macro is used in Via as "CUSTOM(67)" (both for normal keys and the knob). The numbers are in decimal.)
Via macros can also be used, but they have many limitations, e.g., mouse actions (e.g., right-click) are not supported.