qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.24k stars 39.32k forks source link

[Bug] Ploopy Classic scrolls erratically and erroneously during mouse movement after reconnect #16567

Open Soundtoxin opened 2 years ago

Soundtoxin commented 2 years ago

Describe the Bug

I'm using the Ploopy Classic trackball (running QMK) with a USB switch plugged into two computers. When I press a button on the switch to change to the other computer, moving the mouse will randomly start scrolling a little bit. It's noticeable due to things like seeking in mpv getting activated when I just try to move the mouse. It took me a while to realize what was going on. I thought maybe I was bumping the scroll wheel, but that's not it. Usually what I'll do is find somewhere I can scrolll and then move the mouse wheel a bit, then go into drag scroll and scroll up and down, then turn off drag scroll again and it doesn't have issues beyond that point. Not sure how much of that process is necessary. I think of it a bit like an analog stick being stuck going in a direction because it was being pushed that way when the controller was plugged in, or like a shift key getting stuck until you press it again.

System Information

Keyboard: Ploopy Classic Revision (if applicable): Ordered quite recently (this year), going to say it's the latest revision of the mouse probably. Operating system: Guix System GNU/Linux and Windows 10 Enterprise (happens on both) qmk doctor output: Not sure if this is relevant, and I usually compile and flash on different machines + use dfu-programmer for the flashing... if it matters a lot I can get it from whichever machine(s) later

(Paste output here)

Any keyboard related software installed?

Additional Context

USB Switch used: https://www.amazon.com/dp/B01N6GD9JO/

I had the switch for a little while before I had the Ploopy and I did not notice any similar issues with my Logitech G400.

I can get my QMK files off the other machine I do the build on if needed. I basically combined the VIA profile (although I have never used VIA and don't plan to) and drag_scroll profile and then lowered the DPI presets a lot. Everything works great besides this weird scrolling issue.

drashna commented 2 years ago

could you use the firmware from http://qmk.tzarc.io and see if that resolves your issue?

Soundtoxin commented 2 years ago

Sorry, haven't gotten around to trying this yet. Are there instructions anywhere for setting up that version? I may be able to get to it this weekend.

edit: I thought it was another branch/fork of QMK where you'd tweaked some things. I guess maybe you just want me to flash some pre-made layout and see if the bug happens there. Can't recall what the 005 means and if I want that one or the regular one.

Soundtoxin commented 2 years ago

I flashed ploopyco_trackball_rev1_005_via.hex from that page and was still able to recreate the issue. I activated the USB switch twice to leave and then return to controlling this PC, then a few seconds of ball movement with no contact with the side of the mouse and it seeked forward 10 seconds in mpv as if I'd scrolled up.

drashna commented 2 years ago

the qmk.tzarc.io compiles from the qmk develop branch, and is very up to date.

And is it just scrolling that happens, or other behavior?

Soundtoxin commented 2 years ago

As far as I can tell, everything works normally besides the strange unintentional scrolling. The mouse still moves with the ball, but it will occasionally scroll.

nouun commented 2 years ago

@Soundtoxin Sorry for half hijacking the thread, would you be able to send your QMK package? Thanks in advance, nouun.

Soundtoxin commented 2 years ago

@nouun

@Soundtoxin Sorry for half hijacking the thread, would you be able to send your QMK package? Thanks in advance, nouun.

What do you mean? Like the qmk binary I'm using? or my configs? is uploading /usr/bin/qmk enough or would you need other files too? ls -hal /usr/bin/qmk shows a date of December 2nd on one of the machines I have qmk on. I have built my configs on a couple different [non-primary] machines and then I just flash the hex on my PC with dfu-programmer after I copy it over due to issues getting the full qmk tooling working locally.