Touch screen not working on FG07 display

At the moment I am trying to get a touch screen to run:

docker run -e ACCEPT_FSL_EULA=1 -ti --rm --privileged -v /dev:/dev -v /run/udev/:/run/udev/ -v /etc/udev/rules.d:/etc/udev/rules.d torizon/weston-touch-calibrator:$CT_TAG_WESTON_TOUCH_CALIBRATOR > log.txt

The file log.txt is attached to this mail. The weston-touch-calibratotor always fails with “weston-touch-calibrator error: “DPI-1” was not found.”

Elog.txt (9.5 KB)
vtest shows this:

apalis-imx8-06548606:~$ sudo evtest
Password:
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: sc-powerkey
/dev/input/event1: eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142
/dev/input/event2: eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142 UNKNOWN
Select the device event number [0-2]: 1
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0xeef product 0xc002 version 0x111
Input device name: “eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142”
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 0
Min 0
Max 16383
Resolution 108
Event code 1 (ABS_Y)
Value 0
Min 0
Max 16383
Resolution 181
Event code 47 (ABS_MT_SLOT)
Value 0
Min 0
Max 1
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 16383
Resolution 108
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 16383
Resolution 181
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 1630479372.1630479372, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1630479372.1630479372, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 11849
Event: time 1630479372.1630479372, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 12889
Event: time 1630479372.1630479372, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1630479372.1630479372, type 3 (EV_ABS), code 0 (ABS_X), value 11849
Event: time 1630479372.1630479372, type 3 (EV_ABS), code 1 (ABS_Y), value 12889
Event: time 1630479372.1630479372, -------------- SYN_REPORT ------------
Event: time 1630479373.1630479373, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 11861
Event: time 1630479373.1630479373, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 12479
Event: time 1630479373.1630479373, type 3 (EV_ABS), code 0 (ABS_X), value 11861
Event: time 1630479373.1630479373, type 3 (EV_ABS), code 1 (ABS_Y), value 12479
Event: time 1630479373.1630479373, -------------- SYN_REPORT ------------
Event: time 1630479373.1630479373, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1630479373.1630479373, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1630479373.1630479373, -------------- SYN_REPORT ------------

Seems that the touch is working properly but some configuration is missing?

eGalax Inc. eGalaxTouch P80H32 7007
Apalis iMX8qm
Ixora 1.1
Torizon 5.3.1
weston-vivante-2.2.0

Hi @rainer9322 .

Thank you for using the Toradex community.

I see you are using a third-party display. How is this display interfacing with the module? Does the display have a separate cable for the touch interface?

Best Regards
Kevin

Hi,
the display is connected with two cables to the Board. The flat cable is the LVDS display and the 10-wire connector is the touch board. The display is working fine and the touch seems to communicate with the iMX8 too. The touch is detected as:

[06:48:04.402] event1 - eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142: is tagged by udev as: Touchscreen
[06:48:04.402] event1 - eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142: device is a touch device
[06:48:04.410] event2 - eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142 UNKNOWN: is tagged by udev as: Mouse
[06:48:04.411] event2 - eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142 UNKNOWN: device is a pointer
[06:48:04.415] event0 - sc-powerkey: is tagged by udev as: Keyboard
[06:48:04.415] event0 - sc-powerkey: device is a keyboard
[06:48:04.416] Touchscreen - eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142 - /sys/devices/platform/bus@5b000000/5b0e0000.usb/ci_hdrc.1/usb3/3-1/3-1.3/3-1.3:1.0/0003:0EEF:C002.0001/input/input4/event1
[06:48:04.416] libinput: configuring device “eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142”.
[06:48:04.416] input device event1 has no enabled output associated (none named), skipping calibration for now.
[06:48:04.416] libinput: configuring device “eGalax Inc. eGalaxTouch P80H32 7007 vJEO070RNB2 k4.10.142 UNKNOWN”.

It is a capacitive Touch with an USB and I2C interface.

If you call the command evtest in a ssh shell and if you move your finger over the touch panel you can see coordinate-events and up/down events.

I think there is a software configuration missing which forwards these events to weston

Best regards,
Rainer

Hi @rainer9322 ,

as I know you have to give Weston permission to communicate with the devices.

Did you try to use full Weston instead of the Weston calibrator?

You might have a look here.

Run Weston Container

Best Regards
Kevin