Add the following to /boot/armbianEnv.txt
:
extraargs=fbcon=rotate:1
Create a file /usr/share/X11/xorg.conf.d/90-monitor.conf
with the following content:
Section "Monitor"
Identifier "DP-1"
Option "Rotate" "right"
Option "PreferredMode" "1920x1080"
EndSection
Edit /usr/share/X11/xorg.conf.d/40-libinput.conf
, find the section with Identifier "libinput touchscreen catchall"
and add the following line:
Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"