PDA

View Full Version : Mouse .. no Cursor, but touch screen on LCD7 cap on BeagleBoneBlack works



creatron
7th January 2014, 12:17
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/building-qt-for-beaglebone/#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

wyworak
15th January 2014, 11:48
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