Unsolved touchscreen not working with qml app (intel nuc)
-
Hello,
I'm trying to make working qml qt5 application (qt5.10) compiled for intel nuc (x86). App can un just fine but I have an issue with touchscreen. Touchscreen is detected and report events like:
Event: time 1539695782.829539, -------------- SYN_REPORT ------------ Event: time 1539695782.830473, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1539695782.830473, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1539695782.830473, type 3 (EV_ABS), code 45 (?), value 6217 Event: time 1539695782.830473, -------------- SYN_REPORT ------------ Event: time 1539695782.916546, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1539695782.916546, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1539695782.916546, type 3 (EV_ABS), code 0 (ABS_X), value 2071 Event: time 1539695782.916546, type 3 (EV_ABS), code 1 (ABS_Y), value 2026 Event: time 1539695782.916546, type 3 (EV_ABS), code 45 (?), value 7095 Event: time 1539695782.916546, -------------- SYN_REPORT ------------ Event: time 1539695782.926345, type 3 (EV_ABS), code 45 (?), value 7191 Event: time 1539695782.926345, -------------- SYN_REPORT ------------ Event: time 1539695782.935535, type 3 (EV_ABS), code 45 (?), value 7288 Event: time 1539695782.935535, -------------- SYN_REPORT ------------ Event: time 1539695782.945547, type 3 (EV_ABS), code 45 (?), value 7386
So looks like /dev/input/event5 is touch screen but when run qml application (with export QT_LOGGING_RULES=qt.qpa.*=true) and get this:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_kms_egldevice", "eglfs_kms", "eglfs_x11") qt.qpa.egldeviceintegration: EGL device integration plugin keys (sorted): ("eglfs_kms", "eglfs_emu", "eglfs_kms_egldevice", "eglfs_x11") qt.qpa.egldeviceintegration: Trying to load device EGL integration "eglfs_kms" qt.qpa.eglfs.kms: New DRM/KMS via GBM integration created qt.qpa.egldeviceintegration: Using EGL device integration "eglfs_kms" qt.qpa.eglfs.kms: platformInit: Opening DRM device qt.qpa.input: udev device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_DRM|Device_VideoMask) qt.qpa.input: Found matching devices ("/dev/dri/card0") qt.qpa.eglfs.kms: Found the following video devices: ("/dev/dri/card0") qt.qpa.eglfs.kms: Using "/dev/dri/card0" qt.qpa.eglfs.kms: Using backend-provided DRM device /dev/dri/card0 qt.qpa.eglfs.kms: Creating GBM device for file descriptor 6 obtained from "/dev/dri/card0" qt.qpa.eglfs.kms: Querying EGLDisplay qt.qpa.eglfs.kms: "DP1" mode count: 18 qt.qpa.eglfs.kms: mode 0 1920 x 1080 @ 60 hz qt.qpa.eglfs.kms: mode 1 1920 x 1080 @ 60 hz qt.qpa.eglfs.kms: mode 2 1680 x 1050 @ 60 hz qt.qpa.eglfs.kms: mode 3 1280 x 1024 @ 60 hz qt.qpa.eglfs.kms: mode 4 1440 x 900 @ 60 hz qt.qpa.eglfs.kms: mode 5 1366 x 768 @ 60 hz qt.qpa.eglfs.kms: mode 6 1280 x 800 @ 60 hz qt.qpa.eglfs.kms: mode 7 1280 x 720 @ 60 hz qt.qpa.eglfs.kms: mode 8 1280 x 720 @ 60 hz qt.qpa.eglfs.kms: mode 9 1024 x 768 @ 60 hz qt.qpa.eglfs.kms: mode 10 800 x 600 @ 60 hz qt.qpa.eglfs.kms: mode 11 800 x 600 @ 56 hz qt.qpa.eglfs.kms: mode 12 800 x 500 @ 60 hz qt.qpa.eglfs.kms: mode 13 720 x 480 @ 60 hz qt.qpa.eglfs.kms: mode 14 720 x 480 @ 60 hz qt.qpa.eglfs.kms: mode 15 640 x 480 @ 60 hz qt.qpa.eglfs.kms: mode 16 640 x 480 @ 60 hz qt.qpa.eglfs.kms: mode 17 720 x 400 @ 70 hz qt.qpa.eglfs.kms: Selected mode 0 : 1920 x 1080 @ 60 hz for output "DP1" qt.qpa.eglfs.kms: Physical size is QSizeF(440, 240) mm for output "DP1" qt.qpa.eglfs.kms: EDID data for output "DP1": identifier 'ELO', manufacturer 'Tyco Electronics', model '', serial '10720', physical size: 440.00x240.00 qt.qpa.eglfs.kms: Creating new global GBM mouse cursor qt.qpa.eglfs.kms: Initializing cursor atlas from ":/cursor.json" qt.qpa.eglfs.kms: Skipping disconnected output "DP2" qt.qpa.eglfs.kms: Skipping disconnected output "HDMI1" qt.qpa.eglfs.kms: Sorted screen list: QVector(OrderedScreen(QPlatformScreen=0x81e360 ("DP1") : 2147483647 / QPoint(0,0) / primary: false)) qt.qpa.eglfs.kms: Adding QPlatformScreen 0x81e360 ( "DP1" ) to QPA with geometry QRect(0,0 1920x1080) and isPrimary= false qt.qpa.input: libinput: event2 - qt.qpa.input: libinput: Power Button: qt.qpa.input: libinput: is tagged by udev as: Keyboard qt.qpa.input: libinput: event2 - qt.qpa.input: libinput: Power Button: qt.qpa.input: libinput: device is a keyboard qt.qpa.input: libinput: event6 - qt.qpa.input: libinput: Video Bus: qt.qpa.input: libinput: is tagged by udev as: Keyboard qt.qpa.input: libinput: event6 - qt.qpa.input: libinput: Video Bus: qt.qpa.input: libinput: device is a keyboard qt.qpa.input: libinput: event1 - qt.qpa.input: libinput: Power Button: qt.qpa.input: libinput: is tagged by udev as: Keyboard qt.qpa.input: libinput: event1 - qt.qpa.input: libinput: Power Button: qt.qpa.input: libinput: device is a keyboard qt.qpa.input: libinput: event0 - qt.qpa.input: libinput: Sleep Button: qt.qpa.input: libinput: is tagged by udev as: Keyboard qt.qpa.input: libinput: event0 - qt.qpa.input: libinput: Sleep Button: qt.qpa.input: libinput: device is a keyboard qt.qpa.input: libinput: event3 - qt.qpa.input: libinput: USB USB Keyboard: qt.qpa.input: libinput: is tagged by udev as: Keyboard qt.qpa.input: libinput: event3 - qt.qpa.input: libinput: USB USB Keyboard: qt.qpa.input: libinput: device is a keyboard qt.qpa.input: libinput: event4 - qt.qpa.input: libinput: USB USB Keyboard: qt.qpa.input: libinput: is tagged by udev as: Keyboard qt.qpa.input: libinput: event4 - qt.qpa.input: libinput: USB USB Keyboard: qt.qpa.input: libinput: device is a keyboard qt.qpa.input: libinput: event5 - qt.qpa.input: libinput: Atmel Atmel maXTouch Digitizer: qt.qpa.input: libinput: is tagged by udev as: Tablet qt.qpa.input: libinput: event5 - qt.qpa.input: libinput: Atmel Atmel maXTouch Digitizer: qt.qpa.input: libinput: device is a tablet qt.qpa.input: libinput: event10 - qt.qpa.input: libinput: HDA Intel PCH HDMI/DP,pcm=8: qt.qpa.input: libinput: is tagged by udev as: Switch qt.qpa.input: libinput: event11 - qt.qpa.input: libinput: HDA Intel PCH HDMI/DP,pcm=9: qt.qpa.input: libinput: is tagged by udev as: Switch qt.qpa.input: libinput: event12 - qt.qpa.input: libinput: HDA Intel PCH HDMI/DP,pcm=10: qt.qpa.input: libinput: is tagged by udev as: Switch qt.qpa.input: libinput: event7 - qt.qpa.input: libinput: HDA Intel PCH Front Headphone: qt.qpa.input: libinput: is tagged by udev as: Switch qt.qpa.input: libinput: event8 - qt.qpa.input: libinput: HDA Intel PCH HDMI/DP,pcm=3: qt.qpa.input: libinput: is tagged by udev as: Switch qt.qpa.input: libinput: event9 - qt.qpa.input: libinput: HDA Intel PCH HDMI/DP,pcm=7: qt.qpa.input: libinput: is tagged by udev as: Switch qt.qpa.input: Using xkbcommon for key mapping
in my qt app I'm using qvirtualkeyboard which will popup when want to edit something but as touchscreen not working I cannot enter anything. Any ideas how to solve this issue? Thanks.
Marek