Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt6 Tslib/Resistiv Touchscreen doesn't work!
Forum Updated to NodeBB v4.3 + New Features

Qt6 Tslib/Resistiv Touchscreen doesn't work!

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 316 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.
  • E Offline
    E Offline
    embexus
    wrote on last edited by embexus
    #1

    I'm using a device with resistive touchscreen and upgraded Qt to 6.4.2 Version built with TSLib support enabled.
    The touch is not working ! (work with Qt5.15)
    I enabled some debug in both Qt and Tslib :

    qdemo[124]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    qdemo[124]: qt.qpa.input: Initializing tslib plugin "tslib" ""
    qdemo[124]: qt.qpa.input: tslib device is /dev/input/event0
    qdemo[124]: qt.qpa.input: Initializing tslib plugin "tslib" "/dev/input/event0"
    qdemo[124]: qt.qpa.input: tslib device is /dev/input/event0

    /dev/input/event0 is mapped to my touchscreen device and I can see event coming when I touch the screen :

    qdemo[124]: RAW---------------------> 2728 1723 255 113.593623
    qdemo[124]: VARIANCE----------------> 2734 1715 255
    qmovebbg1 qdemo[124]: DEJITTER----------------> 2728 1707 255
    qdemo[124]: BEFORE CALIB--------------------> 2728 1707 255
    qdemo[124]: TS_READ----> x = 321, y = 158, pressure = 255
    qdemo[124]: RAW---------------------> 0 0 0 113.632579
    qdemo[124]: VARIANCE----------------> 2728 1723 0
    qdemo[124]: BEFORE CALIB--------------------> 2728 1723 0
    qdemo[124]: TS_READ----> x = 320, y = 157, pressure = 0
    qdemo[124]: RAW---------------------> 0 0 0 113.632579
    qdemo[124]: RAW---------------------> 2595 1585 255 286.506762
    qdemo[124]: VARIANCE----------------> 2595 1585 255
    qdemo[124]: BEFORE CALIB--------------------> 2595 1585 255
    qdemo[124]: TS_READ----> x = 305, y = 167, pressure = 255
    qdemo[124]: RAW---------------------> 2595 1585 255 286.506762

    Is it a known issue ?

    1 Reply Last reply
    0
    • E embexus deleted this topic on
    • E embexus restored this topic on
    • E Offline
      E Offline
      embexus
      wrote on last edited by embexus
      #2

      here is more detail how I start the qdemo app:

      export TSLIB_TSEVENTTYPE=INPUT
      export TSLIB_TSDEVICE=/dev/input/event0

      export TSLIB_CALIBFILE=/etc/pointercal
      export TSLIB_CONFFILE=/etc/ts.conf
      export TSLIB_PLUGINDIR=/usr/lib/ts
      export TSLIB_FBDEVICE=/dev/fb0
      export TSLIB_CONSOLEDEVICE=none

      export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0
      export QT_QPA_FB_TSLIB=1
      export QT_QPA_FB_DISABLE_INPUT=1
      export QT_QPA_PLATFORM=linuxfb
      export QT_QPA_FONTDIR=/usr/share/fonts/cantarell
      export QT_LOGGING_RULES=qt.qpa.input=true

      #/usr/bin/qdemo -plugin Tslib

      the Touch is correctly calibrated by running ts_claibrate before.

      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