Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why the application cannot get touch events on arm desktop linux
Forum Updated to NodeBB v4.3 + New Features

Why the application cannot get touch events on arm desktop linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 456 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rong.Lee
    wrote on last edited by Rong.Lee
    #1

    Hi all, my application on arm linux can't get touch events, it always gets mouse events when the screen is touched, but I can get touch event data by 'sudo od /dev/input/event16' and can get touch events by running "sudo ./app -platform eglfs" in terminal, the application works fine on x86 linux. What should I do to make the app get touch events on arm linux.

    R 1 Reply Last reply
    0
    • R Rong.Lee

      Hi all, my application on arm linux can't get touch events, it always gets mouse events when the screen is touched, but I can get touch event data by 'sudo od /dev/input/event16' and can get touch events by running "sudo ./app -platform eglfs" in terminal, the application works fine on x86 linux. What should I do to make the app get touch events on arm linux.

      R Offline
      R Offline
      Rong.Lee
      wrote on last edited by Rong.Lee
      #2

      The libraries installed:
      sudo apt install llvm-dev
      sudo apt install bison build-essential clang flex gperf
      libxcb-xinput-dev libinput-dev
      libatspi2.0-dev libevdev-dev libudev-dev libclang-dev libcups2-dev
      libdrm-dev libegl1-mesa-dev libfontconfig1-dev libfreetype6-dev
      libgstreamer1.0-dev libhunspell-dev libnss3-dev libopengl-dev
      libpulse-dev libssl-dev libts-dev libx11-dev libx11-xcb-dev
      libxcb-glx0-dev libxcb-icccm4-dev libxcb-image0-dev libmtdev-dev
      libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev
      libxcb-shape0-dev libxcb-shm0-dev libxcb-sync-dev libxcb-util-dev
      libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb1-dev
      libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev
      libxfixes-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
      libxkbfile-dev libxrandr-dev libxrender-dev libxshmfence-dev libvulkan-dev
      libxshmfence1 llvm ninja-build nodejs python-is-python2 python2

      The command configure:
      ./configure -prefix /usr/local/Qt-6.2.2 -shared -release -opensource -confirm-license -feature-vulkan -nomake examples -nomake tests -skip qtwebengine

      The Qt version I have tried:
      Qt-5.15.2, Qt-6.2.2 and Qt-6.3.1

      The configuration output:

      Info: creating super cache file /home/nayun/qt-everywhere-src-5.15.2/.qmake.super
      Info: creating cache file /home/nayun/qt-everywhere-src-5.15.2/.qmake.cache
      Info: creating stash file /home/nayun/qt-everywhere-src-5.15.2/.qmake.stash

      This is the Qt Open Source Edition.

      You have already accepted the terms of the Open Source license.

      Running configuration tests...
      Checking for machine tuple... yes
      Checking for valid makespec... yes
      Checking for target architecture... arm64
      Checking for alloca() in alloca.h... yes
      Checking for C++14 support... yes
      Checking for C++17 support... yes
      Checking for C99 support... yes
      Checking for C11 support... yes
      Checking for pkg-config... yes
      Checking for D-Bus >= 1.2... yes
      Checking for dlopen()... yes
      Checking for new dtags support... yes
      Checking for D-Bus >= 1.2 (host)... yes
      Checking for Support for Intel Control-flow Enforcement Technology... no
      Checking for udev... yes
      Checking for POSIX fallocate()... yes
      Checking for precompiled header support... yes
      Checking for RDRAND instruction... no
      Checking for RDSEED instruction... no
      Checking for symbol visibility support... yes
      Checking for -Bsymbolic-functions support... no
      Checking for Signaling NaN for doubles... yes
      Checking for STL compatibility... yes
      Checking for zlib... yes
      Checking for Zstandard... no
      Checking for clock_gettime()... yes
      Checking for POSIX monotonic clock... yes
      Checking for C++11 <future>... yes
      Checking for eventfd... yes
      Checking for futimens()... yes
      Checking for getauxval()... yes
      Checking for getentropy()... yes
      Checking for GLib... yes
      Checking for GNU libc... yes
      Checking for POSIX iconv... yes
      Checking for ICU... yes
      Checking for inotify... yes
      Checking for SysV IPC... yes
      Checking for linkat()... yes
      Checking for ppoll()... yes
      Checking for PCRE2... yes
      Checking for renameat2()... yes
      Checking for slog2... no
      Checking for statx() in libc... yes
      Checking for 64 bit atomics... yes
      Checking for DoubleConversion... no
      Checking for O_CLOEXEC... yes
      Checking for C++11 <random>... yes
      Checking for working std::atomic for function pointers... yes
      Checking for OpenSSL Headers... yes
      Checking for DTLS support in OpenSSL... yes
      Checking for getifaddrs()... yes
      Checking for KRB5 GSSAPI Support... no
      Checking for IPv6 ifname... yes
      Checking for Linux AF_NETLINK sockets... yes
      Checking for OCSP stapling support in OpenSSL... yes
      Checking for XCB >= 1.11... yes
      Checking for XCB ICCCM >= 0.3.9... yes
      Checking for XCB Util >= 0.3.9... yes
      Checking for XCB SHM... yes
      Checking for XCB Image >= 0.3.9... yes
      Checking for XCB Keysyms >= 0.3.9... yes
      Checking for XCB RandR... yes
      Checking for XCB XRender... yes
      Checking for XCB Renderutil >= 0.3.9... yes
      Checking for XCB Shape... yes
      Checking for XCB Sync... yes
      Checking for XCB Xfixes... yes
      Checking for XCB Xinerama... yes
      Checking for XCB XKB... yes
      Checking for XCB (extensions)... yes
      Checking for xkbcommon >= 0.5.0... yes
      Checking for xkbcommon-x11... yes
      Checking for atspi... yes
      Checking for Desktop OpenGL... yes
      Checking for KMS... yes
      Checking for DRM Atomic API... yes
      Checking for EGL... yes
      Checking for XLib... yes
      Checking for EGL on X11... yes
      Checking for EGLDevice... yes
      Checking for GBM... no
      Checking for Mali EGL... no
      Checking for Mali 2 EGL... no
      Checking for i.Mx6 EGL... no
      Checking for XCB Xlib... yes
      Checking for evdev... yes
      Checking for FreeType... yes
      Checking for Fontconfig... yes
      Checking for libinput... yes
      Checking for axis API in libinput... yes
      Checking for LinuxFB... yes
      Checking for mtdev... yes
      Checking for OpenVG... no
      Checking for default QPA platform... xcb
      Checking for HarfBuzz... no
      Checking for libjpeg... yes
      Checking for libpng... yes
      Checking for libmd4c... no
      Checking for XCB XInput... yes
      Checking for tslib... yes
      Checking for Vulkan... yes
      Checking for X11 prefix... /usr
      Checking for XCB GLX... yes
      Checking for X11 session management... no
      Checking for GTK+ >= 3.6... no
      Checking for CUPS... yes
      Checking for DB2 (IBM)... no
      Checking for InterBase... no
      Checking for MySQL... no
      Checking for OCI (Oracle)... no
      Checking for ODBC... no
      Checking for PostgreSQL... no
      Checking for SQLite (version 2)... no
      Checking for TDS (Sybase)... no
      Checking for ntddmodm... no
      Checking for Socket CAN... yes
      Checking for Socket CAN FD... yes
      Checking for 64bit pointers... yes
      Checking for Sufficiently recent FPU on ARM... yes
      Checking for python... /usr/bin/python
      Checking for Direct3D 12... no
      Checking for Assimp... no
      Checking for SDL2... no
      Checking for Assimp... no
      Checking for Autodesk FBX... no
      Checking for Wayland client library... no
      Checking for Wayland EGL library... no
      Checking for wayland-server... no
      Checking for BlueZ... no
      Checking for sensorfw... no
      Checking for Gypsy... no
      Checking for WinRT Geolocation API... no
      Checking for ALSA... no
      Checking for GStreamer 1.0... no
      Checking for GStreamer 0.10... no
      Checking for Video for Linux... yes
      Checking for OpenAL... no
      Checking for PulseAudio >= 0.9.10... yes
      Checking for libresourceqt5... no
      Checking for Flite... no
      Checking for Speech Dispatcher... no
      Checking for libclang... yes
      Done running configuration tests.

      Configure summary:

      Build type: linux-clang (arm64, CPU features: neon)
      Compiler: clang 10.0.0
      Configuration: compile_examples enable_new_dtags largefile neon precompile_header shared shared rpath release c++11 c++14 c++17 c++1z concurrent dbus reduce_exports stl
      Build options:
      Mode ................................... release
      Optimize release build for size ........ no
      Building shared libraries .............. yes
      Using C standard ....................... C11
      Using C++ standard ..................... C++17
      Using ccache ........................... no
      Using new DTAGS ........................ yes
      Relocatable ............................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
      NEON ................................. yes
      Build parts ............................ libs tools
      Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... yes
      Qt Gui ................................. yes
      Qt Network ............................. yes
      Qt Sql ................................. yes
      Qt Testlib ............................. yes
      Qt Widgets ............................. yes
      Qt Xml ................................. yes
      Support enabled for:
      Using pkg-config ....................... yes
      udev ................................... yes
      Using system zlib ...................... yes
      Zstandard support ...................... no
      Qt Core:
      DoubleConversion ....................... yes
      Using system DoubleConversion ........ no
      GLib ................................... yes
      iconv .................................. no
      ICU .................................... yes
      Built-in copy of the MIME database ..... yes
      Tracing backend ........................ <none>
      Logging backends:
      journald ............................. no
      syslog ............................... no
      slog2 ................................ no
      PCRE2 .................................. yes
      Using system PCRE2 ................... yes
      Qt Network:
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      Linux AF_NETLINK ....................... yes
      OpenSSL ................................ yes
      Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ yes
      DTLS ................................... yes
      OCSP-stapling .......................... yes
      SCTP ................................... no
      Use system proxies ..................... yes
      GSSAPI ................................. no
      Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
      Using system FreeType ................ yes
      HarfBuzz ............................... yes
      Using system HarfBuzz ................ no
      Fontconfig ............................. yes
      Image formats:
      GIF .................................. yes
      ICO .................................. yes
      JPEG ................................. yes
      Using system libjpeg ............... yes
      PNG .................................. yes
      Using system libpng ................ yes
      Text formats:
      HtmlParser ........................... yes
      CssParser ............................ yes
      OdfWriter ............................ yes
      MarkdownReader ....................... yes
      Using system libmd4c ............... no
      MarkdownWriter ....................... yes
      EGL .................................... yes
      OpenVG ................................. no
      OpenGL:
      Desktop OpenGL ....................... yes
      OpenGL ES 2.0 ........................ no
      OpenGL ES 3.0 ........................ no
      OpenGL ES 3.1 ........................ no
      OpenGL ES 3.2 ........................ no
      Vulkan ................................. yes
      Session Management ..................... yes
      Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... yes
      INTEGRITY HID .......................... no
      mtdev .................................. yes
      tslib .................................. yes
      xkbcommon .............................. yes
      X11 specific:
      XLib ................................. yes
      XCB Xlib ............................. yes
      EGL on X11 ........................... yes
      xkbcommon-x11 ........................ yes
      QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
      EGLFS OpenWFD ........................ no
      EGLFS i.Mx6 .......................... no
      EGLFS i.Mx6 Wayland .................. no
      EGLFS RCAR ........................... no
      EGLFS EGLDevice ...................... yes
      EGLFS GBM ............................ no
      EGLFS VSP2 ........................... no
      EGLFS Mali ........................... no
      EGLFS Raspberry Pi ................... no
      EGLFS X11 ............................ yes
      LinuxFB ................................ yes
      VNC .................................... yes
      XCB:
      Using system-provided xcb-xinput ..... yes
      Native painting (experimental) ....... no
      GL integrations:
      GLX Plugin ......................... yes
      XCB GLX .......................... yes
      EGL-X11 Plugin ..................... yes
      Qt Sql:
      SQL item models ........................ yes
      Qt Widgets:
      GTK+ ................................... no
      Styles ................................. Fusion Windows
      Qt PrintSupport:
      CUPS ................................... yes
      Qt Sql Drivers:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      SQLite2 ................................ no
      SQLite ................................. yes
      Using system provided SQLite ......... no
      TDS (Sybase) ........................... no
      Qt Testlib:
      Tester for item models ................. yes
      Serial Port:
      ntddmodm ............................... no
      Qt SerialBus:
      Socket CAN ............................. yes
      Socket CAN FD .......................... yes
      SerialPort Support ..................... yes
      Further Image Formats:
      JasPer ................................. no
      MNG .................................... no
      TIFF ................................... yes
      Using system libtiff ................. yes
      WEBP ................................... yes
      Using system libwebp ................. no
      Qt QML:
      QML network support .................... yes
      QML debugging and profiling support .... yes
      QML just-in-time compiler .............. yes
      QML sequence object .................... yes
      QML XML http request ................... yes
      QML Locale ............................. yes
      Qt QML Models:
      QML list model ......................... yes
      QML delegate model ..................... yes
      Qt Quick:
      Direct3D 12 ............................ no
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Qt Quick Designer .......... yes
      Flipable item .......................... yes
      GridView item .......................... yes
      ListView item .......................... yes
      TableView item ......................... yes
      Path support ........................... yes
      PathView item .......................... yes
      Positioner items ....................... yes
      Repeater item .......................... yes
      ShaderEffect item ...................... yes
      Sprite item ............................ yes
      QtQuick3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Qt Scxml:
      ECMAScript data model for QtScxml ...... yes
      Qt Gamepad:
      SDL2 ................................... no
      Qt 3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Output Qt3D GL traces .................. no
      Use SSE2 instructions .................. no
      Use AVX2 instructions .................. no
      Aspects:
      Render aspect ........................ yes
      Input aspect ......................... yes
      Logic aspect ......................... yes
      Animation aspect ..................... yes
      Extras aspect ........................ yes
      Qt 3D Renderers:
      OpenGL Renderer ........................ yes
      RHI Renderer ........................... no
      Qt 3D GeometryLoaders:
      Autodesk FBX ........................... no
      Qt Wayland Client ........................ no
      Qt Wayland Compositor .................... no
      Qt Bluetooth:
      BlueZ .................................. no
      BlueZ Low Energy ....................... no
      Linux Crypto API ....................... no
      Native Win32 Bluetooth ................. no
      WinRT Bluetooth API (desktop & UWP) .... no
      WinRT advanced bluetooth low energy API (desktop & UWP) . no
      Qt Sensors:
      sensorfw ............................... no
      Qt Quick Controls 2:
      Styles ................................. Default Fusion Imagine Material Universal
      Qt Quick Templates 2:
      Hover support .......................... yes
      Multi-touch support .................... yes
      Qt Positioning:
      Gypsy GPS Daemon ....................... no
      WinRT Geolocation API .................. no
      Qt Location:
      Qt.labs.location experimental QML plugin . yes
      Geoservice plugins:
      OpenStreetMap ........................ yes
      HERE ................................. yes
      Esri ................................. yes
      Mapbox ............................... yes
      MapboxGL ............................. yes
      Itemsoverlay ......................... yes
      QtXmlPatterns:
      XML schema support ..................... yes
      Qt Multimedia:
      ALSA ................................... no
      GStreamer 1.0 .......................... no
      GStreamer 0.10 ......................... no
      Video for Linux ........................ yes
      OpenAL ................................. no
      PulseAudio ............................. yes
      Resource Policy (libresourceqt5) ....... no
      Windows Audio Services ................. no
      DirectShow ............................. no
      Windows Media Foundation ............... no
      Qt TextToSpeech:
      Flite .................................. no
      Flite with ALSA ........................ no
      Speech Dispatcher ...................... no
      Qt Tools:
      Qt Assistant ........................... yes
      Qt Designer ............................ yes
      Qt Distance Field Generator ............ yes
      kmap2qmap .............................. yes
      Qt Linguist ............................ yes
      Mac Deployment Tool .................... no
      makeqpf ................................ yes
      pixeltool .............................. yes
      qdbus .................................. yes
      qev .................................... yes
      Qt Attributions Scanner ................ yes
      qtdiag ................................. yes
      qtpaths ................................ yes
      qtplugininfo ........................... yes
      Windows deployment tool ................ no
      WinRT Runner Tool ...................... no
      Qt Tools:
      QDoc ................................... yes

      Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/usr/local/Qt-5.15.2'.

      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.

      1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        Can you try the following if any widget(for example table widget) is used?
        m_tableWidget->setAttribute( Qt::WA_AcceptTouchEvents );

        R 2 Replies Last reply
        0
        • JoeCFDJ JoeCFD

          Can you try the following if any widget(for example table widget) is used?
          m_tableWidget->setAttribute( Qt::WA_AcceptTouchEvents );

          R Offline
          R Offline
          Rong.Lee
          wrote on last edited by
          #4

          @JoeCFD WA_AcceptTouchEvents has been set, the application can receive touch enevts on Windows and x86 linux, only cannot receive touch enevts on arm linux.

          1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            Can you try the following if any widget(for example table widget) is used?
            m_tableWidget->setAttribute( Qt::WA_AcceptTouchEvents );

            R Offline
            R Offline
            Rong.Lee
            wrote on last edited by
            #5

            @JoeCFD It also can receive touch events when running as "sudo ./app -platform eglfs", but it's not what I need, I only want it can receive touch events on arm xcb linux, not embedded linux mode.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved