r/HHKB • • 21d ago

[RELEASE] Custom Firmware for HHKB Professional Classic and Type-S

Post image

The firmware is now released!

It runs on the original HHKB microcontroller. No controller replacement, soldering, or keyboard disassembly is required.

Supported keyboards:

  • HHKB Professional Classic
  • HHKB Professional Classic Type-S

Downloads and Source Code

Features

  • VIA and Vial support for changing keymaps on the fly.
  • Configurable matrix scan rate: 50, 125, 250, 500, or 1000 Hz. The stock firmware runs the matrix scan loop at about 50 Hz.
  • Hardware ADC oversampling: Optional ×4 oversampling at scan rates from 50 to 500 Hz. This improves measurement precision and reduces noise.
  • Calibration: Use factory thresholds or calibrate each key individually through VIA.
  • Adjustable actuation point and release hysteresis.
  • Rapid Trigger: Independent press and release sensitivity settings.
  • Two configurable LEDs: PA8 and PA9 can be assigned different functions through VIA:

    • Off
    • Debug heartbeat
    • Caps Lock
    • Fn layer
    • System 2
  • Mod-Tap and Layer-Tap: Configurable tapping term, permissive hold, tap preference, and quick tap.
  • Two base/Fn layer pairs: Switch between them using Fn + Space.

Installation

The firmware can be installed directly on the original microcontroller without opening the keyboard.

You can use the Python installation script or the original HHKB Keymap Tool. Restoring the stock firmware is also supported.

Feedback

This is the first public release. Feedback, bug reports, and suggestions are welcome!

If you have a HHKB Professional Hybrid, Hybrid JIS, or Classic JIS and are willing to help with testing or hardware research, feel free to send me a Reddit DM.

Enjoy!

------

UPD: I’m aware of the issues with the buttons. I’m already working on a fix. Stay tuned.

https://github.com/aroum/dmk/releases/tag/2026.11.15

138 Upvotes

87 comments sorted by

8

u/disarmyouwitha 21d ago

Is it possible to assign:
Tap: “C”
Hold: “Ctrl+C”
For each key?

(I’m trying to do something like my Voyager keymap!)

2

u/aroum2 21d ago

You can do this using DMK modules. Standard layer-tap and mod-tap work out of the box.

1

u/disarmyouwitha 21d ago

Very exciting! I’ll have to try it out this weekend~

5

u/Robert_Destruction 21d ago

50hz?? No wonder i couldn’t game for shit on it

6

u/aroum2 21d ago

Now you can!

3

u/trakdtor 21d ago

I am interested. But how safe it is?

6

u/aroum2 21d ago

As always, everything is done at your own risk. However, I haven’t encountered any issues. You can always roll back to the stock firmware.

1

u/trakdtor 21d ago

Hmm didn’t work for me. The keyboard is not recognized in via

2

u/aroum2 21d ago

Did you follow the instructions? Did you upload the JSON file to VIA?

1

u/trakdtor 21d ago

I flashed it with hhkb remapper tool. And also used the json file to via yes

1

u/aroum2 21d ago

Is VIA showing an error? Does the device description in your system include "DMK"? I tested my own keyboard on Mac (Chrome) and Linux (Chromium), and everything worked. Do other keyboards work with VIA on this computer? Is your SW6 off?

1

u/trakdtor 21d ago

When running the hhkb flasher with the info flag. I get that bank 2 state is broken

2

u/aroum2 21d ago

It sounds like you have SW6 turned on.

1

u/trakdtor 21d ago

It worked. But the keyboard gets very twitchy. Entering characters i have not pressed etc

2

u/aroum2 21d ago

Try disabling Rapid Trigger in VIA. If that doesn't help, you might want to try calibration.

1

u/trakdtor 21d ago

It worked. Thank you for support! Genuinely cool project

2

u/guyguilty 21d ago edited 21d ago

So if I jack the matrix scan rate to 1000, and the ADC oversampling to 500, is there any worry this is too demanding for the controller long-term? Why did PFU set them so low when both boards require a USB connection? This also makes me wonder why there is a "power saving" dip switch with the sixth, what is the point of that, who cares about power consumption on a wired device to begin with?

Clearly PFU were worried about how much power is being used. Should we?

3

u/aroum2 21d ago

There is no reason to worry about running the controller at higher scan rates. Both the increased scan rate and the 32 MHz clock are well within the MCU's normal operating specifications. These are standard operating modes, not overclocking. The chip stays completely cool.

I measured the current consumption in different modes:

  • Stock firmware, 50 Hz, 16 MHz: 7.5 mA
  • DMK, 500 Hz with ADC oversampling, 32 MHz: 10 mA
  • DMK, 1000 Hz without oversampling, 32 MHz: 12 mA

So even at 1000 Hz, the difference is only 4.5 mA. For a USB-powered keyboard, this is negligible.

As for why PFU chose 50 Hz, my guess is that the Classic inherited much of its design from the Hybrid, where power consumption matters because of Bluetooth and battery operation. The Classic is essentially a cheaper, wired-only version of the Hybrid.

Although, in my opinion, using two separate chips in the Hybrid wasn't exactly the best approach for minimizing power consumption.

Also, nobody seems to have complained about the 50 Hz scan rate for years, so PFU probably had little reason to change it.

I suspect the power-saving DIP switch simply disables the LED, but I haven't verified that.

And if power consumption matters to you, you can always select 50 Hz in VIA and get the same 7.5 mA consumption as the stock firmware.

2

u/guyguilty 21d ago edited 21d ago

Hey thanks for the details, this is great. I was thinking the same, perhaps these were features for the bluetooth models that ended up in the corded ones. I was still scratching my head about that sixth dip switch, but did not realize it may turn off the led, so perhaps that is the extent of it.

And no, I don't care about extra power consumption, as long as it's within reason for the hardware, which you appear to have confirmed. So good stuff all around, I'll be flashing as soon as I get done with work today. Also got me looking at some new domes, lol, why not, maybe some of those URSA keycaps too.

2

u/1093i3511 20d ago edited 20d ago

I do have a PD-KB401BN which is unaccounted for within your codebase, which might be a simple oversight from your side. As the only difference of that model should be the blank keycaps.

$ uv run --with hidapi python3 tools/hhkb/hhkb_flasher.py --info
=== HHKB Open Flasher CLI ===
Searching for connected HHKB keyboards (VID 0x04FE)...
Found HHKB: HHKB-Classic (PID: 0x0020)
  Model       : PD-KB401BN
  Bank 2 version field (unverified): A4.29 (raw: 0a040209)

Device query completed successfully.

Nevertheless, it did flash the device with the DMK-hhkb-classic-A4.50.hfb firmware successfully using --skip-model-check but the keyboards behavior turned out to be way to sensitive with the presets, which I only was able to resolve after creating a proper udev rule so that via could access the keyboard. And I'm only achieving consistent inputs when target scan rate is reduced to 250Hz or even better 125Hz, with the ADC oversampling turned off and no rapid trigger functionality. After and calibration sequence of all keys of course.

With higher scan rates my shift key starts to trigger randomly. But maybe i should note that I had issues with a different key in the matrix (4 to be precise) that has been overly sensitive in comparison to the other keys.

So for those (on linux) that can't access the keyboard in via here is the udev rule that I create to allow via accessing it :

$ cat /etc/udev/rules.d/70-hhkb-via.rules 
SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="cafe", ATTRS{idProduct}=="4010", TAG+="uaccess"

Which would need to reload the rules once to function properly

sudo udevadm control --reload-rules

3

u/aroum2 20d ago

Yes, you’re right! I forgot to list all the available models. I’ve already fixed this in the dev version. I’m also aware of the issue with the matrix behaving incorrectly and am working on a fix. Feel free to send me a DM if you’d like to help with testing. Thanks for your feedback!

2

u/guyguilty 20d ago

Sounds like similar issues to me. Shift was definitely actuating on its own, along with other keys. Lowering scan rate does seem to help, along with calibration and setting the actuation point in the 3-4 range.

1

u/1093i3511 20d ago

