Tiny4412 and tslib problem

majil
Hi guys. I'm having a hard time dealing with Tiny4412 and tslib and Qt4.
Tiny4412 has a 7" LCD named S700 with ft5x0x_ts touch screen controller and
800*480 resolution. 
I can see that controller is registered as event0 in /dev/input/ directory.
I even tried below command and touch is working fine:
cat /dev/input/event0 | hexdump

I recompiled tslib from source with gcc4.5.1 and set it's necessary
environmental variables in the target but when I run ts_calibrate program
it gives me this error:

tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y
events)

What do I do?
I searched a bit and it was a issue that this controller is multi touch and
to be able to work with tslib inside linux it should be defined as a single
touch device and so on. Like I'm supposed to modify tslib sources.

Well how do I do that?
Any thoughts would be greatly appreciated.

chaunguyen
Have you had any idea to solve this problem yet? Now, I also have problem
with multi touch.

jiameijiang
Qt do not support tslib touch . Tslib of standard do not support ft5x0x_ts
. The tslib of friendlyarm is modified by friendlyarm .

chaunguyen
@jiameijiang: Do you have tslib of friendlyarm? I have modified tslib of
standard but it only moves pointer cursor on the screen, I can't touch any
button (I don't know how to measure pressure when touch on the screen)

majil
@chaunguyen: Just use the default kernel. In which environment do you want
to use the touch screen capability? I mean are you planning to run a Qt
based application?
What about Qtopia? Can you use the touch input correctly in Qtopia
environment? Can you run ts_calibrate application which its icon exists
inside of Qtopia correctly? If this is the case then I guess you have some
problems with environmental variables which are required by tslib library
and Qt. Like ts_conf and so on. Then if you have no problem with Qtopia
like I explained you can take a look at Qtopia script inside the board or
even better you can take a look inside the qt4 script which exists inside
the board. Those are some scripts files and you can see their contents.
They give you some ideas about how to set required environmental variables
before running your programs. (your qt program or ts_calibrate program or
...)

chaunguyen
@majil: I can touch everything correctly in Qtopia environment, I also try
ts_calibrate application in Qtopia and it works perfectly. The problem
happens when I run my application (use QT4.7.2 opensource everywhere with
tslib to build it). It give me this error:

tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y
events) 

This problem happens because the controller of touchscreen is multitouch
(as you said above). Have you fixed it?

jiameijiang
@chaunguyen
Yes  , I have ,if you want it ,you can send email to me , I will send you
tslib . But you have to describe your problem .

jiameijiang
@chaunguyen My email is jiameijiang@friendlyarm.com

chaunguyen
@jiameijiang: I sent an email to you with description about my problem.
Thank you and hope you will reply me soon

giangtran
Hi chaunguyen,

Would you like to add me via skype: giangtqh, or May I contact to you by an
email, I have some problems when compile tslib, may need your help.

Could anyone help, thank you very much.

#./autogen.sh
#./configure --host=arm-linux --prefix=/home/tslib --enable-shared=yes
--enable-static=yes
#make
make[2]: Leaving directory `/home/giang/qtTut/tslib/tests'
make[2]: Entering directory `/home/giang/qtTut/tslib'
make[2]: Leaving directory `/home/giang/qtTut/tslib'
make[1]: Leaving directory `/home/giang/qtTut/tslib'
root@giang-1558:/home/giang/qtTut/tslib#

chaunguyen
@giangtran: you can contact me via email: chaunguyen4392@gmail.com
I think you have compiled tslib well. it isn't an error, you should type
make install after make.
After that, you will see tslib folder in /home/tslib