Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: akapo on August 27, 2013, 03:39:04 AM

Title: Touch screen calibration method
Post by: akapo on August 27, 2013, 03:39:04 AM
Hi Sir/Madam.

I have a A13-LCD7-TS with A20-OLinuXino-MICRO-4GB.

A20 Debian 4GB SD-card image release-2 support the touch screen and it work well.

but touch point is not exact match to screen mouse pointer.

right side of the TS is no problem, but left side of the TS is not match 10px~30px

How can i touch screen calibration?
Title: Re: Touch screen calibration method
Post by: Lurch on August 27, 2013, 10:30:16 AM
run ts_calibrate
Title: Re: Touch screen calibration method
Post by: tlhingan on August 27, 2013, 06:19:03 PM
I find the touchscreen is more accurate when I use the corner of my fingernail rather than my finger itself. I should probably get a bigger screen or smaller fingers.
Title: Re: Touch screen calibration method
Post by: akapo on August 28, 2013, 04:26:54 AM
ts_calibarate is not work on A20
when i run ts_calibrate ...
(http://dimigo.org/xe/IMG_20130827_234604.jpg)

when i run ts_test
(http://dimigo.org/xe/IMG_20130827_234718.jpg)

what mean 'ABS and KEY event' in error message?
is there a way   correct this error?
Title: Re: Touch screen calibration method
Post by: tlhingan on August 28, 2013, 11:28:18 PM
It sounds like you may have skipped a step in the installation procedure.
Look here (https://www.olimex.com/forum/index.php?topic=1743.msg7877#msg7877), and make sure you uncomment the required lines in the required files.
Post back if you need more details or if this doesn't work.
Title: Re: Touch screen calibration method
Post by: junetec on August 31, 2013, 09:32:25 PM
I have the same issue with A20+10TSLCD.

ts_calibrate and ts_test don't work.

I mmake the simbolik links that are sugested in the last post but nothing change.
Title: Re: Touch screen calibration method
Post by: mihu on September 02, 2013, 12:54:34 PM
Try to define the required environment variables (export TSLIB_CONSOLEDEVICE=none and so on) in the same terminal (before) you run ts_calibrate.
Title: Re: Touch screen calibration method
Post by: tlhingan on September 02, 2013, 06:09:22 PM
Quote from: junetec on August 31, 2013, 09:32:25 PM
I have the same issue with A20+10TSLCD.

ts_calibrate and ts_test don't work.

I mmake the simbolik links that are sugested in the last post but nothing change.
I'm not aware of any symbolic links to setup the LCD and touchscreen.
Did you follow the entire procedure from the link in my previous post?
Title: Re: Touch screen calibration method
Post by: junetec on September 04, 2013, 01:16:58 AM
Quote from: tlhingan on September 02, 2013, 06:09:22 PM
Quote from: junetec on August 31, 2013, 09:32:25 PM
I have the same issue with A20+10TSLCD.

ts_calibrate and ts_test don't work.

I mmake the simbolik links that are sugested in the last post but nothing change.
I'm not aware of any symbolic links to setup the LCD and touchscreen.
Did you follow the entire procedure from the link in my previous post?

I work with release2 and only make the final orders that you Woodward sugest(simbolyc links), but don't work.

Then I do export TSLIB_CONSOLEDEVICE=none and ts_calibrate runs and give me some data.

I suposse that data will be puit in pointercal fila. I put it and the touch calibration it's now totally grown.

But now I can't run ts_calibrate another time.
Title: Re: Touch screen calibration method
Post by: mihu on September 04, 2013, 02:20:04 PM
You need to set all environment variables, see the link tlhingan gave you.


export TSLIB_TSEVENTTYPE=raw
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event# /* manually replace # by input number discovered by dmesg command */
export TSLIB_CALIBFILE=/usr/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts


Make sure that the event number and directories in these environment variables are correct.
Title: Re: Touch screen calibration method
Post by: tlhingan on September 06, 2013, 06:12:28 PM
Quote from: tlhingan on August 28, 2013, 11:28:18 PM
Look here (https://www.olimex.com/forum/index.php?topic=1743.msg7877#msg7877)
Here it is again.
Title: Re: Touch screen calibration method
Post by: junetec on September 07, 2013, 09:44:51 PM
Thanks for the info.

I just try now and the ts_test sand ts_calibrate works, but now the touch screeen looks like donk response and always give the same x y numbers and the pointer it's stuck in the bottom right corner.
It looks like the ts has a problem.

Monday I will try again with another ts panel to know exactly what's happend.

Regards,

Enric

Quote from: tlhingan on September 06, 2013, 06:12:28 PM
Quote from: tlhingan on August 28, 2013, 11:28:18 PM
Look here (https://www.olimex.com/forum/index.php?topic=1743.msg7877#msg7877)
Here it is again.
Title: Re: Touch screen calibration method
Post by: junetec on September 09, 2013, 09:21:02 PM
Finally I find a broken line in the touch screen flat cable.
I just try with a 7" LCD and works fine.

Thanks to all for the info.