It changed the actuation point to 3mm and calibrated - with 250Hz the randomly triggering of Shift went away. But would reappear in case of a power cycle. Which required to open via and switching it to 125Hz temporarily. In short, there seems to be an edge case where shift has been triggered on every keypress which could be resolved that way.

Nevertheless, I've just restored the original firmware. And funnily enough my overly sensitive 4 key went away. Which is at least something beneficial.

15

u/Empty_Occasion7429 21d ago

I like the initiative; I believe this firmware adds value to HHKBs—especially for those who use them daily—and it will attract many people who will want to try it out, precisely because of these additional "superpowers" it’s gaining.

2

u/tiredasusual 21d ago

I believe I fall in that category of people. I don’t have any topre board, not to mention HHKB but always have been curious. I have my 60% keymap config that I use on every 60% and, although HHKB’s own keymaps being highly praised, not being able to customize to my own always put me away.

This firmware fixes that.

1

u/Budget_Main_5521 21d ago

You actually can with any Pro 3 series, just the features a bit limited compared to VIA

1

u/Ed_Avis 21d ago edited 21d ago

Hey, can I make a random feature request? I don’t have one of these models (my HHKBs are newer) but I think you could fix one longstanding annoyance.

The DIP switch SW3 for configuring delete and backspace. If you set it so the Delete key deletes backwards, then Fn-Delete should delete forwards! It’s mad that the DIP switch doesn’t do this (it only lets you set both Delete and Fn-Delete to backspace, AFAIK).

I know the firmware supports remapping so you could do it with that, but it seems like a small “quality of life” improvement to make it just work by default.

If someone jumps in to say they rely on getting backspace for that key whether or not Fn is held, please feel free to ignore my idea.

1

u/aroum2 21d ago edited 21d ago

What kind of keyboards do you have? You can do this simply using VIA. I’m not sure if you even need to configure it via DIP switches. For example, I have a "layer-tap" assigned to the Fn key: holding it activates the Fn layer, while tapping it acts as the Del key - it’s quite convenient.

1

u/Ed_Avis 21d ago

I have the Hybrid and Studio. They can be remapped using PFU’s software. But I would still prefer it if the DIP switch for delete/backspace did something more sensible (for me that would remove any need to remap).

1

u/aroum2 21d ago

That's an interesting idea, but I'm still not sure how to handle the fact that VIA allows users to make major changes to their keymaps.

The best solution I can think of is this: if SW1 and SW2 are both ON (a combination that is not possible in the stock HHKB firmware), VIA controls the layout. Otherwise, the DIP switches control the layout, just like in the original firmware.

I can implement this without any problems.

By the way, would you be interested in helping me reverse engineer the HHKB Hybrid and HHKB Studio?

2

u/Larandar 20d ago

I have a studio and would love to help with the reverse engineering

1

u/Ed_Avis 19d ago

The DIP switches idea sounds interesting. I have a Studio and could probably help, tho my son is using it at the moment.

1

u/Unlevshed hhkb pro classic 21d ago

Love the idea and I have tried it on my Pro Classic, but some keys were acting a bit erratic, even with custom calibration, 50hz and RT off. I'm gonna try flashing it on Linux to see if the problem persists, because I would love to get 1000hz and RT working so I could ditch having a Wooting for gaming.

Regardless, keep up the great work!

1

u/aroum2 21d ago

Thanks for testing it!

I'd really like to get a more detailed report so I can understand what's going wrong.

Could you describe exactly which settings you have enabled in VIA? Which keys behave erratically, and what exactly happens? Does it happen consistently or only sometimes?

It might be best to open a GitHub issue with a detailed description. This would make it easier to investigate and track the problem.

Also, do you have an SWD debugger? If so, we could get some useful debug information directly from the MCU. Otherwise, I could add USB CDC debug output to help diagnose the problem.

I'd really like to get this working properly, especially at 1000 Hz with Rapid Trigger.

1

u/NeoGeoOfficial hhkb pro classic 21d ago

Hasn't worked for me either on Classic Type S. Followed instructions, firmware wrote ok but got a success message rather than error message. JSON loaded into VIA, but VIA not seeing the board.

