Author Topic: Linux script to program USB macro keyboard  (Read 2107 times)

0 Members and 1 Guest are viewing this topic.

Offline dotancohen

  • Thread Starter
  • Posts: 140
    • Dotan Cohen
Linux script to program USB macro keyboard
« on: Fri, 24 June 2022, 02:29:19 »
I'm thinking about purchasing one of these USB macro keyboards:
https://www.aliexpress.com/item/1005004181797652.html

Apparently the device will work with Linux, but it needs Windows to run the program to configure the macros. I tried downloading the software to see if it will run in Wine, but the download is not available anyway.

Does anyone have any idea how device this could be programed in Linux? I use Ubuntu (actually Kubuntu) but could boot into e.g. Fedora if needed. Thanks.

Offline hvontres

  • Posts: 182
  • Location: Oceanside, CA
  • Buckling Spring Enthusiast - Full Size Evangelist
Re: Linux script to program USB macro keyboard
« Reply #1 on: Fri, 24 June 2022, 02:42:40 »
Honestly, hard to say. The item description does not give any clues to what controller is used. Also, without the windows software it is really hard to tell how this board is programmed.

Possible solutions I can think of, asuming you can somehow get a hold of the Windows software:
  • See if the software will run under wine and live with that
  • Run the software under wine and use Wireshark to capture the USB traffic and try to reverse engineer the protocol used
  • Port QMK / Via / Vial or one of the other open source firmwares to work with the micro on this board. This would require the board to use a supported processor and the ability to completely re-flash the firmware and not just update the keystrokes
  • Replace the controller on the board with a pro-micro or something similar that already supports QMK and friends and flash your own firmware.

It would be risky, but then again, we are talking about a $25 macropad, so it would not be a signifficant investment. I noticed there is a second model that shows up from different vendors that claims to ship the software with the pad. Maybe that might work better.
« Last Edit: Fri, 24 June 2022, 03:16:58 by hvontres »
Henry von Tresckow

               
1986 Model M 1390131, 1987 Model M 1391401 , 1993 Model M2 Modded Reddragon k556(Test Mule) Boston Prototype x2 (Daily Drivers :) )

Offline dotancohen

  • Thread Starter
  • Posts: 140
    • Dotan Cohen
Re: Linux script to program USB macro keyboard
« Reply #2 on: Sun, 26 June 2022, 07:34:36 »
Thanks, I had not considered sniffing the USB traffic. Though if the software - assuming it can be acquired - will run under Wine that is fine enough for me. I don't expect to run it very often.