Display rotation with official armbian image

Started by g5pw, March 06, 2020, 06:05:54 PM

Previous topic - Next topic

g5pw

Hello,
We recently acquired a T2-OLinuxIno-LIME2 board with a LCD-7-CTS display, we are encountering some issues rotating the display 90 degrees with the olimex buster image.

We use the armsoc driver and apparently rotation via `xrandr` is not supported:

root@olinuxino:~# xrandr --output None-1 --rotate left
xrandr: output None-1 cannot use rotation "left" reflection "none"

Putting
Option "rotate" "cw"

in the Device section of /etc/X11/xorg.conf.d/80-armsoc-sun4i.conf does nothing, and putting

Option "Rotate" "left"
in the Monitor section of /etc/X11/xorg.conf.d/01-armbian-defaults.conf makes the armsoc driver crash.

I've looked around this forum and most of the posts indicate using fbturbo as driver, is that still valid?

LubOlimex

Try to write

extraargs=fbcon=rotate_all:1
in

/boot/ArmbianEnv.txt
This suggestion is based on this:

https://www.kernel.org/doc/Documentation/fb/fbcon.txt
Technical support and documentation manager at Olimex

g5pw

Thanks for the suggestion, LubOlimex! The solution you proposed does not work, but you pointed me in the right direction: adding

extraargs=fbcon=rotate:1

does indeed rotate the console, but not X.

I made it work by not using armsoc as driver but the plain fbcon with
Option "Rotate" "CW" in the Device section of my Xorg config. I will be testing how it performs in the following days.