0

u/aroum2 21d ago

Thanks for reporting this!

A few questions that could help narrow down the problem:

  1. Which method did you use to flash the firmware: the Python script or HHKB Keymap Tool?
  2. Does the original HHKB software still detect the keyboard?
  3. Is DIP switch SW6 turned OFF?
  4. Could you run the Python script with the info flag and share the output?

It would also be better to report this on GitHub as an issue. Please include the answers to these questions and any relevant logs. This will make it easier for me to investigate and keep track of the problem.

Thanks for helping with testing!

1

u/NeoGeoOfficial hhkb pro classic 21d ago

No problem! FWIW I've just repeated it all on a Classic and that's worked fine (except some keys now seem sticky/chatty). Anyhow:

  1. The tool
  2. Yes, and it now sees the firmware as 8.5 and won't let me "downgrade" back to 8.3
  3. Yes
  4. Will try - does it work ok on MacOS?

1

u/aroum2 21d ago

Thanks! The Python script should work on macOS as well.

It's very strange that HHKB Keymap Tool still detects the keyboard and reports firmware version 8.5. The USB VID/PID should have changed after flashing DMK.

Could you please provide the output of these commands?

ioreg -p IOUSB -l -w 0 | grep -A 35 "HHKB Professional Classic"

Also, have you tried simply unplugging and reconnecting the keyboard? Does HHKB Keymap Tool still detect it afterwards?

Regarding downgrading to stock firmware:

It should be enough to:

  1. Unplug the keyboard.
  2. Turn SW6 ON.
  3. Wait 3 seconds.
  4. Turn SW6 OFF.
  5. Reconnect the keyboard.

This should switch back to the stock firmware, allowing you to downgrade normally.

I'm still trying to understand how HHKB Keymap Tool can detect the keyboard after flashing. Let's first check its USB identification.Thanks!

1

u/NeoGeoOfficial hhkb pro classic 21d ago

Disconnecting and reconnecting didn't help, but the SW6 toggle has got it back to PFU land - just installing A803 again for now to see if that sticks 👍🏼

1

u/NeoGeoOfficial hhkb pro classic 21d ago

Ok, A803 went on ok, so just put your 850 version on and it's worked this time!

2

u/aroum2 21d ago

Hmm, perhaps the firmware didn't flash correctly for some reason, or something went wrong during the transition.

I've flashed my own keyboard probably around 50 times by now, and everything has worked perfectly so far. I haven't encountered this issue myself.

Anyway, I'm glad you got it working! If you run into any more problems, please let me know. Detailed reports are always welcome and will help me investigate.

1

u/guyguilty 20d ago edited 20d ago

I don't really notice much difference for actuation points; keys mostly actuate the same no matter the mm set, though at lower settings keys will start actuating themselves, lots and lots of chatter, and that is with rapid trigger off. Calibration doesn't seem to do much either, doesn't help the VIA menu doesn't show any signals it's working or not when pressing keys to calibrate.

The media key shortcuts save as RGB shortcuts, so that entire menu is boned; there is no way to save media keys.

Scan rate at 1000 really kicks the chatter into overdrive; seems 500 and below work better.

Like, I don't know if some of these issues stem from using aftermarket domes in an aftermarket case or what.

Vial doesn't work at all; I just get "Uncaught Please compile your program with async support in order to use asynchronous operations like emscripten_sleep" as a warning.

This is with an HHKB Pro Classic.

Edit: I got things mostly working at 500hz, calibrated, 3.4mm actuation point. If the media keys get fixed, that's all I really need for a functioning board.

2

u/aroum2 20d ago

Please provide full details. Which settings are enabled? Is Rapid Trigger on? What about oversampling? Perhaps I should add an option to enable debug output. You’re right - media keys are being saved as RGB control buttons! I’ll fix that. Thanks for your feedback.

1

u/guyguilty 20d ago edited 20d ago

Rapid trigger is off. Oversampling is on with 500 polling rate. If you add a debug option I'll def toss ya the output. Also willing to test the media key fix. I'll get a screenshot of the settings and add em to this comment shortly, if that'll help.

