In our AM335x board, we compiled a x11vnc binary to support VNC feature. Since there is no x11 at default we launched the x11vnc by the following command:
x11vnc -rawfb console
We do have uinput support so x11vnc detected it and said it is using uinput to inject the keystroke and mouse. However, when we check the /proc/bus/input/devices file, the "x11vnc injector" is:
I: Bus=0003 Vendor=0000 Product=0000 Version=0004
N: Name="x11vnc injector"
P: Phys=
S: Sysfs=/devices/virtual/input/input15
U: Uniq=
H: Handlers=sysrq rfkill kbd mouse1 event3
B: PROP=0
B: EV=7
B: KEY=670000 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe
B: REL=3
It uses mouse1 and event3 as input handler. By cat the /dev/input/mouse1 we can get some data if we move the mouse cursor in VNC viewer. However, the foreground Qt-embedded app can't receive the mouse event. We think this is because the QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0. Since touchscreen0 is just a symbolic link to /dev/input/event1, we try to change it to point to /dev/input/event3 but there is no luck. When we move the cursor in VNC viewer, the debug window shows a warning message:
tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
Is there a way to use x11vnc in rawfb mode and both onboard's touchscreen and remote VNC viewer can control my Qt-embedded app?