Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Razer Anansi : Invalid USB repsonse spamming #347
I have installed the razer-drivers on Fedora 25 ; my Razer Anansi seems recognized, I can see it in interfaces such as RazerGenie or PolyChromatic Controller. But I am not able to set the colors or the brightness. When I try with the GUI, they show no error, but nothing happens, and when restarting them, the settings are gone. When I try to modify some file, for example :
The file is not modified, my brightness stays to 0.
But nothing seems to be received by the keyboard. The logs in /var/log/messages are indicating in a loop the following error :
This seems to be related to razer_send_control_msg and razer_get_usb_response in razercommon.c. But for razer_get_usb_response, the comment indicate that this function is compatible with the Chroma, Mamba, BlackWidow Ultimate 2013, and Firefly*, so is it normal to call in for my Anansi ?
Thanks a lot for your help !
Hello, yes I forgot to add, strangely, the device_serial is empty... the mode and type are set, though.
For both commands, (cat device_serial and cat device_mode), I get the same error in dmesg
I compiled the driver from the source, and added some print in razercommon.c, if this could help : I added in razer_send_control_msg the following line:
and in razer_get_usb_response:
The log are displaying:
Think I found the issue.
response and report index had their values changed. I'm guessing this could affect other keyboards as well.
return razer_get_usb_response(usb_dev, 0x02, request_report, 0x02, response_report, RAZER_BLACKWIDOW_CHROMA_WAIT_MIN_US, RAZER_BLACKWIDOW_CHROMA_WAIT_MAX_US);
The twos were changed to ones.
return razer_get_usb_response(usb_dev, 0x01, request_report, 0x01, response_report, RAZER_BLACKWIDOW_CHROMA_WAIT_MIN_US, RAZER_BLACKWIDOW_CHROMA_WAIT_MAX_US);
I fixed the issue. This could possibly apply to other keyboards as well.