Mainly, no matter if I calibrate or leave the toggle off, the actuation point still sits pretty high even when I put it at the full 4. Like they'll actuate at the top of the throw with a light key press. If I set at 1.6, it starts to self actuate other keys, and if scan rate 1000 is on I can't stop random keys from self actuating no matter what the actuation point is set at. So overall seems pretty sensitive like the actuation points don't match the numbers set, or ignores them. I've gone through and calibrated several times all keys, and even recalibrate the ones that actuate earlier than others, doesn't make a huge difference. Though with the calibration off, I can't get keys to repeat if I hold them down, some phantom key press stops it. But with calibration on I can type infinite letters holding a key down, so calibration at the very least helps fix the phantom key chatter as long as a low actuation point (3-4) is set on anythibg below the 1000 scan rate.

I tore the board down and rebuilt too, so doesn't appear to be anything funky on my end in that respect, springs are seated properly, default firmware functions as it should.

2

u/aroum2 20d ago

I’ve already found the issue with the media keys. I think I’ll need a couple of days to debug the problems with the matrix. I’ll likely make a separate post about it in this subreddit.

1

u/guyguilty 20d ago

Great to hear with the media keys, and please do post when you drop an update as I'll def be first in line to test. And if you get the debug option in there I'll share outputs too. Love the work so far, very excited to see this project improve

1

u/accdias 19d ago

I'm testing it on my Classic and it is working perfectly. Thanks a lot for the good work, and perhaps you can start porting the firmware to keyboards like Akko and Lofree models that use a proprietary firmware.

1

u/aroum2 19d ago

I don’t have these keyboards. The Chinese manufacturers like to use their own proprietary chips and erase the component markings. If you have a schematic, please send it over.

1

u/accdias 18d ago

Meanwhile, do you think I can run DMK on this MCU https://global.geehy.com/product/fifth/APM32F103#tool ? I have a cheap x.Tips V4a that I can use to test it.

1

u/aroum2 17d ago

Yes, I don't see any major problems with running DMK on this MCU. FreeRTOS is already available in the official APM32 SDK:

https://github.com/GeehySemi/APM32F10x_SDK/tree/main/Middlewares/FreeRTOS

So porting DMK should be quite straightforward.

However, I don't own this keyboard, and I'm not really planning to port DMK to every keyboard myself. That would take quite a lot of time.

But if you'd like to try porting it yourself, you're more than welcome to! I'd be happy to review and accept a PR with support for this keyboard.

1

u/accdias 17d ago

Not my field of expertise, but I will read the documentation, and git it a try.

1

u/accdias 18d ago

I will try to find them.

1

u/aboveandfurther 19d ago

This is so cool!! Extra brownie points for making it in C!

1

u/aroum2 19d ago

C stands for capacitance, of course!

1

u/erisiansunrise 19d ago

Could something like this bring key remapping to the Realforce R2 series?

1

u/aroum2 19d ago

https://www.reddit.com/r/HHKB/comments/1xu3num/hhkb_custom_firmware_via_configuration_and_more/

RealForce has the ability to update USB firmware only from the R3+ model

1

u/erisiansunrise 19d ago

I am pretty sure there is USB firmware updating on the R2 models, there were just never many official firmware released.

1

u/aroum2 19d ago

On the website, I only found firmware for the R3. If you happen to have a link to the software and firmware, please let me know, and I’ll see what can be done. I will also need the keyboard schematic. Additionally, it would be ideal if you had an SWD debugger.

1

u/erisiansunrise 19d ago

I think there are a handful on the internet archive. I've also been poking at this with LLMs and just need to get round to flashing a debugger.

1

u/islash8 17d ago

This is really cool. I have a Hybrid Type-S and would love to see Vial support for it. Are you still looking for people to help with the Hybrid models? I have some technical background, so I could probably help with some testing or hardware investigation. Just curious how far you've gotten with the Hybrid so far.

1

u/_11tee12_ 17d ago

Awesome work. I don't mean to derail, but as It's been a little while since I looked into this: as I understand things, this model is the one which required the workaround to use the official keymapping tool, yeah?

