mini2440 touch not worked
-
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.