I'm trying to use a USB mouse on an application made in QT.
My touchscreen is working but the mouse shows no sign of life.
Using the command "cat / dev/input/event1 | hexdump" and "cat
/ dev/input/mouse0 | hexdump "I found that the system is receiving
the mouse data.
In variable QWS_MOUSE_PROTO already tried almost everything.
QWS_MOUSE_PROTO = "IntelliMouse: / dev/input/mouse0"
QWS_MOUSE_PROTO = "Microsof: / dev/input/mouse0"
QWS_MOUSE_PROTO = "MouseMan: / dev/input/mouse0"
QWS_MOUSE_PROTO = Auto: / dev/input/mouse0 "
QWS_MOUSE_PROTO = "tslib: / dev/input/mouse0"
Nothing worked.
Inside buildroot - Qt Mouse driver, I have only the driver
tslib selected.
Once compiled with the options PC and tslib enabled and
Qt programs including giving examples not working properly
"segmentation fault" as soon as he opens the main window.
From what I have researched I am not alone with this problem.
Does anyone have any idea how to configure a USB mouse to be used in Qt
Best Regards, Eduardo Gabriel.
-qt-mouse-pc is my option, now I have PC and tslib installed. The
commmand "echo 2 > /proc/cpu/alignment" solved the segmentation fault
problem.
I followed the link instructions. Installing PS/2 drivers inside kernel and etc.
As I already said my mouse is mounted in /dev/input/mouse0 . I checked
it using cat /dev/input/mouse0 | hexdump
I use "cat /sys/class/input/mouse0/device/name" to see the driver name
and it's "MosArt Optical Driver"
So i tried export QWS_MOUSE_PROTO="MosArt Optical
Driver:/dev/input/mouse0 tslib:/dev/input/event0" and then
export QWS_MOUSE_PROTO="MosArt:/dev/input/mouse0 tslib:/dev/input/event0"
After, all that I already have tried:
QWS_MOUSE_PROTO = "IntelliMouse: / dev/input/mouse0"
QWS_MOUSE_PROTO = "Microsof: / dev/input/mouse0"
QWS_MOUSE_PROTO = "MouseMan: / dev/input/mouse0"
QWS_MOUSE_PROTO = Auto: / dev/input/mouse0 "
QWS_MOUSE_PROTO = "tslib: / dev/input/mouse0"
The mouse still doesn't work inside Qt programs.
Thanks for the help.
Best Regards, Eduardo Gabriel
My touchscreen is working. No problem with tslib:/dev/input/event0"
I tried MosArt:/dev/input/mouse0 and it doesn't work.
Again, the mouse is working using cat /dev/input/mouse0. It's not a
driver problem, Qt just does not get this data.
Incredible how is hard set a mouse in Qt.
I have exhausted my efforts, I do not know what else to try.
Best Regards.
I tried and got a strange behavior.
The mouse still does not work and any movement I make with the mouse
makes the touchscreen stops working.
Thanks for the help.
Best Regards, Eduardo Gabriel.