Tekk-Know / RazerBatteryTaskbar

45 stars 18 forks source link

No longer working #2

Closed Kai0KenX20 closed 9 months ago

Kai0KenX20 commented 1 year ago

not quite sure what happen this used to work no problem but now it always displays my battery at 0% Untitled2

GothicIII commented 1 year ago

That's on synapse. I pulled out wireshark with usbpcap and analyzed the traffic.

When 'await mouse.controlTransferOut()' is triggered, the program sends out a SET_REPORT Request which is answered with a SET_REPORT Response. After that follows a GET_REPORT Request and the response got the battery data we need.

If Razer synapse is running and busy with the device (e.g. sending custom light effects) then the GET_REPORT request is never send! It is sufficient to just toggle off brightness and the battery indicator is working again.

I don't know anything about the USB spec. Maybe Razer is reclaiming the interface and libusb is unable to send the request.

This is such a letdown. I desperatly want a battery indicator for the stream deck but I need a working code base :( Synapse low battery status message is broken beyond repair, my devices just shut off without any warning...

Tekk-Know commented 9 months ago

On occasion the meter will show 0, it should update correctly after a polling or two.