Bug#798160: Bogus touch events and coords

Michael Heinemann posted at heine.so
Tue Sep 8 15:42:34 UTC 2015


Hi Manuel,

thanks for your quick reply. See my comments below.

Manuel A. Fernandez Montecelo wrote:
> Hello Michael,
>
> 2015-09-06 11:34 GMT+01:00 Michael Heinemann<reported at heine.so>:
>> Package: libsdl1.2debian
>> Version: 1.2.15-10
>>
>> I'm using pygame to build a touch interface on my raspberry pi. When using
>> wheezy touch events comming from TSLIB are working fine.
>> example:
>> [...]
>> So I get many more events from SDL and wrong positions.
>>
>> When I build libsdl 1.2.15 from source I get the expected behaviour. Also
>> when installing the wheezy package on jessie the coords are correct.
>>
>> Problem is also described here:
>> https://forums.adafruit.com/viewtopic.php?f=47&t=76169&p=404358
>
> The most important change between the release of libsdl1.2 between
> Wheezy and Jessie is this (the rest is mostly administrativia):
>
>    [ Hector Oron ]
>    * d/control: remove libts-dev build depends. (Closes: #751766)
>
> This was disabled because the package itself was removed from Debian, see:
>
>    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751768
>
> So maybe you are getting random coordinates or pygame picks the data
> from other source, I don't know.  In any case, if this is indeed
> what's causing the problem, there is not much that we can do about it
> short of adopting it and reintroducing it to Debian, given that the
> other package was dropped.
>
> According to one of the messages in that URL asking for the removal of
> tslib from Debian, somebody wanted to step up and maintain it, but
> then found out that tslib was superseeded by evdev and dead upstream,
> so reintroducing after more than a year out and not in Jessie, doesn't
> look like a good idea.
>
>
> Now, about why it works when you compile from source... Do you have
> libts-dev installed (either from Debian or locally in your system)
> when compiling yourself from source?  In that case, the reason why it
> works when you compile it locally it is probably because it picks up
> that library from the system and compiles support for it, whereas the
> Debian package from Debian dropped it at compile time and doesn't use
> the library even if installed locally.
I had libts-dev most probably installed. As automake picks the 
dependencies by itself I would guess it used it.
>
> Another thing is that libsdl1.2 reached end-of-life now.  Apart from
> the general message from SDL upstream saying that 1.2 is out and they
> will only pay attention to v2, a few days ago all of the bug reports
> that we had submitted upstream for the 1.2 branch were closed; they
> don't plan to make any updates to it, not even for serious bugs.
>
> So it would be a good idea to migrate projects to use libsdl2, the
> support for libsdl1.2 will get no better than it is now and will
> gradually degrade.
>
>
> Cheers.
I guess the "problem" here goes through the whole stack. Pygame itself 
is still completely relying on libsdl1.2. There are forks using libsdl2. 
But nothing which seems "final".

I'm still wondering why I was even able to install all the tslib stuff 
as it isn't in the jessie package list anymore. As I was installing the 
raspbian spin-off maybe they kept it in there on purpose or it is still 
in there because it's out of sync. I wasn't able to find anything 
reliable on the process how the distribution is coming together.

Nevertheless I guess it is safe to say that the stack of 
Pygame->libsdl1.2->tslib is gone for good with jessie. As basically all 
raspberry pi touch tutorials are using at least tslib im curious how 
this will turn out when raspbian defaults to jessie.

 From my side this issue can be closed.

Cheers.
Michael


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20150908/ba6fc41f/attachment.html>


More information about the Pkg-sdl-maintainers mailing list