Unsolved TOUCHSCREEN rotation on QPA/Wayland
-
The touchscreen on TI AM335x EVM is in reverse order, i.e starting from bottom-right instead of top-left.
We were able to handle this at our QT5 Matrix-Gui application by setting the environment variable QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="rotate=180" with QPA = EGLFS and LINUXFB.We just found out that the same mechanism does not work with window-type QPA plugins such as Wayland.
Does anyone know how to specify touchscreen rotation on Wayland platform plugins?Best regards,
Eric Ruei
-
Hi,
You should try contacting the Wayland maintainer about that matter.
-
The touchscreen rotation is taken care by the Wayland touchscreen calibration and on other transformation operation outside Weston is required.
From wayland-devel@lists.freedesktop.org
My question is whether Wayland compositor should support touch screen
rotation and if the answer is yes, when will this feature beYes, it is the compositor's job to handle it.
available? Attached please find a hacking patch as a proof of concept
only for your reference.It is already supported, see:
https://cgit.freedesktop.org/wayland/weston/tree/src/libinput-device.c?id=1.11.0#n426
and WL_CALIBRATION.In its current form, WL_CALIBRATION support was first released with Weston 1.6. Note, that it is configured via udev, not weston.
See also https://wayland.freedesktop.org/libinput/doc/latest/absolute_axes.html
I hope that the information above is helpful.
Best regards,
Eric