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. mini2440 touch not worked
Forum Updated to NodeBB v4.3 + New Features

mini2440 touch not worked

Scheduled Pinned Locked Moved Mobile and Embedded
tslibtouch screenmini2440armarm9
11 Posts 2 Posters 4.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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by
    #2
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #3

      Hi,

      Did you set all the necessary environment variables before launching your application ?

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

      1 Reply Last reply
      0
      • MhM93M Offline
        MhM93M Offline
        MhM93
        wrote on last edited by
        #4

        Hi and thanks for reply,
        these are the printenv output:
        [root@FriendlyARM /]# printenv
        TSLIB_TSDEVICE=/dev/input/event0
        USER=root
        LD_LIBRARY_PATH=/usr/local/Qt/lib:/usr/local/tslib/lib
        TSLIB_TSEVENTTYPE=INPUT
        HOME=/
        QTDIR=/usr/local/Qt
        TSLIB_FBDEVICE=/dev/fb0
        PS1=[\u@\h \W]#
        TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
        TSLIB_CONSOLEDEVICE=none
        LOGNAME=root
        TERM=vt102
        PATH=/sbin:/usr/sbin:/bin:/usr/bin
        TSLIB_CONFFILE=/usr/local/etc/ts.conf
        SHELL=/bin/sh
        PWD=/
        QWS_MOUSE_PROTO=tslib:/dev/input/mice
        TSLIB_CALIBFILE=/etc/pointercal

        how can i know which one is wrong?

        1 Reply Last reply
        0
        • MhM93M Offline
          MhM93M Offline
          MhM93
          wrote on last edited by
          #5

          export TSLIB_CALIBFILE=/etc/pointercal
          export TSLIB_CONFFILE=/usr/local/etc/ts.conf
          export TSLIB_CONSOLEDEVICE=none
          export TSLIB_FBDEVICE=/dev/fb0
          export TSLIB_PLUGINDIR=/dev/input/event0
          export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
          export TSLIB_TSEVENTTYPE=INPUT
          export QWS_MOUSE_PROTO=tslib:/dev/input/event0
          export LD_LIBRARY_PATH=/usr/local/tslib/lib

          these are my variable. how to change it to enable my program touch?

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

            TSLIB_TSDEVICE looks wrong as well as TSLIB_PLUGINDIR. Did you invert their values ?

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

            MhM93M 1 Reply Last reply
            0
            • SGaistS SGaist

              TSLIB_TSDEVICE looks wrong as well as TSLIB_PLUGINDIR. Did you invert their values ?

              MhM93M Offline
              MhM93M Offline
              MhM93
              wrote on last edited by
              #7

              @SGaist you say right. i change them to these :
              export TSLIB_CALIBFILE=/etc/pointercal
              export TSLIB_CONFFILE=/usr/local/etc/ts.conf
              export TSLIB_CONSOLEDEVICE=none
              export TSLIB_FBDEVICE=/dev/fb0
              export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
              export TSLIB_TSDEVICE=/dev/input/event0
              export TSLIB_TSEVENTTYPE=INPUT
              export QWS_MOUSE_PROTO=tslib:/dev/input/event0
              export LD_LIBRARY_PATH=/usr/local/tslib/lib

              my touch in demo is worked,but my apps and also the other example in qt like ( /opt/qt-everywhere-opensource-src-4.6.3/examples/widgets/calculator) calculator not work when i copy to usb and copy on board. it show the program and run on display but no touch

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

                Do you get any error message on the console ?

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

                1 Reply Last reply
                0
                • MhM93M Offline
                  MhM93M Offline
                  MhM93
                  wrote on last edited by
                  #9

                  there is no error on screen. i just write my program on Qt creator3.3.1 and build it ( in option of Qt creator part build and run in compiler tab set arm-linux-gcc in Qt version add qmake in Qt4.6.3 directory and in kit add this compiler and qt version. then make a single program for desktop kit and Armkit(that i make it with gcc compiler and ...) then it run in desktop kit without problem. but arm kit cant run on my desktop but the executable file is make. then i copy it to USB and run it on board: ./sample -qws. it shows me my application but the mouse in center and not move by touching display.
                  really thank for your reply

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

                    Are you running this command from a the same console that shows the application or another one ?

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

                    1 Reply Last reply
                    0
                    • MhM93M Offline
                      MhM93M Offline
                      MhM93
                      wrote on last edited by
                      #11

                      no the same one.
                      first i run my program . it doesn't work. then run ts_calibrate but it works. then run demo in mini2440 but the touch was worked, but when i run the example of the Qt4.6.3 in example folder (/opt/qt....4.6.3/example/...) the touch doesn't work. all of them in one console.
                      these are my system info:
                      [root@FriendlyARM /udisk]# cd /dev/input/
                      [root@FriendlyARM input]# ls
                      event0 mice

                      [root@FriendlyARM input]# cat event0
                      7�G7H�7!H7��7&am
                      p;#65533;��7��7.�

                      after each touch show me characters like these(my touch work)

                      ===============================================

                      i change this to:
                      export QWS_MOUSE_PROTO="tslib:/dev/input/event0
                      IntelliMouse:/dev/input/mice"
                      but nothing happen.

                      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