Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom LED patterns don't work (Redragon K550 Yama, K556 Devarajas and K587 PRO Magic) #6

Open
ionsquare opened this issue Dec 5, 2020 · 4 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@ionsquare
Copy link

Hey, this is a really cool project.

It's somewhat working with my K556 Devarajas (--ajazzak33 required to work), I'm able to set brightness, speed, and colours and trigger the preset patters, but I'm unable to set specific key colours with --custom-keys or set use --custom-pattern.

Using --custom-keys does nothing at all, and using --custom-pattern sets a really weird preset, always the same regardless of what input file I use. For example, using /dev/null as the input file still gives the same result

rgb_keyboard --ajazzak33 --custom-pattern /dev/null

image

Any suggestions for how I could troubleshoot this to get it working?

@ionsquare
Copy link
Author

Oh never mind, it must have somehow remembered the previous settings file, I changed the colours in the file (e.g. red to green) and when I set --custom-pattern again those red keys did turn to green.

@dokutan
Copy link
Owner

dokutan commented Dec 5, 2020

I'm glad that changing the colours worked, however the keys aren't accessible under their actual name in the file, e.g. x is not called x but some modifier.

To fix that you could try to change each key individually and create a list that maps the name of the key to the actual key. If you can't change the colours of some keys with this method, you would have to set up the official software on a Windows machine (or VM) and capture the usb traffic when changing the colour of the keys with wireshark.

With that information it should be relatively easy to add support in this software.

@dokutan dokutan added bug Something isn't working enhancement New feature or request labels Dec 5, 2020
@dokutan dokutan changed the title Redragon K556 Devarajas support Custom LED patterns don't work (Redragon K550 Yama, K556 Devarajas and K587 PRO Magic) Apr 17, 2021
@kanguru007
Copy link

kanguru007 commented Jun 1, 2021

How can I find the correct values for this table? The 'I' is actually changing the 'Q' (I edited the source code to be sure of that). The values from Linux showkey are also wrong. (Redragon K550 and K580, I have both and the effect is the same on both)

const std::map<std::string, std::array<uint8_t, 3>> rgb_keyboard::keyboard::keycodes_ansi = {
{"Esc", {0x57, 0x03, 0x00}},
{"F1", {0x5a, 0x06, 0x00}},
{"F2", {0x5d, 0x09, 0x00}},
{"F3", {0x60, 0x0c, 0x00}},
(...)

@dokutan
Copy link
Owner

dokutan commented Jun 1, 2021

These values were obtained by capturing the data sent by the official software with wireshark, while individually changing the color of all keys, then comparing the data to find the differences between the keys. Alternatively you could use systematic trial and error if they are simply swapped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants