How to use tslib calibration at i2c touch ft5x06 in Android 5.0

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use tslib calibration at i2c touch ft5x06 in Android 5.0

Jump to solution
4,500 Views
warrenjan
Contributor II

Hi all

my build environment

android 5.0

touch ic: ft5x06

imx6q.

i use boundary device  ft5x06 driver (linux-imx6/ft5x06_ts.c at boundary-imx_3.14.28_1.0.0_ga · boundarydevices/linux-imx6 · GitHub)) , and i  modify the dts just like

        ft5x06@38 {

         compatible = "ft5x06,ft5x06-touch";

         reg = <0x38>;

         interrupt-parent = <&gpio3>;

         interrupts = <17 2>;

         wakeup-gpios = <&gpio3 17 1>;

         };

Then the touch can work , but still some issue (the x,y position didn't mach to screen)

Any body can help me !!

like the movie

https://www.dropbox.com/s/fqja11fwlufb8s9/%E6%AA%94%E6%A1%88%202016-3-4%20%E4%B8%8A%E5%8D%8811%2049%...

Labels (2)
1 Solution
1,300 Views
gary_bisson
Senior Contributor III

Hi Warren,

You have two choices to specify your screen resolution if the firmware doesn't report it properly:

- Give the resolution as a kernel boot argument:

ft5x06_ts.screenres=800,480

- Integrate our last patch to the driver which reads the resolution of fb0:

ft5x06_ts: set max_x/y to fb size if no parameter is provided · boundarydevices/linux-imx6@dfbfbdf ·...

Regards,

Gary

View solution in original post

0 Kudos
10 Replies
1,300 Views
varunjeevangoud
Contributor I

hey i have used this driver ..probing is not successful and i2c read and write not happening,how you solved this issue . I'm using 4.4.3 Android.

0 Kudos
1,301 Views
gary_bisson
Senior Contributor III

Hi Warren,

You have two choices to specify your screen resolution if the firmware doesn't report it properly:

- Give the resolution as a kernel boot argument:

ft5x06_ts.screenres=800,480

- Integrate our last patch to the driver which reads the resolution of fb0:

ft5x06_ts: set max_x/y to fb size if no parameter is provided · boundarydevices/linux-imx6@dfbfbdf ·...

Regards,

Gary

0 Kudos
1,300 Views
warrenjan
Contributor II

HI Gary

the resolution is correct (1024 *600).

It's the  same situation.when i leave the screen and move to  other position ,sometimes the circle didn't move with my finger.

like the movie.

Dropbox - 檔案 2016-3-15 上午1 33 43.mov

HI igor

the same problem with Tom ,The apk can't open!

BR

Warren

0 Kudos
1,300 Views
gary_bisson
Senior Contributor III

Hi Warren,

In that case it seems our driver is not meant for this version of the controller you are using. Have you tried using the mainline edt-ft5x06 driver instead?

kernel/git/torvalds/linux.git - Linux kernel source tree

Regards,

Gary

0 Kudos
1,300 Views
warrenjan
Contributor II

HI  Bisson

The driver is correct for my controller. (Ft5606) it's for ft5x06_ts.c(boundary device source code)

i set Debug mode to read messages, I find Some strange errors. 

when my finger touch the screen and  leave the screen , the printHex message show below.

0000018260012affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 1, points[0].x = 608, points[0].y = 298

0000004260012affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 0, points[0].x = 608, points[0].y = 298

00000102fa0148ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 1, points[0].x = 762, points[0].y = 328

00000182f90148ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 1, points[0].x = 761, points[0].y = 328

00000182f90148ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 1, points[0].x = 761, points[0].y = 328

00000182f90148ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 1, points[0].x = 761, points[0].y = 328

00000042f90148ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff....

ft5x06: buttons = 0, points[0].x = -2131943424, points[0].y = 2

button=1 , meant  touch screen.

button=0 , meant  leave screen.

the Status  "buttons = 0, points[0].x = -2131943424, points[0].y = 2" will cause my touch circle didn't sync with my moving finger .

from 00/00/00/42/f9/01/48  ---> transfer to points[i].x / points[i].y  is wrong !!!

Did you have any idea ???

BR

Warren

0 Kudos
1,300 Views
pengxingwei
Contributor III

Hi, I come cross the same peoblem as you,my touch circle didn't sync with my moving finger .my touch circle didn't sync with my moving finger .How did you solve it at last? Thanks

0 Kudos
1,300 Views
warrenjan
Contributor II

HI  peng 

i used the other solution instead of  Ft5606 .

0 Kudos
1,300 Views
pengxingwei
Contributor III

Hi,

    Thanks youn ! my problem had solved!

0 Kudos
1,300 Views
chaotom
Contributor I

Hi ,I have the same problem, but when I install the apk on android 5.0 by igor. The apk can't open .

Like this video, please help me,Thank you!!

VIDEO0028.mp4 - Google Drive

0 Kudos
1,300 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi warren

seems hardware works ok, then one can try native android app like:

http://appslollipop.com/Apps_Touch-sensitivity-calibration_Lollipop.html

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------