Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: g5pw on March 06, 2020, 06:05:54 PM

Title: Display rotation with official armbian image
Post by: g5pw on March 06, 2020, 06:05:54 PM
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?
Title: Re: Display rotation with official armbian image
Post by: LubOlimex on March 10, 2020, 10:25:47 AM
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 (https://www.kernel.org/doc/Documentation/fb/fbcon.txt)
Title: Re: Display rotation with official armbian image
Post by: g5pw on March 10, 2020, 03:41:19 PM
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.