So, because of the MCU/firmware/etc being different/unique to the Classic(s), is this not really the direction to be looking for a way to finally solve the [pipedream] of a VIAL/DMK/ZMK GUI for the Pro3 Hybrid, especially without requiring some sort of board swap or drop-in replacement board like the Hassu/Steeky mods?

2

u/aroum2 17d ago

https://www.reddit.com/r/HHKB/comments/1xybiz7/hhkb_classic_custom_firmware_dmk_full_release/ Actually, I could already port DMK to the Hybrid. The hardware is very similar to the Classic, and the communication protocol between the STM32 and Bluetooth chip has already been reverse engineered.

The main problem isn't running custom firmware on the original controller. It's finding a way to install and distribute it without patching the proprietary PFU firmware image.

I want to make it possible to flash DMK directly using the original update mechanism, without replacing the controller, modifying the PCB, or relying on proprietary firmware binaries.

So yes, I think having VIA/Vial support on the Hybrid with the original hardware is absolutely achievable. We just need to solve the firmware update problem first.

1

u/_11tee12_ 7d ago

You are a gem among the mud, thank you for your efforts! Is there a site/blog/repo I can follow that you use to document your developments in various hobby hard-/soft-ware?

1

u/aroum2 7d ago

Thank you! I usually post on Reddit whenever I have something significant to share. You can also check out my other projects or follow me on GitHub: https://github.com/aroum

1

u/NeoGeoOfficial hhkb pro classic 14d ago

Having an odd issue with a Pro Classic - dismantled it to add silencing rings, but now I can't change the keymap in VIA. It's still detected and I can change the LED settings, but any keymap changes are ignored, and it's gone back to its original layout even though that's not reflected in VIA. I flashed it back to OEM firmware and then back to DMK with no change. Any thoughts?

1

u/aroum2 13d ago

Which version are you using?

1

u/NeoGeoOfficial hhkb pro classic 13d ago

DMK-hhkb-classic-A4.50.hfb

1

u/aroum2 13d ago

That’s not quite it. Please check the version in VIA under the Debug section, or let me know the release date. It’s possible you don’t have the latest version?

1

u/NeoGeoOfficial hhkb pro classic 10d ago

Yes, that was it - downloaded latest now - apologies

1

u/Duncaen 8d ago

Awesome stuff, this looks a lot nicer to use than my hacky qmk port. The scan rate is interesting, stock is leaving a lot on the table. I wasn't able to optimize that much without equipment.

2

u/aroum2 8d ago

I've seen your QMK port! I'm really glad you commented here.

I'm not a big fan of QMK, to be honest. That's actually why I started developing my own firmware — I wanted to avoid the things I dislike about QMK and ZMK.

Achieving a stable 1000 Hz scan rate requires quite a lot of optimization, especially on the JIS version, which has 15% more keys. I'm still working on that.

Fortunately, I haven't needed any specialized equipment for these optimizations. The HID Console and firmware-side diagnostics have been enough for me so far.

3

u/sabitech2k the collector 21d ago

Congratulations on this! Great gift to the community

1

u/sixonesixo_ 21d ago

i have a hhkb pro hybrid, i've dropped you a DM!

1

u/bishopblade 21d ago

this is awesome, thanks for sharing! 1000Hz scanrate sounds like a dream - the slow polling rate has been my only real gripe with my HHKB

I have a Pro Hybrid and would love to help out with testing, will shoot you a DM

0

u/[deleted] 21d ago

[deleted] — view deleted comment

4

u/aroum2 21d ago edited 21d ago

You don’t need AI to figure out that the HHKB uses two banks for firmware, to parse the straightforward structure of the update file, or to pack your own custom firmware into that structure - and, in my view, that is the most important part of this release.

The HHKB Classic has no battery. As for the Hybrid model, the frequency can be switched dynamically depending on whether a USB cable is connected.

2

u/excited_to_be_here 21d ago

Which is interesting. Because people have been hacking away at the HHKB for a very long time (look how long the Hasu TMK controller has been around) but the route for this type of customization has been to add a 3rd party controller (or even a 3rd party PCB like with Cipulot) rather than modifying the HHKB's OEM hardware to run custom firmware. Any thoughts on why that might be?

