u/trougnouf

Fagne wallonne : avant - maintenant
▲ 6 r/ploopy

Fixed scroll wheel jitter using opt_encoder_tiny.c and sane values

I love my ploopy thumb trackball but scrolling has always been broken.

Turns out that we can just disable the fancy auto-detection algorithm, set some sane conservative values, and it works perfectly! No more unplugging and plugging it back in all the time, no more jitter. It's just a pleasure to use and it feels like the ultimate ($245.38 CAD) trackball I paid for.

In ploopyco/trackball_thumb/rules.mk (I had to create this file)

OPT_ENCODER_TYPE = tiny

in ploopyco/trackball_thumb/config.h

#define ENCODER_LOW_THRES_A 20
#define ENCODER_HIGH_THRES_A 40
#define ENCODER_LOW_THRES_B 20
#define ENCODER_HIGH_THRES_B 40

Flash it and enjoy! (Note that the flashing instructions are wrong, use the middle click button not the forward button s.t. you don't have to take it apart to jump the bootloader every time.)

I assume it works for any other ploopy mouse/trackball too. The values I measured range from 4 to 94 and 4 to 83 (but the 83 was sometimes down to 60), so 20 to 40 seems pretty safe imo. The values that ploopy set were 20 to 75 and 20 to 90 so it didn't even register my scrolling.

If this works for you then feel free to mention it on https://github.com/qmk/qmk_firmware/pull/26286#issuecomment-4762953120 and we could probably make this the default behavior.

u/trougnouf — 2 months ago