mini2440 touch not worked
-
Hi
I have a strange problem with touch screen on mini2440.
the demo (fluidlauncher in mini2440) does not have problem with touch screen. also ./ts_calibrate run well but my program have problem in touch screen.( i think my program or compiler have error. so i copy the example of the Qt4.6.3 (in qws folder and webkit folder) on my board. they run well but the touch screen not work as the same as my program.====================================================
My history pf touch that they solvedat first I had a problem in my mini2440. this is touch screen that does not work when my app run on it.
these are my output for " printenv"
[root@FriendlyARM bin]# ./ts_calibrate
Segmentation fault[root@FriendlyARM bin]# printenv
TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
USER=root
LD_LIBRARY_PATH=/usr/local/Qt/lib:/usr/local/tslib/lib
TSLIB_TSEVENTTYPE=INPUT
OLDPWD=/usr/local/bin
HOME=/
QTDIR=/usr/local/Qt
TSLIB_FBDEVICE=/dev/fb0
PS1=[\u@\h \W]#
TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
TSLIB_CONSOLEDEVICE=none
LOGNAME=root
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf
SHELL=/bin/sh
QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140
PWD=/usr/local/tslib/bin
QWS_MOUSE_PROTO=tslib:/dev/input/event0
TSLIB_CALIBFILE=/etc/pointercalin this directory : /dev/input just i have two file : enevt0 and mice
in ts.conf : uncomment the first line.
i confused :(
Note: in this way i install my program:
Refrence: http://qtinstall.blogspot.in/
==============================================================
I change my tslib conffile address from
/usr/local/tslib/etc/ts.conf
to
/usr/local/etc/ts.conf
and the ./ts_calibrate application run but show me this error show me like
: this devise is not tochscreen blah blah blah..
so i change
export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
to
TSDEVICE=/dev/input/event0 .
** ./ts_calibrate is work.**
:D but my app touch not work :(
my application and ./fluidlauncher -qws (from /usr/local/Trolltech/QtEmbedded-4.6.3-arm/demos/ embedded/fluidlauncher/) are the same. both of them has touch screen problem :( this is my tslib :github.com/kergoth/tslib============================================================
-
Hi,
Did you set all the necessary environment variables before launching your application ?
-
Hi and thanks for reply,
these are the printenv output:
[root@FriendlyARM /]# printenv
TSLIB_TSDEVICE=/dev/input/event0
USER=root
LD_LIBRARY_PATH=/usr/local/Qt/lib:/usr/local/tslib/lib
TSLIB_TSEVENTTYPE=INPUT
HOME=/
QTDIR=/usr/local/Qt
TSLIB_FBDEVICE=/dev/fb0
PS1=[\u@\h \W]#
TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
TSLIB_CONSOLEDEVICE=none
LOGNAME=root
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
TSLIB_CONFFILE=/usr/local/etc/ts.conf
SHELL=/bin/sh
PWD=/
QWS_MOUSE_PROTO=tslib:/dev/input/mice
TSLIB_CALIBFILE=/etc/pointercalhow can i know which one is wrong?
-
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/dev/input/event0
export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
export TSLIB_TSEVENTTYPE=INPUT
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export LD_LIBRARY_PATH=/usr/local/tslib/libthese are my variable. how to change it to enable my program touch?
-
TSLIB_TSDEVICE looks wrong as well as TSLIB_PLUGINDIR. Did you invert their values ?
-
@SGaist you say right. i change them to these :
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_TSEVENTTYPE=INPUT
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export LD_LIBRARY_PATH=/usr/local/tslib/libmy touch in demo is worked,but my apps and also the other example in qt like ( /opt/qt-everywhere-opensource-src-4.6.3/examples/widgets/calculator) calculator not work when i copy to usb and copy on board. it show the program and run on display but no touch
-
Do you get any error message on the console ?
-
there is no error on screen. i just write my program on Qt creator3.3.1 and build it ( in option of Qt creator part build and run in compiler tab set arm-linux-gcc in Qt version add qmake in Qt4.6.3 directory and in kit add this compiler and qt version. then make a single program for desktop kit and Armkit(that i make it with gcc compiler and ...) then it run in desktop kit without problem. but arm kit cant run on my desktop but the executable file is make. then i copy it to USB and run it on board: ./sample -qws. it shows me my application but the mouse in center and not move by touching display.
really thank for your reply -
Are you running this command from a the same console that shows the application or another one ?
-
no the same one.
first i run my program . it doesn't work. then run ts_calibrate but it works. then run demo in mini2440 but the touch was worked, but when i run the example of the Qt4.6.3 in example folder (/opt/qt....4.6.3/example/...) the touch doesn't work. all of them in one console.
these are my system info:
[root@FriendlyARM /udisk]# cd /dev/input/
[root@FriendlyARM input]# ls
event0 mice[root@FriendlyARM input]# cat event0
7�G7H�7!H7��7&am
p;#65533;��7��7.�after each touch show me characters like these(my touch work)
===============================================
i change this to:
export QWS_MOUSE_PROTO="tslib:/dev/input/event0
IntelliMouse:/dev/input/mice"
but nothing happen.