Hi, to rotate the screen with `xrandr` you can use the '-o' flag (short for '--orientation')
But this won't rotate the touchscreen input. To do that you can use `xinput`
Run `xinput` with no arguments to see the list of input devices and get the touchscreen ID (look for "Goodix Capacitive TouchScreen"). For me it is id 8.
Here are the `xrandr` + `xinput` combinations for all the 4 orientations (replace $ID with the correct ID):
EDIT:
You can also specify the name instead of the ID.
To do so, replace $ID with "pointer:Goodix Capacitive TouchScreen"
But this won't rotate the touchscreen input. To do that you can use `xinput`
Run `xinput` with no arguments to see the list of input devices and get the touchscreen ID (look for "Goodix Capacitive TouchScreen"). For me it is id 8.
Here are the `xrandr` + `xinput` combinations for all the 4 orientations (replace $ID with the correct ID):
Code:
xrandr -o normal
xinput set-prop $ID "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
xrandr -o left
xinput set-prop $ID "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
xrandr -o inverted
xinput set-prop $ID "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
xrandr -o right
xinput set-prop $ID "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
EDIT:
You can also specify the name instead of the ID.
To do so, replace $ID with "pointer:Goodix Capacitive TouchScreen"