Results 1 to 5 of 5

Thread: touchscreen tslib kernel event debugging qt application

  1. #1
    Join Date
    Sep 2011
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default touchscreen tslib kernel event debugging qt application

    Hi

    I have managed to get tslib to work on an embedded platform by:
    mknod /dev/input/touchscreen-1wire c 10 181
    so ts_calibrate, ts_test etc are working
    cat /dev/input/touchscreen-1wire generates data when the screen is touched

    I have set my environment as follows:
    export TSLIB_TSDEVICE=/dev/input/touchscreen-1wire
    export TSLIB_TSEVENTTYPE=INPUT
    export TSLIB_FBDEVICE=/dev/fb
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/usr/lib/ts
    export QWS_MOUSE_PROTO="tslib:/dev/input/touchscreen-1wire IntelliMouse:/dev/input/mouse1"

    The mouse works in the qt application. I have enabled event debugging in the kernel and touching the mouse generates evbug.c output. Touchscreen in qt application does not work and evbug does not generate anything. Not a qt issue, but hopefully someone in this forum can help. Thanks in advance

  2. #2
    Join Date
    Sep 2011
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: touchscreen tslib kernel event debugging qt application

    Maybe this helps:

    cat /proc/bus/input/devices
    I: Bus=0013 Vendor=dead Product=beef Version=0101
    N: Name="TouchScreen Pipe"
    P: Phys=input(ts)
    S: Sysfs=/class/input/input0
    U: Uniq=
    H: Handlers=mouse0 event0 evbug
    B: EV=b
    B: KEY=400 0 0 0 0 0 0 0 0 0 0
    B: ABS=1000003

    I: Bus=0003 Vendor=0458 Product=003a Version=0110
    N: Name="Genius Optical Mouse"
    P: Phys=usb-s3c24xx-1/input0
    S: Sysfs=/class/input/input1
    U: Uniq=
    H: Handlers=mouse1 event1 evbug
    B: EV=17
    B: KEY=70000 0 0 0 0 0 0 0 0
    B: REL=103
    B: MSC=10

    The following all output only when the mouse is moved:
    cat /dev/input/mouse0
    cat /dev/input/mouse1
    cat /dev/input/event0
    cat /dev/input/event1

  3. #3
    Join Date
    Sep 2011
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: touchscreen tslib kernel event debugging qt application

    Problem solved, I had missed something in the kernel configuration.

  4. #4
    Join Date
    Dec 2011
    Posts
    1

    Default Re: touchscreen tslib kernel event debugging qt application

    Quote Originally Posted by sean_h View Post
    Problem solved, I had missed something in the kernel configuration.
    Could you go in a little more details about what that "something" you missed was ?

  5. #5
    Join Date
    Sep 2011
    Posts
    5
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: touchscreen tslib kernel event debugging qt application

    As follows:

    make menuconfig
    Device Drivers -> Input device support -> Hardware IO ports ( * Raw access to serio ports)

Similar Threads

  1. qt tslib touchscreen y-axis reversed
    By gosk in forum Qt Programming
    Replies: 2
    Last Post: 6th September 2011, 17:19
  2. [Qt4.5] event(QEvent * event) freeze application
    By czlowiekcien in forum Newbie
    Replies: 2
    Last Post: 25th May 2009, 21:25
  3. QTEmbedded tslib -> tsharc touchscreen
    By Honta in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th February 2009, 06:36
  4. Using Qt with kernel extension dll
    By ramazangirgin in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2008, 14:23
  5. should event filters be used only for debugging
    By babu198649 in forum Qt Programming
    Replies: 1
    Last Post: 21st November 2007, 15:59

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.