Skip to content

Instantly share code, notes, and snippets.

@jhorology
Created November 8, 2021 22:04
Show Gist options
  • Save jhorology/26068b9be3a3fa26ed3e80d201296be8 to your computer and use it in GitHub Desktop.
Save jhorology/26068b9be3a3fa26ed3e80d201296be8 to your computer and use it in GitHub Desktop.
Workaround for issue that GAMAKAY software can't detect my LK67

This is a workaround for issue that software can't detect my LK67 (prebuild version). It seems Banggood's supplier of LK67 uses wrong firmware, or maybe uses recycled MCU?

Prerequisites

  • GamaKay Driver v1.1.13
  • node.js

Prettify Javascript code

cd "C:\Users\<user name>\AppData\Local\Programs\GAMAKAY Driver\resources\app\dist"
npx prettier --write main.js index.js

Investigate keyboard ID

Find the following line in main.js. Add "!" at start of line.

              !a.app.isPackaged || c.webContents.openDevTools(),

After Launch "GAMAKAY Driver", you will see application window with DevTools. Select the console tab on DevTools, then find message "DDDEEEVVUUUUIIIIDDDD 71". 71 is your keyboard id.

Rewrite keyboard definition table

Find following block in index.js, then change the value of id to your keyboard id.

          {
            id: 71,  // original id is 149.
            vid: 1121,
            pid: 16386,
            usage: 6,
            usagePage: 1,
            name: "yzw_lk67",
            displayName: "LK67",
            support_onboard: 2,
            type: "keyboard",
            group: K,
            featureReportByteLength: 65,
            company: "gamakay2",
            layer: 8,
            layout: d.lightHFLayout,
          },
@vigreen
Copy link

vigreen commented Feb 1, 2023

This is a config for TK68 that I use for working GAMAKAY Driver. As you can see, the TK68 use another VID. So you should change VID to yours and than app will works. But I can't guarantee that working with this app won't ruin your keyboard. Therefore, do everything at your own peril and risk

{
            id: 71,
            vid: 12625,
            pid: 16386,
            usage: 6,
            usagePage: 1,
            name: "yzw_lk67",
            displayName: "Homoo Gaming Keyboard",
            support_onboard: 2,
            type: "keyboard",
            group: N,
            featureReportByteLength: 65,
            company: "gamakay2",
            layer: 8,
            layout: i.lightHFLayout,
}

P.S. The App does not always detect the keyboard, so sometimes you need to restart it in order for everything to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment