Results 1 to 4 of 4

Thread: How can i calibrate touch screen for ARM based iMX25(freescale) board on Linux

  1. #1
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How can i calibrate touch screen for ARM based iMX25(freescale) board on Linux

    Hi,

    I have configured Qt-4.7.3 for ARM based iMX(from freescale) target board under Linux 2.6.31
    On my host PC there is fedora-14.
    I have deployed Qt library and ts library to board(/usr/lib directory). All the environments variable
    i have exported.
    I am able to run my application( or touch example provided by Qt) on board, even touch screen responding, but touch screen event not responding in proper way.
    If i am touching(or pressing or moving) the screen, corresponding event occurs somewhere else in touch screen area. That means, suppose that i have to do action on top left area then this event
    occurs by touching the bottom right area or somewhere else. And also i am not able to close, maximize or minimize the application by pressing(touching) the corresponding button on dialog(top right corner on dialog or main window).
    Whereas i have analyze this is the calibration problem. Is it calibration problem ?
    If it's calibration problem then how can i calibrate ???

    Or, what else the problem ? Can you suggest me any solution ?

    Regards,
    Sanjeet

  2. #2
    Join Date
    Dec 2008
    Location
    France
    Posts
    93
    Thanked 23 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: How can i calibrate touch screen for ARM based iMX25(freescale) board on Linux

    Have you look to http://doc.qt.nokia.com/4.7-snapshot/qws-mousecalibration.html. I use this example to calibrate my touch screen and it works fine.

    But if calibration doesn't work, maybe you have a problem with the touch screen or better with the qt driver you use. I had some problems to use my touch screen too, calibration doesn't seem to work, cursor move in a very strange way with an error in position not linear and not really predictive. I realized I was using the default driver for pointing device which simply not work with my device.

    I have to follow those steps to make it works :
    1. configure Qt with -qt-mouse-linuxinput option and rebuild
    2. find the device corresponding to my touch screen : on my board it was /dev/input/event1.
    3. export QWS_MOUSE_PROTO=LinuxInput:/dev/input/event1 on my board before running the QWSServer.


    After that my touch screen works fine.
    Hope it can solve your problem too.

  3. #3
    Join Date
    Apr 2011
    Location
    Hyderabad
    Posts
    86
    Thanks
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How can i calibrate touch screen for ARM based iMX25(freescale) board on Linux

    Quote Originally Posted by nix View Post
    Have you look to http://doc.qt.nokia.com/4.7-snapshot/qws-mousecalibration.html. I use this example to calibrate my touch screen and it works fine.

    But if calibration doesn't work, maybe you have a problem with the touch screen or better with the qt driver you use. I had some problems to use my touch screen too, calibration doesn't seem to work, cursor move in a very strange way with an error in position not linear and not really predictive. I realized I was using the default driver for pointing device which simply not work with my device.

    I have to follow those steps to make it works :
    1. configure Qt with -qt-mouse-linuxinput option and rebuild
    2. find the device corresponding to my touch screen : on my board it was /dev/input/event1.
    3. export QWS_MOUSE_PROTO=LinuxInput:/dev/input/event1 on my board before running the QWSServer.


    After that my touch screen works fine.
    Hope it can solve your problem too.

    Hi nix,

    Thanks first of all for suggesting me.

    I have sort out the problem, now my touch screen working properly.
    Actually it's was calibration problem, i was not calibrating in proper way.
    I have done google-search got idea for calibration.

    Thanks & Regards,
    Sanjeet

  4. #4
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How can i calibrate touch screen for ARM based iMX25(freescale) board on Linux

    Hello,

    there is an example in qt sources how to make a calibration.

    Best regards.

Similar Threads

  1. QLineEdit::Password mode not working on touch LCD , connected to ARM board.
    By savaliya_ambani in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 21st August 2013, 05:56
  2. Replies: 2
    Last Post: 25th June 2011, 05:41
  3. Touch based QT Keyboard
    By deimus in forum Qt Programming
    Replies: 4
    Last Post: 14th July 2010, 18:35
  4. Replies: 0
    Last Post: 26th February 2010, 12:16
  5. Deployment of Application to freescale board
    By AP.Sakkthivel in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 26th April 2006, 04:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.