Results 1 to 2 of 2

Thread: Mouse .. no Cursor, but touch screen on LCD7 cap on BeagleBoneBlack works

  1. #1
    Join Date
    Aug 2008
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Mouse .. no Cursor, but touch screen on LCD7 cap on BeagleBoneBlack works

    I have a new BBB and revision A3 LCD 7 cap (had to modify (cut pins) to disable the external flash, else the on-board eMMC get corrupted)

    I followed the instructions as in http://www.cloud-rocket.com/2013/07/...e/#comment-475 and Direck Molloy 'you tube' part 1 and 2 (have not yet tried part3) and have a working GUI, with touch screen, but no mouse cursor movement.

    However I have to run
    export QWS_MOUSE_PROTO=linuxInput:/dev/input/event1
    echo $QWS_MOUSE_PROTO
    ./qui-test -qws


    "every time" else the touch screen does not work (had to use event1 instead of event0) as well.
    I can verify that the QWS_MOUSE_PROTO has been set, because the echo display it correctly

    I have additionally installed on the beagelbone
    opkg install qt4-embedded qt4-embedded-plugin-mousedriver-tslib

    1. Why is the setting of QWS_MOUSE_PROTO required every time ?
    2. What must be done additionally to enable the cursor to follow the mouse.


    Note I changed the 'cloud-rocket' config file to include -qt-mouse-tslib , and recompile qt on the vm ubuntu with host qtcreator.
    #/bin/sh
    make confclean
    ./configure -v -opensource -confirm-license -prefix /opt/qt -embedded arm \
    -platform qws/linux-x86-g++ -xplatform qws/linux-am335x-g++ -depths 16,24,32 \
    -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile \
    -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp\
    -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast \
    -little-endian -host-big-endian -no-pch -no-sql-ibase \
    -no-sql-odbc -no-sql-psql \
    -no-webkit \
    -no-qt3support -nomake examples -nomake demos -nomake docs -nomake translations -qt-mouse-tslib

    followed with a mak and make install

    The mouse and touch screen works fine if I 'gdm' in X-windows, and ts-calibarte and ts-test works fine.

    Kind Regards
    Gerrie

  2. #2
    Join Date
    Jan 2014
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Mouse .. no Cursor, but touch screen on LCD7 cap on BeagleBoneBlack works

    You need to export the variable "QWS_MOUSE_PROTO" in QT Creator on:
    "Projects" -> "Run Environment" -> "Use System Environment".

    Add a new variable:

    variable: QWS_MOUSE_PROTO
    value: linuxInput:/dev/input/event1

    And to run in graphic mode add the Run session:
    arguments:-qws

Similar Threads

  1. Touch screen wrong coordinates on touch
    By Talei in forum Qt Programming
    Replies: 0
    Last Post: 1st January 2014, 22:35
  2. Remove Cursor from Touch Screen
    By imxer in forum Newbie
    Replies: 0
    Last Post: 3rd January 2012, 21:58
  3. Getting raw touch screen data.
    By mahdi75 in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2011, 08:42
  4. Touch Screen on Windows 7
    By briankibler in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2011, 14:15
  5. Touch screen
    By rchaitanya in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th January 2009, 13:40

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.