Issues with multitouch patch of tslib

274 views
Skip to first unread message

Joaquim Duran

unread,
Jun 29, 2012, 5:08:02 AM6/29/12
to openbric...@googlegroups.com
Dear all,

I'm trying to compile tslib with multitouch support for a BSP provided
by LogicPD (the cortex-a8 module is not supported by openbricks).
Following the tslib package information, I've downloaded the tslib 1.0
from your server and I've applied the multitouch patch. The patch has
resulted in several issues:

$ patch -p1 < ../../multi-touch.diff
patching file plugins/input-raw.c
Hunk #1 FAILED at 10.
Hunk #2 FAILED at 18.
Hunk #3 FAILED at 30.
Hunk #4 FAILED at 90.
Hunk #5 FAILED at 108.
Hunk #6 FAILED at 140.
Hunk #7 FAILED at 159.
Hunk #8 FAILED at 174.
Hunk #9 FAILED at 220.
9 out of 9 hunks FAILED -- saving rejects to file plugins/input-raw.c.rej

Does the multitouch patch should be applied to tslib v 1.0? if not, at
which version?

Thanks and Best Regards,
Joaquim Duran

Thomas Genty

unread,
Jun 29, 2012, 5:24:46 AM6/29/12
to openbric...@googlegroups.com
Le 29/06/2012 11:08, Joaquim Duran a �crit :
it applied fine here :
--2012-06-29 11:18:46--
http://sources.openbricks.org/devel/tslib-1.0.tar.bz2
R�solution de sources.openbricks.org... 67.203.12.194
Connexion vers sources.openbricks.org|67.203.12.194|:80... connect�.
requ�te HTTP transmise, en attente de la r�ponse... 200 OK
Longueur: 663267 (648K) [text/plain]
Sauvegarde en : �sources/tslib/tslib-1.0.tar.bz2�

100%[======================================>] 663 267 350K/s ds 1,8s

2012-06-29 11:18:48 (350 KB/s) - �sources/tslib/tslib-1.0.tar.bz2�
sauvegard� [663267/663267]

CLEAN tslib
UNPACK tslib
## Applying patch: packages/tslib/patches/multi-touch.diff
patching file plugins/input-raw.c

tested manually too :
thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
patch -p1 -R < ../../../packages/tslib/patches/multi-touch.diff
patching file plugins/input-raw.c
thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
patch -p1 < ../../../packages/tslib/patches/multi-touch.diff
patching file plugins/input-raw.c
thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$

Tom


Joaquim Duran

unread,
Jun 29, 2012, 7:57:23 AM6/29/12
to openbric...@googlegroups.com
2012/6/29 Thomas Genty <toml...@gmail.com>:
> Résolution de sources.openbricks.org... 67.203.12.194
> Connexion vers sources.openbricks.org|67.203.12.194|:80... connecté.
> requête HTTP transmise, en attente de la réponse... 200 OK
> Longueur: 663267 (648K) [text/plain]
> Sauvegarde en : «sources/tslib/tslib-1.0.tar.bz2»
>
> 100%[======================================>] 663 267 350K/s   ds 1,8s
>
> 2012-06-29 11:18:48 (350 KB/s) - «sources/tslib/tslib-1.0.tar.bz2»
> sauvegardé [663267/663267]
>
>  CLEAN    tslib
>  UNPACK   tslib
> ## Applying patch: packages/tslib/patches/multi-touch.diff
> patching file plugins/input-raw.c
>
> tested manually too :
> thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
> patch -p1 -R < ../../../packages/tslib/patches/multi-touch.diff
> patching file plugins/input-raw.c
> thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
> patch -p1 < ../../../packages/tslib/patches/multi-touch.diff
> patching file plugins/input-raw.c
> thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
>
> Tom
>
>

Based on the information provided by Tom, I've seen that I was not
applying the patch correctly.

Thanks for your time.

Joaquim Duran

Thomas Genty

unread,
Jun 29, 2012, 8:09:01 AM6/29/12
to openbric...@googlegroups.com
Le 29/06/2012 13:57, Joaquim Duran a �crit :
> 2012/6/29 Thomas Genty <toml...@gmail.com>:
>> Le 29/06/2012 11:08, Joaquim Duran a �crit :
>> R�solution de sources.openbricks.org... 67.203.12.194
>> Connexion vers sources.openbricks.org|67.203.12.194|:80... connect�.
>> requ�te HTTP transmise, en attente de la r�ponse... 200 OK
>> Longueur: 663267 (648K) [text/plain]
>> Sauvegarde en : �sources/tslib/tslib-1.0.tar.bz2�
>>
>> 100%[======================================>] 663 267 350K/s ds 1,8s
>>
>> 2012-06-29 11:18:48 (350 KB/s) - �sources/tslib/tslib-1.0.tar.bz2�
>> sauvegard� [663267/663267]
>>
>> CLEAN tslib
>> UNPACK tslib
>> ## Applying patch: packages/tslib/patches/multi-touch.diff
>> patching file plugins/input-raw.c
>>
>> tested manually too :
>> thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
>> patch -p1 -R < ../../../packages/tslib/patches/multi-touch.diff
>> patching file plugins/input-raw.c
>> thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
>> patch -p1 < ../../../packages/tslib/patches/multi-touch.diff
>> patching file plugins/input-raw.c
>> thomas@thomas-dv7:/media/data/openbricks/build/build.i386.eglibc/tslib-1.0$
>>
>> Tom
>>
>>
> Based on the information provided by Tom, I've seen that I was not
> applying the patch correctly.
>
> Thanks for your time.
>
> Joaquim Duran
>
No problem ;-)

Tom

Shilpa Manjunath

unread,
Dec 28, 2012, 8:17:23 AM12/28/12
to openbric...@googlegroups.com
Hi all,
I downloaded the tslib source from the below provided link and also added the patch. Successfully i'm able to compile. But while i'm running on the sitara starter kit, i'm getting problem.
I have exported below variables
   export TSLIB_TSDEVICE=/dev/input/event1    
   export TSLIB_CONFFILE=/etc/ts.conf
   export TSLIB_PLUGINDIR=/usr/lib/ts
   export TSLIB_FBDEVICE=/dev/fb0
   export TSLIB_CONSOLEDEVICE=none
   export TSLIB_CALIBFILE=/usr/etc/pointercal
After running ts_calibrate, i'm getting segmentation fault. Please can anyone help me out in this regard.

Amol Aswar

unread,
Aug 23, 2019, 8:21:35 AM8/23/19
to OpenBricks Development List
Hi Shilpa Manjunath,

Check your ts.conf file remove all the white space it should work sure shot.

Thanks,
Amol
Reply all
Reply to author
Forward
0 new messages