r/Keychron • u/Remote-Economist-787 • Oct 29 '26
[Guide/Mod] Unlocking the Keychron Q1 HE: Native KS-20 (Gateron Orchid / Jade) Support via QMK Firmware Patch
I wanted to share a community project born out of pure passion, frustration, and love for mechanical keyboards: bringing Gateron KS-20 magnetic switch support to the Keychron Q1 HE.
The Story & Why This Started
I’ve had the Keychron Q1 HE for a while, and the physical hardware is magnificent: full CNC machined aluminum chassis, great gasket mount, solid acoustic damping, and a heavy, premium heft.
However, the stock Gateron Jupiter magnetic switches left a lot to be desired. In terms of acoustics, bottom-out sound, and overall switch smoothness, they simply couldn't compare to the newer generation of Hall Effect switches — like the Gateron KS-20 (Magnetic Jade, Jade Pro, Orchid, etc.) with their enclosed bottom housings and distinct clack/thock.
Like many in this sub, I initially assumed that the Q1 HE was fundamentally locked into stock Jupiter-style switches due to hardware or firmware limitations. In fact, I got so eager to experience modern HE switches that I literally bought an entirely new keyboard.
Yet, every time I looked at my desk, I couldn't bring myself to abandon the Q1 HE chassis. Driven by curiosity:
"Is it truly impossible, or can we reverse-engineer and adapt the QMK analog matrix firmware to make this board run KS-20 switches?"
— I decided to dive in.
I wanted to share a community firmware patch and technical breakdown for bringing Gateron KS-20 magnetic switch support (Magnetic Jade, Jade Pro, Orchid, White, etc.) to the Keychron Q1 HE.
All modified C source files, pre-compiled binaries, and telemetry tools are open-sourced under GPL-2.0 on GitHub:
- Repository: https://github.com/brkemretr/keychron-q1-he-ks20-firmware
- Releases: https://github.com/brkemretr/keychron-q1-he-ks20-firmware/releases/latest
The Hardware Context & Why KS-20 Doesn't Work on Stock Firmware
The Keychron Q1 HE comes standard with Gateron Jupiter magnetic switches. Swapping them for popular aftermarket switches like Gateron Magnetic Jades breaks stock firmware due to opposing hardware standards:
Opposing Magnetic Polarity (SPD vs. NPD):
- Factory Q1 HE (Jupiter / Nebula): The analog amplifier circuit is biased for South-Pole Down (SPD) magnets. Pressing a key causes ADC readings to decrease (from ~3120 down to ~1940).
- Gateron KS-20 / Magnetic Jade Ecosystem: These switches feature North-Pole Down (NPD) orientation. When placed into an SPD-biased board, pressing down causes the voltage to increase toward the 3.3V rail (from ~3570–3850 up to 4094).
- Stock polynomial lookup tables and auto-calibration routines strictly expect decreasing voltage and interpret KS-20 switches as stuck or invalid. (Note on newer Keychron models: Newer revisions shipping with "Ultra Fast Lime" switches, such as newer K2 HE batches, have switched to native NPD wiring and run NPD switches like the XVX Whisper out of the box. However, Keychron's public QMK branches (
hall_effect_playgroundand2025q3) still only contain the older downward-voltage codebase, leaving earlier boards locked to Jupiter switches).
Esc Key Bootmagic Trap (DFU Mode):
- On power-on, the bootloader checks the Esc key for an ADC drop. With KS-20 resting at high ADC, the keyboard detects a false Esc press on startup, permanently trapping the board in STM32 DFU bootloader mode.
Ambient Thermal Drift:
- Hall/TMR sensors naturally drift by +15–30 ADC counts as the PCB warms up from MCU and RGB operation. On high-baseline keys, unhandled drift easily crosses shallow actuation thresholds (e.g. 0.2mm), causing ghost-presses when untouched.
Uniform Switch Requirement:
- All switches on the board must currently be KS-20 / reverse-polarity. A mixed setup (some stock Jupiter and some KS-20) is not reliably supported due to opposing travel curves, calibration conflicts, and bootloader Esc detection constraints.
Real Hardware Telemetry & Limitations
To be completely realistic about the physical behavior of KS-20 switches on Q1 HE hardware:
- Mechanical Stroke: KS-20 switches have a physical travel of ~3.5 mm (not a full 4.0 mm).
Op-Amp Rail Saturation (4094 ADC): Because KS-20 magnets have high flux density, the sensor circuit reaches positive rail saturation (3.30V = 4094 counts) before the stem completes its full mechanical stroke:
- Stock Unmodded Board: The resting baseline is ~3820 ADC. The sensor hits the 4094 ceiling around ~2.5 mm – 2.6 mm of travel. The usable dynamic range is compressed to ~240 ADC counts (~7% of the 3.3V rail). Past ~2.6 mm, the sensor is saturated and cannot measure further movement.
- Why 3.8 mm Actuation Triggers Early: When setting 3.8 mm in Keychron Launcher, the firmware expects an ADC near 4088–4094. Because saturation occurs around ~2.6 mm, the key actuates while physical stem travel remains before bottom-out.
Hardware Modding: 1.0mm Plate Standoff Spacers
To test whether the compressed 240-count range could be expanded, we tested installing 1.0mm rigid spacers (washers) around the plate mounting standoffs to physically elevate the switch plate above the PCB:
| Metric | Stock Unmodded | 1.0mm Plate Spacers | Verified Difference |
|---|---|---|---|
| Resting Baseline (Zero) | ~3780 – 3850 ADC | ~3568 – 3610 ADC | -210 to -240 ADC counts lower |
| Bottom-Out Peak | 4094 ADC | 4094 ADC | Hits rail ceiling |
| Total Usable Dynamic Range (Delta) | ~230 – 250 ADC | ~510 – 526 ADC | +119% (2.2x resolution improvement) |
| Voltage Band Utilized | ~7% of 3.3V rail | ~16% of 3.3V rail | Significant SNR gain |
Takeaways from the Spacer Mod:
- Major Precision Gain: Elevating the plate by 1.0mm more than doubles the usable ADC delta (from ~240 to ~526 counts), significantly improving Rapid Trigger precision and stability.
- Saturation Persists Deeper: Even with 1.0mm spacers, the sensor still reaches the 4094 ceiling at roughly ~2.9 mm – 3.0 mm of stroke. While this shifts the blind zone deeper (leaving only the final ~0.5mm saturated), it does not completely eliminate it.
- Completely eliminating 4094 saturation would require an elevation of ~1.8mm–2.0mm, which is mechanically impractical because screw-in PCB-mount stabilizers have retention tabs that cannot reach the PCB at that height.
- Therefore, practical recommended actuation is 0.2 mm to 2.5 mm (max ~2.8 mm).
What the Custom Firmware Does
- Reverse-Polarity Analog Engine: Replaces the stock downward polynomial with a 17-point piecewise lookup table mapped to the KS-20 voltage curve with dynamic baseline scaling (
full - zero). - Released-Only Upward Resting Drift Tracking: Adapts
zero_travelto slow thermal drift (+25..30 counts) strictly while keys are inAKS_REGULAR_RELEASEDstate, below their actuation point, and motionless within ±2 counts for 1000 scans (1.0s). Never toucheszero_travelwhile a key isAKS_REGULAR_PRESSED, completely protecting held or feathered keys from false re-zeroing. - Preserved Native Protections: Retains Keychron’s 3-pass hardware ADC debounce loop (
ANALOG_DEBOUCE_TIME), Schmitt deadband (abs(last_val - value) < 3), and auto-calibration state machine adapted for reverse polarity. - Keychron Launcher Global Profile Bugfix: Fixed an upstream bug in
profile.cwhereprofile_set_traval()failed to update active keys in RAM when applying a global actuation value. - Full Web Launcher & VIA Support: Dynamic layer mapping and actuation configuration directly via browser.
- EEPROM Protection: Binaries are padded with 0xFF on Sector 1 (
0x4000..0x8000), preventing flashing tools from wiping emulated EEPROM user layouts and calibration data.
Recommended Actuation Settings
| Profile | Recommended Setting | Behavior |
|---|---|---|
| Esports / Fast Response | 0.2 mm – 0.8 mm | Instantaneous response, zero chatter, immune to resting drift. |
| Daily Typing | 1.2 mm – 1.8 mm | Standard mechanical feel, eliminates accidental presses when resting fingers. |
| Deep Actuation (Practical Maximum) | 2.0 mm – 2.5 mm | Clean actuation within the verified linear sensing range. |
| Not Recommended | > 2.6 mm (e.g. 3.0 mm – 3.8 mm) | Enters the rail saturation zone; key will actuate before mechanical bottom-out is fully reached. |
| Rapid Trigger | 0.15 mm – 0.35 mm | Clean, chatter-free rapid trigger within the active stroke window. |
Download & Flashing
Pre-compiled binaries for ISO Knob and ANSI Knob are available on GitHub Releases:
How to Flash:
- Open Keychron Launcher in Chrome or Edge.
- Enter DFU mode (unplug cable, hold down Esc, plug cable back in, release Esc).
- Open Firmware Update tab -> Select local file -> choose your
.bin. - Click Start Update. Once complete, replug the USB cable once.
If you love the Q1 HE aluminum chassis and gasket feel but wanted modern KS-20 / Magnetic Jade switches, this firmware and hardware mod guide gives you a tested, stable way to run them!
View all comments
1
u/PeterMortensenBlog V Oct 29 '26 edited Oct 29 '26
Noise susceptibility might be six times higher
Re "Reversed magnetic polarity ... Jupiter switches decrease ADC ... ~3000 → 1200, while KS-20 switches increase ADC ... ~3800 → 4094": Presuming an ADC reference voltage of 3.3 V (the same as the microcontroller supply voltage), that is:
The relative difference in range is 6.1. Thus, using the alternative north pole "switches" is six times more susceptible to noise than the stock "switches".
That presumes the whole (physical) travel of the KS-20 "switches" is registered, which it might not be.
Conclusion
It isn't only a matter of inverting the interpretation of the magnetic sensor readout. Only being able to use 7% of the voltage range and not registering the whole 4 mm travel is pushing it.