This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: touch screen : ft5x06

Part Number: AM5728

Tool/software: Linux

Hi,

I am using ft5x06 touch, I have integrated the edt,ft5x06 driver and i have got the touch interrupts.

I have used the ts_calibrate and ts_test applications, those are pretty fine according to me.

Now, I have tried with the touch with qt applications, Got few error as follows,

root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# ./touchinteraction -platform eglfs
failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
loaded module : gbm_pvr.so
found valid GBM backend : gbm_pvr.so
No modes available for output "HDMI1"

^Croot@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction#

How to resolve those errors ?

Please suggest QT based touch application like widgets provided in EVM design.

  • Hello,

    What is the PSDK version that you are using here?
    I have tested this demo on my side and it is working fine. Here are the results:
    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# /etc/init.d/weston stop
    Stopping Weston
    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# ./touchinteraction -platform eglfs
    Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).


    If you do not want to stop weston you could run it this way:


    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# ./touchinteraction
    Using Wayland-EGL
    wlpvr: PVR Services Initialised
    Using the 'xdg-shell-v5' shell integration
    ...



    Here is the link to our Graphics guide:
    software-dl.ti.com/.../Foundational_Components_Graphics.html


    BR
    Margarita

  • Hi Margarita,

    Thanks for the reply.

    I m using PSDK 04.02.00.09 version.

    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# /etc/init.d/weston stop

    -sh: /etc/init.d/weston: No such file or directory

    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction#

    I cannot run without mentioning the platform.

    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# ./touchinteraction
    Failed to create display (No such file or directory)
    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction#

    While running with the -platform eglfs, I m getting the below mentioned screen. I can able to get into the each menu.

    But after that the functionality is not proper.

    May i know the supporting packages required to run the application ?

  • Hello,

    Are you able to enter, let say in "Multipoint flames"?

    BR
    Margarita

  • Yes I can able to enter inside.

    But after that i cannot exit from that window.

  • Hello,

    I tried the exit button and it is working. Could you try on the latest 5.x release?

    BR
    Margarita
  • Hello,

    I have tested this on PSDK5.02

    ./touchinteractioon -platform eglfs &
    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    root@am57xx-evm:/usr/share/qt5/examples/quick/touchinteraction# evtest
    No device specified, trying to scan all of /dev/input/event*
    Available devices:
    /dev/input/event0: gpio_keys
    /dev/input/event1: pixcir_tangoc
    Select the device event number [0-1]: 1
    Input driver version is 1.0.1
    Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
    Input device name: "pixcir_tangoc"
    Supported events:
    Event type 0 (EV_SYN)
    Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
    Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
    Value 58
    Min 0
    Max 1023
    Event code 1 (ABS_Y)
    Value 513
    Min 0
    Max 599
    Event code 47 (ABS_MT_SLOT)
    Value 0
    Min 0
    Max 4
    Event code 53 (ABS_MT_POSITION_X)
    Value 0
    Min 0
    Max 1023
    Event code 54 (ABS_MT_POSITION_Y)
    Value 0
    Min 0
    Max 599
    Event code 57 (ABS_MT_TRACKING_ID)
    Value 0
    Min 0
    Max 65535
    Properties:
    Property type 1 (INPUT_PROP_DIRECT)
    Testing ... (interrupt to exit)
    Event: time 1544932406.717243, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 36
    Event: time 1544932406.717243, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 321
    Event: time 1544932406.717243, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 59
    Event: time 1544932406.717243, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    Event: time 1544932406.717243, type 3 (EV_ABS), code 0 (ABS_X), value 321
    Event: time 1544932406.717243, type 3 (EV_ABS), code 1 (ABS_Y), value 59
    Event: time 1544932406.717243, -------------- SYN_REPORT ------------
    Event: time 1544932406.833463, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
    Event: time 1544932406.833463, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    Event: time 1544932406.833463, -------------- SYN_REPORT ------------
    libpng warning: iCCP: profile 'ICC Profile': 1000000h: invalid rendering intent
    Event: time 1544932409.886745, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 37
    Event: time 1544932409.886745, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 91
    Event: time 1544932409.886745, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 525
    Event: time 1544932409.886745, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    Event: time 1544932409.886745, type 3 (EV_ABS), code 0 (ABS_X), value 91
    Event: time 1544932409.886745, type 3 (EV_ABS), code 1 (ABS_Y), value 525
    Event: time 1544932409.886745, -------------- SYN_REPORT ------------
    Event: time 1544932409.923482, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 75
    Event: time 1544932409.923482, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 528
    Event: time 1544932409.923482, type 3 (EV_ABS), code 0 (ABS_X), value 75
    Event: time 1544932409.923482, type 3 (EV_ABS), code 1 (ABS_Y), value 528
    Event: time 1544932409.923482, -------------- SYN_REPORT ------------
    Event: time 1544932409.963453, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 72
    Event: time 1544932409.963453, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 529
    Event: time 1544932409.963453, type 3 (EV_ABS), code 0 (ABS_X), value 72
    Event: time 1544932409.963453, type 3 (EV_ABS), code 1 (ABS_Y), value 529
    Event: time 1544932409.963453, -------------- SYN_REPORT ------------
    Event: time 1544932410.003460, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 77
    Event: time 1544932410.003460, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 526
    Event: time 1544932410.003460, type 3 (EV_ABS), code 0 (ABS_X), value 77
    Event: time 1544932410.003460, type 3 (EV_ABS), code 1 (ABS_Y), value 526
    Event: time 1544932410.003460, -------------- SYN_REPORT ------------
    Event: time 1544932410.043449, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
    Event: time 1544932410.043449, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    Event: time 1544932410.043449, -------------- SYN_REPORT ------------

    I have ran evtest on my side. The above is the result when I select first option and then press exit.

    Here is our ". How to Recalibrate the Touchscreen" guide. Please notice there are Non-Weston based Graphic System and Weston based Graphic System.

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/How_to_Guides_Target.html
    Hope this helps.

    BR
    Margarita