Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to install Tslib plugin for qt 5.7
Qt 6.11 is out! See what's new in the release blog

How to install Tslib plugin for qt 5.7

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
14 Posts 3 Posters 9.7k 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
    #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
                        • Unsolved