this post was submitted on 23 Nov 2026
79 points (86.2% liked)

Linux

15552 readers
291 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

A lot of small hardware (AIO cooler screens, RGB hubs, stream decks, case LCDs) only ships a Windows app, and the usual route to Linux support is someone staring at Wireshark for an evening. I built usb-rea to do the step after Wireshark.

You capture with usbmon on Linux or USBPcap on Windows, label what you clicked in the vendor app (brightness 0, 50, 100, fan 30%, and so on), and it infers the command layout: constant headers, which byte follows which setting, counters, checksums like CRC16, lookup tables and image streams. It then writes a Markdown report where every claim points to Wireshark frame numbers, plus a standalone pyusb driver.

On public captures of the NZXT Kraken X it recovers the fan command byte for byte as liquidctl sends it, and the generated driver produces identical packets for values it never saw. It is alpha, MIT, pip install usb-rea, and usb-rea demo --device fan runs without any hardware.

If you have a device that only works on Windows, I am happy to run a capture through it and post the result.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] definitemaybe@lemmy.ca 2 points 14 hours ago (1 children)

This is really cool. I was looking into getting a stream deck, but couldn't find an affordable one with Linux drivers.

Tools like this give me hope that people who know what they're doing can make drivers for more devices like that so we can get closer and closer to a "Linux just works" world.

Thanks. If you go for one of the cheaper decks, check DeckBridge and python-elgato-streamdeck first, a lot of the MiraBox/Ajazz style clones are already covered there, so you might not need to reverse anything.