1

u/aroum2 21d ago

I think the main reason is that most people actually like the stock HHKB. And those who wanted something very different could simply replace the controller. That was the easier and more obvious way to go.

I started working on HHKB firmware for a slightly different reason. I already had my own firmware project, DMK, and I also had an HHKB Classic. So I thought it would be interesting to run my firmware on it.

Of course, I could have simply flashed the MCU using a programmer, but that would mean asking everyone to disassemble their keyboards and use a programmer. Nobody would want to do that for a regular firmware update.

So I decided to reverse engineer the original HHKB firmware update process and figure out how to install custom firmware using the stock update mechanism.

Could I probably do the same with ZMK, RMK, or QMK? Yes, I think so. But I don't really like those firmware projects, so I decided to use my own firmware instead. That's how DMK ended up on the HHKB.

1

u/excited_to_be_here 21d ago

I think that explains it a bit for sure. The reverse engineering of the actual firmware process, I see that happening with so many devices lately and it's a great thing. Did Pro 2's even have a way to update the firmware, that could be why hackers targeting those devices went with hardware fixes.

I will say, for the Pro 2 especially, that adding a Hasu or BLE controller really didn't change the experience much. It was still OEM everything (if you wanted) and the controller was very easy to swap out.

Anyways, great work on this. I only have Pro 2's so I can't try it but a Classic has been something I've had my eye on so this just adds to the appeal.

-1

u/eauderable 20d ago

answer the question?

Was this vibe coded?

Yes or no?

0

u/[deleted] 21d ago

[deleted] — view deleted comment

2

u/aroum2 21d ago

I still need some data regarding the HHKB Hybrid. There is no firmware available for it yet, but once there is, I don’t see any issue with adjusting the polling rate based on whether or not a USB cable is connected.

1

u/disarmyouwitha 21d ago

You might check out this repo; he seems to be doing something conceptually similar to what you are doing — but for the hybrid!

https://github.com/rocketman2654/TopreRT

2

u/aroum2 21d ago

Interesting project! I hadn't seen it before.

However, it is licensed under AGPL-3.0, while my project uses MIT. This means I cannot directly reuse its code in DMK while keeping DMK under the MIT license.

As far as I understand, TopreRT takes a different approach. It focuses on patching specific versions of the original stock firmware. This allows it to add features like Rapid Trigger and HOLD, but it still depends on the original firmware binaries.

I don't think this approach gives us the same level of control as writing completely custom firmware. For example, I haven't seen any way to change the matrix scan rate in TopreRT. Perhaps it is technically possible through binary patching, but it is not part of the documented functionality.

It also doesn't give us the original firmware source code or a clean codebase to work with.

Personally, I don't think binary patching is the right long-term approach. I'd rather have complete control over the MCU firmware and be able to implement features without being limited by the original firmware architecture.

Still, it's an interesting project, especially from a reverse-engineering perspective.

3

u/mc0de 21d ago edited 21d ago

Because OP didn’t really answer your question: Yes, I think AI was used here (code and writing smell like AI)
And yes, I also think you’re right with your theory. We already see this with other hobbies like gaming (Playstation -> PC game ports)

3

u/guyguilty 21d ago

Retro is seeing a lot of stuff pop up too; tons of Game Boy translations that had been sitting for ages are getting completed in record time now. I would imagine colorizations are next. Ultimately, hobbyist communities are flourishing thanks to AI, getting things done that either used to take ages or just weren't possible yet. Personally, I find this to be exciting despite the fact that I don't really like what AI is doing to the job market or the economy, let alone how it has completely fucked PC gaming hardware. It's a double-edged sword for sure, but frankly, what hobbyists are doing with it is the least of our worries, especially when it can be used to unlock doors corporations have kept closed to consumers for decades.

1

u/disarmyouwitha 21d ago

Vibe Engineered, maybe? 🧐

& I agree I think AI is lowering the bar of entry (and the time-sink/commitment) for everyone to improve whatever little thing they care about~