Is X11 Screen Rotation Possible?
#2
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):

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"
  Reply


Messages In This Thread
Is X11 Screen Rotation Possible? - by acid andy - 09-17-2021, 03:25 PM
RE: Is X11 Screen Rotation Possible? - by jlucas - 09-18-2021, 04:28 AM
RE: Is X11 Screen Rotation Possible? - by jlucas - 09-18-2021, 11:04 AM
RE: Is X11 Screen Rotation Possible? - by ryo - 09-20-2021, 06:09 AM
RE: Is X11 Screen Rotation Possible? - by jlucas - 09-20-2021, 03:06 PM
RE: Is X11 Screen Rotation Possible? - by jlucas - 09-19-2021, 06:06 AM
RE: Is X11 Screen Rotation Possible? - by ryo - 09-21-2021, 05:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Boots but only Shows Black Screen with Backlight danyeaw 1 766 06-30-2024, 10:18 AM
Last Post: danyeaw
  Boot screen stuck at 'K' because of firmware deleted. poundantisec 9 6,974 08-28-2023, 11:38 AM
Last Post: fxc
  locked out on PIN screen g40 1 1,013 06-07-2023, 10:20 PM
Last Post: Kevin Kofler
Sad New PinePhone won't boot 9/10 times - Screen is on but stays black :( dante404 8 6,791 02-03-2023, 01:27 AM
Last Post: dante404
  My screen bottom side has loosed its tactile function arbocenc 1 1,187 01-06-2023, 10:02 AM
Last Post: britelite
  "PinenotePhone": Swap E-Ink Screen Onto Pinephone? britelite 0 908 01-03-2023, 06:17 PM
Last Post: britelite
  Screen seems ok but no display UncleMeat 3 2,316 11-03-2022, 07:02 AM
Last Post: fxc
Question Black screen no matter the OS joseph303 2 2,051 07-19-2022, 01:07 AM
Last Post: joseph303
  Boot problem: wrong screen orientation Jetpac 6 4,831 07-18-2022, 12:47 PM
Last Post: fravoi
  Manjaro phosh no screen rotation sandspur 1 1,721 06-23-2022, 01:02 AM
Last Post: rapp

Forum Jump:


Users browsing this thread: 3 Guest(s)