Touch not working when running my app and ts_calibrate error

Abhi11
Hi Guys,

I am using mini2440 board and linux as my working platform.I have created
GUI using Qt creator and I want to run my GUI (applicatian)on mini2440.But
when I am running my application touch is not working
.ts_calibrate is throwing error.
--
xres = 320, yres = 240
selected device is not a touchscreen I understand
--

I have followed this blog
http://mini2440vietnam.blogspot.in/2011/04/upgrade-qt462-in-mini2440.html

In short I have done following steps-

1.)Cross compiled Qt4.8.5

2.)Cross compiled my GUI code using Qt build generated in first step.

3.)Copied my GUI binary in /bin directory.

4.)Set the environment variable.
------
export LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.8.5-arm/lib
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.8.5-arm              
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
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/lib/ts    
export TSLIB_TSDEVICE=/dev/touchscreen-1wire     
export TSLIB_TSEVENTTYPE=INPUT          
export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140
------

5.)Commented out the last three lines in rcs file i.e
-----
#/bin/qtopia &
#echo "                                  " > /dev/tty1
#echo "Starting Qtopia, please waiting..." > /dev/tty1
------
and called by binary like this
-----
./bin/TouchscreenGUI -qws
-----
This will make my gui running on mini2440.But touch screen is not
working.When I run ts_calibrate it is showing this error.
---
xres = 320, yres = 240
selected device is not a touchscreen I understand
----
But when run qtopia by uncommenting it in rcs file,touch screen is working
fine and ts_calibrate is also successful.Anyone have some idea on this.

Regards,
Abhi

davef
Did you previously mention which touchscreen you are using?

davef
> export TSLIB_TSDEVICE=/dev/touchscreen-1wire

OK, looks like you know you have a 1-wire touchscreen.  Just for my
interest where did you get this environment variable from?

davef
Are you aware of this site?

http://blog.gmane.org/gmane.comp.embedded.ptxdist.oselas.community

Try dropping 1wire touchscreen in and other keywords.

Abhi11
Hi davef,

I got something my lcd is 4-wire resistive lcd i.e the default one that
comes with min2440 board.

And my lcd driver is s3c2410_ts.c.

I am thinking that I have some issue with my environment variable.
Can you help me on this

davef
There is a number on the back of the LCD.  Now is sounds like you have the
older "more standard" touchscreen.  So, I do NOT understand why you are
doing:

export TSLIB_TSDEVICE=/dev/touchscreen-1wire

What happened when you when you put the environment variables quoted in the
tutorial EXACTLY into the /etc/profile file?

Abhi11
Hi davef

There's problem with the mentioned environment variable in the
tutorial/blog.

export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts 

In these variable usr/local/tslib/lib/ts this is not an directory or
correct path.

davef
I only see a comment about TSLIB_TSDEVICE in the tutorial

Comment out 

#export TSLIB_PLUGINDIR

You need to test all the listed devices in /dev or /dev/input by doing the
following:

  cd /dev or cd /dev/input
  ls
and take one, for example

  cat event0

and then move the mouse or hit the keyboard or touch the screen and see
what happens.

When you find out which is your touchscreen change that line accordingly.