Monday, July 3, 2017

GPD Pocker: Touchscreen rotation with wayland

The GPD pocket has a "Goodix Capacitive TouchScreen", which just like the display is rotated by default. The reddit thread suggests to fix this with xinput, which can be made permanent by adding a xorg config file. However this doesn't work if you are using Wayland instead of Xorg.

To fix the touchscreen orientation in wayland:
Save this to /etc/udev/rules.d/99-goodix-touch.rules:
ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="Goodix Capacitive TouchScreen", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"

For me reloading udev rules and triggering udev didn't activate this. But after restarting it did work.

No comments:

Post a Comment