Skip to content

Instantly share code, notes, and snippets.

@jhorology
Created November 8, 2021 22:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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,
          },
@jhorology
Copy link
Author

jhorology commented Nov 11, 2021

The above fix doesn't work sometimes. It seems GAMAKAY software searches defintion table in no particular order. I should have changed a defintion of id 71.

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

@Harry-Cowshed
Copy link

Didn't work for me. Any chance of assistance? Really need to bind the hash key, haha

@Harry-Cowshed
Copy link

Actually had to update to v1.1.14 then followed the same steps. I have the LK67 and using the below code worked:

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

@jhorology
Copy link
Author

Banggood's seller posted a download link of new firmware at Q&A. I confirmed that new firmware has correct id 149(Gamakay LK67). This workaround is not necessary any more.

@iamthan1
Copy link

Banggood's seller posted a download link of new firmware at Q&A. I confirmed that new firmware has correct id 149(Gamakay LK67). This workaround is not necessary any more.

Hello, could you provide me with the link to the new firmware? I can't find it and I am writing a review about the LK67, so it would be very nice to try out the software! Thank you in advance. I right now have 1.1.14 but it doesn't work

@jhorology
Copy link
Author

You can find a link at second page of Q&As section of product page (blue prebuild LK67).
If your board is bricked, I don't take any responsibility. You should ask banggood for detail.

This issue and banggood's support were really annoying to me. I wrote this workaround to proof of seller's fault, not intended to help them.

@lucastephann
Copy link

Been having issues with the keyboard's firmware. Do anybody know how to re-flash the firmware, if it's even possible? Suddenly the 1, Q, A and Windows keys are not being recognized...

@AugustoEscanor
Copy link

Hi! i used @Harry-Cowshed configuration having the v1.1.14, but only works after reboot mi laptop.

@Correia-jpv
Copy link

There's a new fix from GamaKay
GamaKay Downloads

Save this archive, run the program and follow the .pdf images.

@josiejorubric42
Copy link

Hello, i've been struggling to figure out this firmware stuff and if any of you could help that would be great.

@M-HFM
Copy link

M-HFM commented Feb 6, 2022

https://gamakay.com/pages/downloads
On this link is possible to download de firmeware update for de khyboard

@askl-stack
Copy link

askl-stack commented Feb 11, 2022

Hi. Thanks for the comments, they were very helpful. The driver as you mentioned above, has been installed successfully, but it doesn't work when I try to use the keyboard with the dongle, ( I haven't try with the Bluetooth yet).
Is there any solution for this?

Thnx a lot.

@askl-stack
Copy link

I just tried the Bluetooth. It doesn't work either.

@kokonahsuh
Copy link

it still does not work. official website doesn't either

@askl-stack
Copy link

Thnx for the feedback. Yes I tried to find a solution through the official web site, but nothing came up.

@M-HFM
Copy link

M-HFM commented Feb 28, 2022

image
you need to update de firmeware first, after that you can use the software normally
https://delivery.shopifyapps.com/-/1a708157c0aa5151/518a34011c2a4c5e

@askl-stack
Copy link

Thank you very much for the answer. But, I run what you told me, it went perfect, but when I open the app to try to configure the layout of the keyboard freezes at the start up sceen, trying to identify the driver.
image

@InternetRodent
Copy link

Thank you very much for the answer. But, I run what you told me, it went perfect, but when I open the app to try to configure the layout of the keyboard freezes at the start up sceen, trying to identify the driver. image

Im getting this as well with a TK68. I just downloaded the drivers (never ran any gama kay software before on MAC OS, and it just says searching device, It doesn't seem frozen.

@asdqdsa
Copy link

asdqdsa commented Nov 24, 2022

@InternetRodent have you found a solution? I bought TK68 too and experiencing same issue. Even reached out gamakay support, they emailed me a firmware, but the firmware also seems cannot detect the keyboard akin to software :( Tried to mess around with index.js properties as well - also no luck...

@InternetRodent
Copy link

@InternetRodent have you found a solution? I bought TK68 too and experiencing same issue. Even reached out gamakay support, they emailed me a firmware, but the firmware also seems cannot detect the keyboard akin to software :( Tried to mess around with index.js properties as well - also no luck...

No I ended up just changing the modifier keys through the Mac OS settings, and that was good enough for the time being, I totally forgot about this, let me know if you do get the software working.

@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