AnsweredAssumed Answered

imx6ull add capacitance touch screen

Question asked by luke li on Jan 9, 2018
Latest reply on Jan 29, 2018 by Rita Wang

Dear Sir:

            we are using imx6ull for our projects. and face a problem about touch panel.

 

            we have ported the source for a cap touch screen. and I can even get the x/y report value with command "hexdump /dev/input/event1" after click the screen.   my lcd is 320X480.

if click left top, it will print

...

0001f10 fc4a 59f6 59e6 0006 0003 0035 0002 0000

0001f20 fc4a 59f6 59e6 0006 0003 0036 002b 0000

...

 

if click right bottom, it will print

...

0001f90 fcd3 59f6 b731 0001 0003 0035 0115 0000

0001fa0 fcd3 59f6 b731 0001 0003 0036 01df 0000

...

 

here is the log when I run evtest:

evtest /dev/input/event1

Input driver version is 1.0.1

Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0

Input device name: "fts_ts"

Supported events:

  Event type 0 (EV_SYN)

  Event type 1 (EV_KEY)

    Event code 330 (BTN_TOUCH)

  Event type 3 (EV_ABS)

    Event code 48 (ABS_MT_TOUCH_MAJOR)

      Value      0

      Min        0

      Max      255

    Event code 53 (ABS_MT_POSITION_X)

      Value      0

      Min        0

      Max      320

    Event code 54 (ABS_MT_POSITION_Y)

      Value      0

      Min        0

      Max      480

    Event code 57 (ABS_MT_TRACKING_ID)

      Value      0

      Min        0

      Max       15

    Event code 58 (ABS_MT_PRESSURE)

      Value      0

      Min        0

      Max      255

Properties:

  Property type 1 (INPUT_PROP_DIRECT)

Testing ... (interrupt to exit)

[FTS][A]P0(301, 2)[p:63,tm:9] DOWN!

Event: time 1509371557.126285, type 3 (EV_ABS), code 57 (ABS_MT_TR[FTS][A]P0(301, 2)[p:63,tm:9] DOWN!

ACKING_ID), value 0

Event: time 1509371557.126285, type 3 (EV_ABS), code 58 (ABS_MT_PR[FTS][A]P0(302, 2)[p:63,tm:9] DOWN!

ESSURE), value 63

Event: time 1509371557.126285, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.1[FTS][A]P0(302, 2)[p:63,tm:9] DOWN!

26285, -------------- SYN_REPORT ------------

Event: time 150937[FTS][A]Points All Up!

1557.129618, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1

Event: time 1509371557.129618, -------------- SYN_REPORT ------------

Event: time 1509371557.139469, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0

Event: time 1509371557.139469, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 63

Event: time 1509371557.139469, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.139469, -------------- SYN_REPORT ------------

Event: time 1509371557.154263, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0

Event: time 1509371557.154263, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 63

Event: time 1509371557.154263, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.154263, -------------- SYN_REPORT ------------

Event: time 1509371557.170482, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0

Event: time 1509371557.170482, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 63

Event: time 1509371557.170482, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 9

Event: time 1509371557.170482, -------------- SYN_REPORT ------------

Event: time 1509371557.184227, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0

Event: time 1509371557.184227, ++++++++++++++ SYN_MT_REPORT ++++++++++++

Event: time 1509371557.184227, -------------- SYN_REPORT ------------

 

 

 

but the UI do not response the event.

 

 

                 do you have any idea about this problem?             

Outcomes