How to install Tslib plugin for qt 5.7

  • Hi
    I write a QT program for raspberry PI . I use tslib for touch and EGLFS on QT.
    I install Tslib on RPI and the ts_calibrate and ts_test is working properly , but there is not any plugin for tslib. I want to apply tslib plugin for rotating touch axis.
    How can I install plugin for tslib?


  • Lifetime Qt Champion


    How did you install Qt on your Pi ?

  • Hi Sgaist
    I install it from ubuntu through cross compiling .
    Finally , my problem is solved :-)
    I read this link
    [link text] (
    after installing new Tslib from github I read "" from tslib directory and optimize my environment variable like below.

    export QT_DEBUG_PLUGINS="1"
    export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="/dev/input/event0:rotate=90"
    export QT_QPA_GENERIC_PLUGINS="evdevtouch:/dev/input/event0"

    so the touch is working good. my mistake is at "QT_QPA_GENERIC_PLUGINS " phrase . I use
    and getting segmentation fault error.I dont know why evdevtouch is working instead of tslib!!
    Do you know about it?

  • There is one problem , Although I calibrate the touchscreen via ts_calibrate but I think the qt code does not follow the calibration points . I use this environment variable for tslib.

    export TSLIB_FBDEVICE=/dev/fb0
    export TSLIB_CONSOLEDEVICE=/dev/tty
    export TSLIB_TSDEVICE=/dev/input/event0
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_PLUGINDIR=/usr/local/lib/ts

    Some button on the different place of the touchscreen is touched so hardly.
    What can I do for it?

  • Lifetime Qt Champion

    AFAIK, if you are using evdev, it won't use tslib to manage input.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.