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. How to install Tslib plugin for qt 5.7
Forum Updated to NodeBB v4.3 + New Features

How to install Tslib plugin for qt 5.7

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 3 Posters 6.9k Views 2 Watching
  • 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.
  • T Offline
    T Offline
    tictactoe
    wrote on last edited by tictactoe
    #3

    Hi Sgaist
    I install it from ubuntu through cross compiling .
    Finally , my problem is solved :-)
    I read this link
    [link text] (https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi)
    after installing new Tslib from github I read "Readme.md" from tslib directory and optimize my environment variable like below.

    export QT_DEBUG_PLUGINS="1"
    export QT_QPA_EGLFS_DISABLE_INPUT="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
    "QT_QPA_GENERIC_PLUGINS=Tslib"
    and getting segmentation fault error.I dont know why evdevtouch is working instead of tslib!!
    Do you know about it?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tictactoe
      wrote on last edited by
      #4

      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?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #5

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply
        0
        • SGaistS SGaist

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

          R Offline
          R Offline
          rrd0
          wrote on last edited by rrd0
          #6

          @SGaist said in How to install Tslib plugin for qt 5.7:

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

          Do you know how to disable evdev?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @rrd0 why ?

            Configure your environment to use another input plugin.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply
            0
            • SGaistS SGaist

              @rrd0 why ?

              Configure your environment to use another input plugin.

              R Offline
              R Offline
              rrd0
              wrote on last edited by
              #8

              @SGaist

              Cause I'm trying to use tslib instead of evdev, but I think something is wrong with my setup.

              When I run ts_test I get perfect readings, but when I run a Qt app there's a difference between real touched point and the value read. Close to center of the screen the readings are perfect, but there's an error that accumulates and gets large near the edges.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                What settings are you using ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                R 1 Reply Last reply
                0
                • SGaistS SGaist

                  What settings are you using ?

                  R Offline
                  R Offline
                  rrd0
                  wrote on last edited by
                  #10

                  @SGaist

                  I have Qt 5.10.1 cross-compiled to Raspberry Pi 3.

                  Here is my /etc/environment file:

                  TSLIB_FBDEVICE=/dev/fb0
                  TSLIB_TSDEVICE=/dev/input/touchscreen
                  TSLIB_CALIBFILE=/etc/pointercal
                  TSLIB_CONFFILE=/etc/ts.conf
                  TSLIB_PLUGINDIR=/usr/local/lib/ts
                  QT_QPA_EGLFS_TSLIB=1
                  QT_QPA_EGLFS_HIDECURSOR=1
                  QT_QPA_EGLFS_PHYSICAL_WIDTH=144
                  QT_QPA_EGLFS_PHYSICAL_HEIGHT=235
                  
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Might be a silly question but do you have screen in landscape mode ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    R 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Might be a silly question but do you have screen in landscape mode ?

                      R Offline
                      R Offline
                      rrd0
                      wrote on last edited by
                      #12

                      @SGaist said in How to install Tslib plugin for qt 5.7:

                      Might be a silly question but do you have screen in landscape mode ?

                      Nope. I rotate it to portrait mode.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        How does your system handle that ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        R 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          How does your system handle that ?

                          R Offline
                          R Offline
                          rrd0
                          wrote on last edited by rrd0
                          #14

                          @SGaist said in How to install Tslib plugin for qt 5.7:

                          How does your system handle that ?

                          Sorry. I didn't understand that question. What exactly do you want to know?

                          If you want to know how I rotated the screen, it was with the command ./LCD101-1024x600-show 270.

                          LCD101-1024x600-show was downloaded from https://github.com/waveshare/LCD-show.

                          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