How to rotate screen on Unbuntu 18.04? How to set landscape orientation ?

Type: Self-Compiled Firmware
SDK Package Name: rk356x_linux_release_v1.3.0b_20221213
Modification Content: mipi 2 cam configuration
Log: no log (2).zip

How to rotate screen on Unbuntu 18.04?I have 800x1280 screen and it have book orientation.
How to set landscape orientation ?

I tryed find Display settings in Ubuntu 18 descktop environment for orientation but found nothing.

Auto rotate screen doesn’t works.

How can i change DTS file to do it ?
tchip_askquestions
no log (2).zip (22 Bytes)

Hi, this may help: https://wiki.t-firefly.com/en/Firefly-Linux-Guide/manual_ubuntu.html#multi-screen-and-rotation

zooora111 Posted at 3/31/2023 09:43
Hi, this may help: https://wiki.t-firefly.com/en/Firefly-Linux-Guide/manual_ubuntu.html#multi-screen

yes i saw it before, but it’s not about SCREEN rotation, it’s about touchscreen rotation.

Use xrandr command can rotate screen

xrandr --output --rotate <left|right|inverted|normal>

e.g.:
xrandr --output HDMI1 --rotate right

895816513 Posted at 3/31/2023 17:17
Use xrandr command can rotate screen

xrandr --output --rotate

I tryed it before and it works fine but It’s not a best solution.

I need to add 2nd screen settings 1280x800:
horisontal 1280
vertical 800
I need rotate my screen using DTS file, on the kernel level:

&dsi1{

disp_timings1: display-timings {
native-mode = <&dsi1_timing0>;
dsi1_timing0: timing0 {
clock-frequency = <72600000>;//<80000000>;
hactive = <800>;
vactive = <1280>;
hsync-len = <14>; //20, 50,10
hback-porch = <26>; //50, 56,10
hfront-porch = <32>;//50, 30,180
vsync-len = <8>;//4
vback-porch = <20>;//4
vfront-porch = <80>;//8
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};

So i need to add 2nd dsi1_timing:

dsi1_timing1: timing1 {
clock-frequency = …;
hactive = <1280>;
vactive = <800>;
}

So probabaly i need enter new values for
clock-frequency,hactive,vactive,hsync-len,hback-porch,hfront-porch,vsync-len,vback-porch,vfront-porch

Can you help me ? How to do it ?

Maverick_by_ Posted at 3/31/2023 21:49
I tryed it before and it works fine but It’s not a best solution.

I need to add 2nd screen sett …

Timings are given in the datasheet of a LCD screen, one DSI can only has one group of timings
They are hardware features of a LCD , so you can’t just swap hactive and vactive to rotate
The only way is using xrandr

Maverick_by_ Posted at 3/31/2023 13:51
yes i saw it before, but it’s not about SCREEN rotation, it’s about touchscreen rotation.

How did you solve it?

Your article was such a pleasant surprise, thank you! Unlock your career growth with free C-P2WFI-2023 useful dumps materials—promotion and salary increase!

私たちが提供するOracle NetSuite SuiteFoundation Specialist準備トレントは、精巧にコンパイルされ、非常に効率的です。 N16300GC10試験トレントを練習するのに20〜30時間しかかからず、試験に参加できます。仕事などで忙しいほとんどのお客様。ただし、N16300GC10テスト準備を使用する場合、短時間で試験を準備して試験内容をマスターするのにそれほど時間は必要ありません。彼らがする必要があるのは、毎日学習して練習するのに1〜2時間を費やし、N16300GC10テスト準備で簡単に試験に合格することです。試験に合格するための時間と労力はほとんどかかりません。

Clicking the like button now—this content is amazing. Access the comprehensive content of CDT accurate study material for free—aimed at helping you.