9and3r / mopidy-touchscreen

Extension for displaying track info and controlling Mopidy from a touch screen using PyGame/SDL
Apache License 2.0
45 stars 24 forks source link

Jumping cursor in pygame (but ts_test works) #13

Closed claudio755 closed 8 years ago

claudio755 commented 8 years ago

Hi folks, im running touchscreen on Arch Linux 4.0.7-v7+ on a Raspberry Pi 2 rev. B together with a Spotpear 3.5" display.
Everything works fine except the cursor, it bounces around all the time as soon as the touchscreen is touched, even though the finger is not moved. The given positions seem not to correlate to the touched position in any way.

Any other ideas? I'm thankful for every hint! Cheer Claude

claudio755 commented 8 years ago

In the meanwhile I found SDL version 1.2.15-10 its probably causing the issue. See here: https://forums.adafruit.com/viewtopic.php?f=47&t=76169 I downgraded to SDL 1.2.15-5 as suggested but still having the same issues. Hmm...

ghost commented 8 years ago

From my experience when ts_test works fine, pygame also works fine so no idea what the problem can be.

claudio755 commented 8 years ago

Ok I finally got the issue solved - the problem is SDL version > 1.2.15-5 also mentioned in the link above.

I first tried to downgrade to version 1.2.15-5 with "pacman -U" which did not help. I ended up downloading version 1.2.14 from https://www.libsdl.org/release/ and building it from scratch.

Don't forget to include IgnorePkg = sdl in nano /etc/pacman.conf to prevent an update of the package in future.

ghost commented 8 years ago

Thanks @claudio755 for the solution. Probably will be useful for more people