Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: AT91SAM9263-EK touch screen problems - Calibration
PostPosted: Tue Mar 09, 2010 3:15 pm 
Offline

Joined: Mon Jul 31, 2006 10:07 am
Posts: 4
Hi all,
I'm using an AT91SAM9263-EK with buildroot-2009.11.
I'm having problems with the touch screen on the board. Having tried a directFb demos i realised that the touch screen calibration is out/and or X,Y Swapped.

After much banging my head off the desk i've mangaed to get the tc_calibrate to run but no mouse movement.
It's configured with the follow parameters:
/etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear xyswap

I've just added the xyswap but makes no difference as cursor doesnt move

EXPORTS:
TSLIB_CONSOLEDEVICE=none
TSLIB_FBDEVICE=/dev/fb0
TSLIB_TSDEVICE=/dev/input/mouse0
TSLIB_CALIBFILE=/etc/pointercal
TSLIB_CONFFILE=/etc/ts.conf
TSLIB_PLUGINDIR=/usr/lib/ts

Can anyone shed any light on this please

Many thanks

Barry


Top
 Profile  
 
 Post subject: Re: AT91SAM9263-EK touch screen problems - Calibration
PostPosted: Wed Mar 17, 2010 11:59 am 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
Using a more recent version of the linux sistem based on KaeilOS/OE (or Angstrom if you prefer) which uses the latest xserver-xorg engine, will offer you a smoothly working system complete with the new xinput-calibrator.
http://www.kaeilos.com/download

_________________
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com


Top
 Profile  
 
 Post subject: Re: AT91SAM9263-EK touch screen problems - Calibration
PostPosted: Tue Dec 13, 2011 8:54 am 
Offline

Joined: Tue Dec 13, 2011 7:55 am
Posts: 2
Hi All,

Even I am facing the same problem, can anyone help in this problem. below is the explanation of the problem.

I am using Linux 2.6.17 kernel with ELO serial touchscreen enabled, my application is based on gtk+2.12.12 directfb, where in we need to use touchscreen as the input device.

Problem is when i execute my gtk directfb application, I am able to move the cursor and trigger events through touchscreen as input with swapped y axis. I mean the cursor of the y axis moves in opposite direction of the movement of the finger touch. To make to it work I had done the following settings.


In /etc/ts.conf
module_raw arctic2
#module pthres pmin=1
#module variance delta=30
#module dejitter delta=100

TSLIB_CONSOLEDEVICE=none
TSLIB_FBDEVICE=/dev/fb0
TSLIB_TSDEVICE=/dev/input/elo-ser
TSLIB_CALIBFILE=/etc/pointercal
TSLIB_CONFFILE=/etc/ts.conf
TSLIB_PLUGINDIR=/usr/lib/ts


We have downloaded elo drivers for linux(SW601327_Elo_Linux_Serial_Driver_v3.3.0_i686 and installed them on out target system and executed the following commands to enable the elo-ser device in /dev/input

#cd /etc/opt/elo-ser/setup/
#./install.sh

#/etc/opt/elo-ser/setup/loadelo
#/etc/opt/elo-ser/eloser ttyS1

I have also installed gtk+2.12.12 directfb with ELO touchscreen enabled.

I face problem when i execute my gtk directfb application, I am able to move the cursor and trigger events through touchscreen as input with swapped y axis. I mean the cursor of the y axis moves in opposite direction of the movement of the finger touch.

Please do the needful help.

Thanks and Regards,
Priya


Top
 Profile  
 
 Post subject: Re: AT91SAM9263-EK touch screen problems - Calibration
PostPosted: Tue Dec 13, 2011 10:35 am 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
Priya,
that is the typical behaviour of a not calibrated touchscreen. You have to calibrate it.

_________________
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com


Top
 Profile  
 
 Post subject: Re: AT91SAM9263-EK touch screen problems - Calibration
PostPosted: Wed Dec 14, 2011 3:41 pm 
Offline

Joined: Tue Dec 13, 2011 7:55 am
Posts: 2
Hi Koan,

Can you please let me know how to calibrate, bcoz when I perform ./ts_calibrate, system throws and error saying "Resource temporarily unavailable"

Can you please elaborate on the steps that need to be done for calibration.

FYI, there is no pointercal file generated in /etc folder, can you please let me know what could be the problem and also the steps to follow for the solution.

Thanks and Regards,
Priya


Top
 Profile  
 
 Post subject: Re: AT91SAM9263-EK touch screen problems - Calibration
PostPosted: Fri Feb 10, 2012 2:47 pm 
Offline

Joined: Fri Jan 21, 2011 6:39 am
Posts: 10
Hi priya

Are you sure about kernel headers version which you used to compile your filesystem(Maybe buildroot/oe/ptx) and your kernel version same ?

And another thing, test yout touchscreen using cat command like cat /dev/input/eventX
X - your ts event id


Regards
Vignesh Rajendran


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: