USB HID touchscreen issue

Hi,

We have a touchscreen connected to imx6 board. The touchscreen provides USB HID driver for touch input. The touchscreen is recognized by the Linux (Boot to Qt) as mouse1 event2.

However, Qt app doesn’t recognize the touch event. I’ve configured appcontroller.conf to use /dev/input/event2

Please help

root@b2qt-apalis-imx6:/dev/input# cat /etc/appcontroller.conf 
env=FB_MULTI_BUFFER=2
env=QT_QPA_EGLFS_FORCEVSYNC=1
env=QML2_IMPORT_PATH=/data/user/qt/qmlplugins
env=QT_IM_MODULE=qtvirtualkeyboard
env=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event2
env=QT_GSTREAMER_CAMERABIN_VIDEOSRC=mxc_v4l2=imxv4l2videosrc,v4l2src
env=QT_QUICK_CONTROLS_1_STYLE=Flat
env=XDG_RUNTIME_DIR=/run/user/0
env=QTWEBENGINE_DISABLE_SANDBOX=1
env=TSLIB_TSDEVICE=/dev/input/event2
base=linux
platform=apalis-imx6

root@b2qt-apalis-imx6:/dev/input# cat /proc/bus/input/devices 
I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="stmpe-ts"
P: Phys=stmpe-ts/input0
S: Sysfs=/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-2/2-0041/stmpe-ts/input/input0
U: Uniq=
H: Handlers=mouse0 event0 
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/soc0/gpio-keys/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: PROP=0
B: EV=3
B: KEY=8000 0 0 0 0

I: Bus=0003 Vendor=0461 Product=0022 Version=0100
N: Name="NHD Newhaven Display "
P: Phys=usb-ci_hdrc.0-1/input0
S: Sysfs=/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1:1.0/0003:0461:0022.0002/input/input3
U: Uniq=
H: Handlers=mouse1 event2 
B: PROP=0
B: EV=1b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=3
B: MSC=10

Hi @qtdevelop1

Somehow the qt appcontroller.conf behaves sometimes strange. Can you try to add the following line?

env=QT_QPA_EGLFS_NO_LIBINPUT=1

I think the line:

 env=TSLIB_TSDEVICE=/dev/input/event2

is not necessary if it’s a capacitive touch.

Regards,
Stefan

Thanks Stefan. The issue is resolved by adding the following line to the appcontroller.conf.

env=QT_QPA_EGLFS_NO_LIBINPUT=1

Perfect thanks for the feedback!

Regards,
Stefan