ts_calibrate issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ts_calibrate issue

2,658 Views
wangvictor
Contributor III

Hi All,

I'm using i.MX6 sabresd for my layer.

And I'm using egalax resist touch so I need to using ts_calibrate to reconfigure my touch xres and yres.

Now I am facing the problem that my xres and yres are opposite.

How to fix this problem?

Thanks in Advanced!

0 Kudos
Reply
6 Replies

2,450 Views
wangvictor
Contributor III

igorpadykov 員工

I've check that hardware is correct.(By using other OS system)

In console touch works perfectly by using ts_test but when I get in to wayland weston it will be wrong.

I think it is the issue of qtwayland.

I don't know what should I set in wayland.

Any suggestion?

Thanks in Advanced!

0 Kudos
Reply

2,450 Views
wangvictor
Contributor III

igorpadykov 員工

Sorry for asking, why is this problem relative to hardware issue?

I thought the X and Y value is correct.

 Thanks in Advanced!

0 Kudos
Reply

2,450 Views
igorpadykov
NXP Employee
NXP Employee

because you said "xres and yres are opposite".

Had you tried to debug it and compare with good board.

Best regards
igor

0 Kudos
Reply

2,450 Views
wangvictor
Contributor III

@igorpadykov

This is what I got when I run ts_calibrate.

I pointed five place and this is the value I got.

Took 2 samples...
Top left : X = 1912 Y = 1825
Took 1 samples...
Top right : X = 140 Y = 1818
Took 3 samples...
Bot right : X = 147 Y = 206
Took 2 samples...
Bot left : X = 1926 Y = 234
Took 1 samples...
Center : X = 1049 Y = 1066
1053.816406 -0.520339 -0.003272
618.019897 0.003143 -0.311976
Calibration constants: 69062912 -34100 -214 40502552 205 -20445 65536

But after I finished calibrate it still got the issue like this.

I click the place where locate at panel's right _top corner -> pointer will go left_down

I click the place where locate at panel's right _down corner-> pointer will go left_top

In the other hand, I tried to using ts_test to draw a line, it works perfectly.

How to fix this problem?

Thanks in Advanced!

0 Kudos
Reply

2,450 Views
igorpadykov
NXP Employee
NXP Employee

Hi Wang

please recheck touch hardware and schematic, to exclude connection issue.

Best regards
igor

0 Kudos
Reply

2,450 Views
igorpadykov
NXP Employee
NXP Employee

Hi Wang

one can look at driver sources an debug it

linux-imx6/egalax_ts.c at boundary-imx_3.0.35_1.1.1 · boundarydevices/linux-imx6 · GitHub 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply