hi ,all i want config tslib for tiny6410 follow : export TSLIB_TSEVENTTYPE=INPUT export TSLIB_ROOT=/opt/tslib export TSLIB_TSDEVICE=/dev/input/event0 export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$LD_LIBRARY_PATH export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts export TSLIB_CONSOLEDEVICE=none export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf export POINTERCAL_FILE=/etc/pointercal export TSLIB_CALIBFILE=/etc/pointercal export QWS_MOUSE_PROTO=TSLIB:/dev/input/event0 when i run ./ts_test in /opt/tslib/bin it display" selected device is not a touchscreen I understand" when i call command "cat /dev/input/event0" i do not see data display lcd of tiny6410 i is diffirent compare mini2440 please help me thank
problem touchscreen tiny6410
On my Mini6410 the touchscreen outside qtopia worked with the following in /etc/init.d/rcS for a standalone qt-app: QWS_MOUSE_PROTO=TSLIB:/dev/input/ts-if TSLIB_CALIBFILE=/etc/pointercal TSLIB_CONFFILE=/etc/ts.conf TSLIB_FBDEVICE=/dev/fb0 TSLIB_PLUGINDIR=/usr/lib/ts TSLIB_TSDEVICE=/dev/touchscreen-1wire TSLIB_TSEVENTTYPE=INPUT
thank for help me i try to config as above but when i run ./helloqt -qws display of tiny6410 has show but i couldn't touch to control you can show me how to do. thank again one time
manh,have your qt builded with ts_lib support? -qt-mouse-tslib option. do you make ts_calibrate before run?
@manh: Did you run the ./helloqt -qws in the Qtopia? I tried the same and get the behavior seen in this video: http://www.youtube.com/watch?v=pDsquszYev0&context=C44ffd4cADvjVQa1P... (see thread: http://www.friendlyarm.net/forum/topic/4064) But without Qtopia, the same app work as standalone application. To do this, you must comment or delete the entry to start qtopia in /etc/init.d/rcS and run your app instead. Example: /path/to/app/myApp -qws & That works for me perfect. I don't want a desktop environment or something. If you need the qtopia, I think you must compile your app with the same libs as qtopia on the mini is compiled. So I think the best way is in that case, that you recompile qtopia (it's very outdate) or qt-extended for the Mini to run your application in this environment. Hope this helps a little? :-) @m44miri: Is "can not open ts_open" the exact error message? Nothing else?
thank!
1. i setup arm-linux-gcc
2 .i follow to hanlde :
dowload Qt_SDK_Lin32_offline_v1_2_en.run on web nokia.con run
"./Qt_SDK_Lin32_offline_v1_2_en.run" after that i have qt creator
3 .complite tslib :touch library
$mkdir tslib
$cd tslib
$apt-get source tslib
$cd tslib-11.0
$./configure --prefix=opt/tslib --host=arm-none-linux-gnueabi
$gedit config.h to edit #define malloc rpl_malloc->//#define malloc
rpl_malloc
$su
$password
#make
#make install
4. setup qt everywhere
dow:qt-everywhere-opensource-src-4.8.1.tar.gz
$tar -vxf qt-everywhere-opensource-src-4.8.1.tar.gz
$cd qt-everywhere-opensource-src-4.8.1/mkspecs/qws/linux-arm-g++
$vi qmake.conf
#
# qmake configuration for building with arm-linux-g++ # 
include(../../common/g++.conf) 
include(../../common/linux.conf)
include(../../common/qws.conf) 
# modifications to g++.conf 
QMAKE_CC  = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-gcc 
QMAKE_CXX  = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-g++ 
QMAKE_LINK  = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-g++ 
QMAKE_LINK_SHLIB = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-g++ 
# modifications to qmake.conf 
QMAKE_AR  = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-ar cqs 
QMAKE_OBJCOPY  = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-objcopy 
QMAKE_STRIP  = /opt/toolschain/4.4.3/bin/arm-none-linux-gnueabi-strip 
QMAKE_INCDIR  += /opt/tslib/include 
QMAKE_LIBDIR  += /opt/tslib/lib 
load(qt_config)
$cd /qt-everywhere-opensource-src-4.8.1
$ ./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /opt/qte
-qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups
-no-largefile -optimized-qmake -no-openssl -nomake tools -qt-sql-sqlite
-nomake demos -nomake examples -no-multimedia -no-javascript-jit
$su 
$password
#make
#make install
5 .copy 3 file :
libQtCore.so.4
libQtGui.so.4
libQtNetword.so.4
from opt/qte/tslib
to kit tiny6410 in folder :/opt/qte/lib
the same time copy fonts from pc :opt/qte/tslib to  kit tiny6410
/opt/qte/lib
copy tslib from pc /opt/tslib to kit tiny 6410  :/opt
this do on kit:
to prevent competitive betwin qtopia and myapp
#vi /etc/init.d/rcS  edit /bin/qtopia -> #/bin/qtopia
#vi /opt/tslib/etc/ts.conf edit:# module_raw input->module_raw input
add envriment variable 
# vi /etc/profile to add line:
{
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_ROOT=/opt/tslib
export TSLIB_TSDEVICE=/dev/touchscreen-1wire
export LD_LIBRARY_PATH=$TSLIB_ROOT/lib:$LD_LIBRARY_PATH
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export POINTERCAL_FILE=/etc/pointercal
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_MOUSE_PROTO=TSLIB:/dev/input/event0
}
save
-dowload one-wire-ts-input-src-20111026.tar.gz from web
:ftp://friendlyarm.net/src/
from pc :
$tar -vxf one-wire-ts-input-src-20111026.tar.gz
$ cd one-wire-ts-input-src-20111026
$make
after that copy one-wire-ts-input.so to kit tiny6410 on folder :/usr/lib/ts
#vi /etc/ts.conf edit first line: module_raw one-wire-ts-input
#save and reboot
#cd /opt/tslib/bin
#./ts_test
nothing error 
has display on lcd of tiny6410 but i don't touch to control it .
how can I made it working?
  holger i see you behavior that has competitive between qtopia and your app so that you can change #vi /etc/init.d/rcS edit /bin/qtopia -> #/bin/qtopia what kit do you do ?tiny 6410 or other can you share me how do i do to touchscreen working cheer!
i config as above this is result: http://www.youtube.com/watch?v=rz57KcXKTRA this is helloqt i push to kit tiny6410 http://www.mediafire.com/?1vw7v1joqg218ek touchscreen do not working ? what problem when i config ? thank for your help
I run a Mini6410 and my qt-app is working:-) I never used the one-wire-ts-input-src-20111026.tar.gz or other. My /etc/ts.conf is: module_raw friendlyarm-ts-input module pthres pmin=1 module variance delta=30 module dejitter delta=10000 module linear And the exorts in my /etc/init.d/rcS are described above in this thread. Have you tried the QWS_MOUSE_PROTO=TSLIB:/dev/input/ts-if ? I also have the following in this file but not shure if the nessesary (your app is working, so the libs are found): LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.8.1-arm/lib:/usr/local/lib: QPEDIR=/usr/local/Trolltech/QtEmbedded-4.8.1-arm QTDIR=/usr/local/Trolltech/QtEmbedded-4.8.1-arm I think you should test with the QWS_MOUSE_PROTO=TSLIB:/dev/input/ts-if or play with all combinations of QWS_MOUSE_PROTO, TSLIB_TSDEVICE and check all filenames and pathes if the really correct. On my mini no path was like in the howtows:-) (certainly, I have all variables exported:-) : export PATH runlevel prevlevel LD_LIBRARY_PATH QPEDIR QTDIR QWS_MOUSE_PROTO TSLIB_CALIBFILE TSLIB_CONFFILE TSLIB_FBDEVICE TSLIB_PLUGINDIR TSLIB_TSDEVICE TSLIB_TSEVENTTYPE ) You don't need to restart your mini each time you changed an export. You can do this at the serial console and start your app with ./helloqt -qws > /dev/tty1 If is not working ctrl-c ends the app, or if is in background kill <pid>. This safes lots of time:-)
Can you get me a link for complete training for touch screen calibration in the Debian squeeze ? i have need for this.
i do as above, but i change something. you do follow me as above. if you dont do this you can ask me , if i know i will aswer you. cheer
Dear holger and manh ! i do as above, but my touch screen still not working. please help me. i don't know where wrong
dear phuc, i have same problem you. Did you solved your problem? if you solved, give me your solve. i tried /dev/touchscreen-1wire, /dev/touchscreen, /dev/input/event0, /dev/input/event1, /dev/input/ts-if for qws_mouse_proto but it doesn't work. i tried cat command, then it works only /dev/touchscreen-1wire with settings. But standalone apps doesn't work the settings.
cat ts.conf #module_raw friendlyarm-ts-input # Uncomment if you wish to use the linux input layer event interface module_raw one-wire-ts-input # Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d # module_raw collie # Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860 # module_raw corgi # Uncomment if you're using a device with a UCB1200/1300/1400 TS interface # module_raw ucb1x00 # Uncomment if you're using an HP iPaq h3600 or similar # module_raw h3600 # Uncomment if you're using a Hitachi Webpad # module_raw mk712 # Uncomment if you're using an IBM Arctic II # module_raw arctic2 module pthres pmin=1 module variance delta=30 module dejitter delta=100 module linear ./ts_calibrate Couldnt load module one-wire-ts-input No raw modules loaded. while use friendly_ts_input not show coursr

