Tinker Board Forum

Full Version: Losing rotation of the display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
Tinkerboard Linaro stretch 9.11
Linux tinkerboard 4.4.132+ #1 SMP Wed Aug 21 19:15:55 CST 2019 armv7l GNU/Linux

I set up the display orientation on portrait mode.
If I unplug the display and then I replug it, I find the display with landscape orientation.

I only found a row in syslog file:

 tinkerboard kernel: [1906077.095664] rockchip-vop ff930000.vop: [drm:vop_crtc_enable] Update mode to 1920x1080p0, type: 11

Why the orientation was lost?
My guess is the driver is evaluating the display resolution regardless of the rotation. 

The portrait rotation is set by an initial script: maybe that's why it loose the setting...

Is it possible to set the orientation so the driver can retrieve the set?
In my tests I modified the config file in:

root@tinkerboard:~# more /etc/X11/xorg.conf.d/20-modesetting.conf
Section "Device"
Identifier "Rockchip Graphics"
Driver "modesetting"
Option "AccelMethod" "glamor"
Option "DRI" "2"
Section "Screen"
Identifier "Default Screen"
Monitor "KioskMonitor"
SubSection "Display"
Depth 24
Modes "1920x1080" "1280x1024" "1024x768" "800x600"
Section "Monitor"
Identifier "KioskMonitor"
Option "Rotate" "left"

This is ok at the startup, the display is rotated.
But if I unplug the monitor and then replug, the display goes to landscape mode = no rotation.