r/HHKB • • 8d ago • Heartwarming 3 Bravo 2

DMK – Open-source custom firmware for HHKB Classic, Hybrid and Type-S (ANSI/JIS)

Post image

I'm happy to announce a new release of DMK, an MIT-licensed custom firmware for modern HHKB Professional keyboards.

DMK runs on the original controller. No hardware modifications, soldering or keyboard disassembly are required.

Supported keyboards:

  • HHKB Professional Classic (ANSI)
  • HHKB Professional Classic Type-S (ANSI/JIS)
  • HHKB Professional Hybrid (ANSI/JIS)
  • HHKB Professional Hybrid Type-S (ANSI/JIS)

Main features:

  • VIA and Vial support
  • Rapid Trigger and adjustable actuation point
  • Individual key calibration
  • Configurable matrix scan rate up to 1000 Hz over USB
  • Fixed matrix scan rate of approximately 92 Hz in battery-powered Bluetooth mode, matching the official firmware
  • Multiple layers, Mod-Tap and custom keycodes
  • Bluetooth support with four profiles
  • Configurable sleep, matrix wake and power-button actions
  • Battery level and configurable LED indicators

Hybrid power consumption

A lot of work has gone into Hybrid power management. We've managed to get power consumption close to the official firmware. Power-off consumption is now just 0.21 mA on the tested keyboard.

Sleep with matrix wake also supports a configurable scan rate from 1 to 10 Hz, allowing you to choose between faster wake-up and lower power consumption.

Why does the Hybrid require firmware patching?

Unlike the Classic, the Hybrid has two microcontrollers: an STM32L072 for keyboard operation and a Nordic nRF52832 for Bluetooth.

The official firmware update file contains firmware for both chips. DMK replaces only the STM32 firmware and communicates with the original Nordic firmware over SPI.

Since the Nordic firmware is proprietary, I don't distribute it with DMK. Hybrid users need to download the official firmware and patch it locally using the DMK binary.

I've developed a standalone offline HTML patcher to make this process simple. Everything happens locally in your browser, and there is no need to install Python. The original Bluetooth firmware remains unchanged.

Classic users can simply download the ready-to-flash HFB files.

Installation and documentation

The documentation has been updated and now covers installation, configuration, calibration, recovery and other technical details.

Please read the installation guide, use the latest VIA JSON file, and perform a full calibration after flashing.

Special thanks to u/SuperEnduro for extensive Hybrid testing, power consumption measurements and reverse engineering, and to u/guyguilty for testing the Classic.

Download: https://github.com/aroum/dmk/releases/tag/2026.11.22

Documentation: https://github.com/aroum/dmk/tree/main/keyboards/hhkb/docs/en

Source code: https://github.com/aroum/dmk/tree/main/keyboards/hhkb

Feedback, suggestions and bug reports are always welcome!

230 Upvotes

68 comments sorted by

View all comments

Show parent comment

3

u/aroum2 6d ago

Thanks for the kind words! And yes, full calibration after flashing is important, especially on the Hybrid.

As for Grave Escape, I don't want DMK to turn into another monster like QMK. I'd rather keep the core small and simple.

You can easily implement this behavior using DMK's module system. If you implement it as part of the HHKB module, feel free to open a PR. I'd be happy to review it!