Git Product home page Git Product logo

Comments (5)

Razzula avatar Razzula commented on August 11, 2024 1

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.

Razzula avatar Razzula commented on August 11, 2024 1

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.

dokutan avatar dokutan commented on August 11, 2024

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.

Razzula avatar Razzula commented on August 11, 2024

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.

dokutan avatar dokutan commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.