How to rotate the X-Server running on Debian based Olimage on a A20-OLinuXino-MICRO.
I tried to rotate the X-Server, that outputs to a touchscreen via HDMI.
After i "wasted" a lot of time on this, it finally works.
In case someone else runs into the same problem, here is a solution that works for me (so you hopefully don't have to wast as much time as had):
Use this xorg.conf file, save it as /etc/X11/xorg.conf
#Rotate the screen
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
Option "Rotate" "CW"
EndSection
#Rotate the touch input
Section "InputClass"
Identifier "rotateTouch"
option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection
And to rotate the console output, add this line to /boot/uEnv.txt at the end of the file:
optargs=fbcon=rotate:1
You may have to change the "CW" in Option "Rotate" "CW"
to "CCW" or "UD" and you may have to change the "0 1 0 -1 0 1 0 0 1" in option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
to "0 -1 1 1 0 0 0 0 1" or "-1 0 1 0 -1 1 0 0 1", depending on the rotation you need.
Note that the boot text before the kernel starts isn't rotated.
I use waveshare HDMI LCD (H) touchscreen.