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
QtWS25 Last Chance

mini2440 touch not worked

Scheduled Pinned Locked Moved Mobile and Embedded
tslibtouch screenmini2440armarm9
11 Posts 2 Posters 4.5k 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by MhM93
    #1

    Hi
    I have a strange problem with touch screen on mini2440.
    the demo (fluidlauncher in mini2440) does not have problem with touch screen. also ./ts_calibrate run well but my program have problem in touch screen.( i think my program or compiler have error. so i copy the example of the Qt4.6.3 (in qws folder and webkit folder) on my board. they run well but the touch screen not work as the same as my program.

    ====================================================
    My history pf touch that they solved

    at first I had a problem in my mini2440. this is touch screen that does not work when my app run on it.
    these are my output for " printenv"
    [root@FriendlyARM bin]# ./ts_calibrate
    Segmentation fault

    [root@FriendlyARM bin]# printenv
    TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
    USER=root
    LD_LIBRARY_PATH=/usr/local/Qt/lib:/usr/local/tslib/lib
    TSLIB_TSEVENTTYPE=INPUT
    OLDPWD=/usr/local/bin
    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/tslib/etc/ts.conf
    SHELL=/bin/sh
    QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140
    PWD=/usr/local/tslib/bin
    QWS_MOUSE_PROTO=tslib:/dev/input/event0
    TSLIB_CALIBFILE=/etc/pointercal

    in this directory : /dev/input just i have two file : enevt0 and mice

    in ts.conf : uncomment the first line.

    i confused :(

    Note: in this way i install my program:

    Refrence: http://qtinstall.blogspot.in/

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

    I change my tslib conffile address from
    /usr/local/tslib/etc/ts.conf
    to
    /usr/local/etc/ts.conf
    and the ./ts_calibrate application run but show me this error show me like
    : this devise is not tochscreen blah blah blah..
    so i change
    export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
    to
    TSDEVICE=/dev/input/event0 .
    ** ./ts_calibrate is work.**
    :D but my app touch not work :(
    my application and ./fluidlauncher -qws (from /usr/local/Trolltech/QtEmbedded-4.6.3-arm/demos/ embedded/fluidlauncher/) are the same. both of them has touch screen problem :( this is my tslib :github.com/kergoth/tslib

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

    1 Reply Last reply
    0
    • 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