-
Notifications
You must be signed in to change notification settings - Fork 177
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
Deskhop flickers output LEDs (I think it's resetting?) without constant mouse movement #143
Comments
it would be great if you could usbhid-dump -e stream of both moving the mouse a little and leaving it stationary, not promising I'll find the problem but I'll try... |
Here you go: stream-dump.txt Most of the output is from moving the mouse around. The last 4 messages I saw ticking once every few seconds, and that appeared to be when the device would flicker. |
Have you had a chance to take a look at the stream log? I would guess it's some unrecognized heartbeat message that's causing a crash, but I haven't dug around the code to figure out where that could be occurring. |
Try doing this - increase watchdog timer to 5 seconds, rebuild and see if the blinking interval increases to every 5 seconds. Nothing seems very unusual here, maybe the tinyusb host loop gets stuck for some reason with this device. How does this connect to the computer normally, something like this? |
Same thing if the receiver is behind an usb hub? I'll try working on unit tests and parser test cases, that should help a lot with debugging. |
Tried with a usb hub, but I'm just not getting any input to the computer then, keyboard or mouse. |
I tried using exactly the same descriptor and did not see reboots locally. No idea what's causing it, but I'll try making a few changes and will kindly ask you to test and report if that changes anything (i.e. shooting in the dark) |
Thanks for looking, will be ready to test. Random idea, maybe it's not actually resetting, just re-triggering the function that runs when it detects a mouse getting plugged in? Perhaps from a low power mode in the mouse where the deskhop thinks the mouse is disconnecting and reconnecting? That would also explain why it doesn't happen while I'm moving the mouse around, and only after I let it sit for a few seconds. |
The device appears to be working correctly otherwise, mouse and keyboard input are being sent to outputs A and B where appropriate. But if I stop moving the mouse, after a few seconds the device alternates lighting up the A and B output LEDs, then pauses for a couple seconds, then does it again, and continues over and over. If I start moving the mouse again, the LED acts as normal and lights up for the correct output.
I think the deskhop is crashlooping? At the very least this interrupts keyboard input while LEDs are flip-flopping.
This issue is mouse-specific, I can only reproduce this with a Logitech G Pro X Superlight 2. I also tested with a MX Master 3 and that doesn't reproduce the bug.
Descriptor dump for the the Pro X mouse:
Tested with 0.64 prerelease
The text was updated successfully, but these errors were encountered: