Search This Blog

2024-05-05

Portrait touchscreen

xrandr -o right

xinput set-prop 'pointer:Goodix Capacitive TouchScreen' --type=float \
'Coordinate Transformation Matrix' 0 1 0  -1 0 1  0 0 1.43

# And back to landscape

xrandr -o normal

xinput set-prop 'pointer:Goodix Capacitive TouchScreen' --type=float \
'Coordinate Transformation Matrix' 0 0 0  0 0 0  0 0 0