Comments (5)
Yeah, I didn't think it would work at all, but figured I'd try it out. Didn't have to change any of the source code, other than the filepaths in the makefile. Was planning on testing it on Linux when I got the chance, to ensure it wasn't the keyboard itself. I'll let you know once I have, along with the wireshark capture.
I think I used the correct drivers, but will double check.
Thanks :)
from rgb_keyboard.
I've just had another look at the problem, and turns out it was a driver issue after all. The keyboard I am using uses two USB interfaces, one to handle keypresses, and the other to handle the RGB. After changing the Interface1 driver from HID to WinUSB the program performs exactly as expected when testing the -r
and -a
commands.
(Note: As a consequence of this, however, the official Tecware software no longer works on the keyboard. Though this doesn't bother me, and the driver can be reset incredibly easily.)
from rgb_keyboard.
Interesting that it even compiled on windows, did you have to change anything?
Unfortunately i don't have a windows machine to replicate your setup, a few things you could try for troubleshooting:
- capture the usb communication with wireshark and attach it to this issue, maybe something weird is happening there (please do this for setting the brightness or changing the profile)
- try this program on Linux (optionally in a VM with USB passthrough)
- Check if you have the correct libusb drivers installed or any other limitation applies? (https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows)
from rgb_keyboard.
Just tested it on my Linux machine: worked perfectly. Didn't test it very extensively but -r
returned correct data and -a
worked as expected. All these worked without using --kernel-driver
, by the way, whereas on Windows -r
insists on it.
Back on Windows, Wireshark doesn't detect anything when running rgb_keyboard.exe -a 2 --kernel-driver
or rgb_keyboard.exe -r --kernel-driver
, but does detect keypresses, and when I change the profile using the official software. And the drivers are correct. So I guess the problem is to do with how libusb works on Windows, and so the signals aren't being sent.
Strange that that -r
does return a result though, despite the keyboard not sending any data. Does the code have default values for the results or something?
from rgb_keyboard.
Strange that that -r does return a result though, despite the keyboard not sending any data. Does the code have default values for the results or something?
Yes, default values are used. In this case opening the keyboard succeeds, otherwise an error would be shown.
from rgb_keyboard.
Related Issues (20)
- GMMK long key change times HOT 7
- Add PKGBUILD and publish Arch Linux package? HOT 11
- Redragon K552RGB-1 -- Testing HOT 8
- Redragon K552RGB-1 ABNT2 (Brazilian Layout) Keymapping problem HOT 2
- Tecware Phantom RGB TKL- Keymapping doesn't seem to work. HOT 7
- Couldn't execute "rgb_keyboard" (GUI) HOT 2
- Redragon SURARA K582 support HOT 3
- Redragon K512 Support HOT 1
- (Not bug) Custom patterns HOT 1
- Custom Pattern Documentation HOT 1
- GMMK TKL keyboard doesn't work with example commands. HOT 4
- Redragon Draconic HOT 2
- Could not detect keyboard - GMMK Pro HOT 5
- Redragon k552-kr kumara not working HOT 1
- Redragon K589 Shrapnel compatibility HOT 3
- Redragon k585 color support for multiple profiles HOT 1
- redragon k582 surara not working
- Support for Redragon Fizz k617 HOT 1
- Running the example.conf flickers some keyboard leds and never actually changes the colors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rgb_keyboard.