Firefly Open Source Community

   Login   |   Register   |
New_Topic

[Linux] How to rotate screen on Unbuntu 18.04? How to set landscape orientation ?

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
154
Posted at 3/30/2023 22:52:04     
  • Type: Self-Compiled Firmware
  • SDK Package Name: rk356x_linux_release_v1.3.0b_20221213
  • Last Commit: 0000-00-00 00:00:00
  • Modification Content: mipi 2 cam configuration
  • Log: no log (2).zip
Problem description and steps to reproduce:
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 ?

no log (2).zip

22 Bytes, Down times: 0

Reply

Use props Report

182

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
182
Posted at 3/31/2023 09:43:55     
Reply

Use props Report

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
154
Posted at 3/31/2023 13:51:29     
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.
Reply

Use props Report

235

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
235
Posted at 3/31/2023 17:17:39     
Use xrandr  command  can rotate screen

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

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

Use props Report

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
154
Posted at 3/31/2023 21:49:39     
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 ?
Reply

Use props Report

370

Credits

7

Prestige

7

Contribution

intermediate

Rank: 3Rank: 3

Credits
370
Posted at 4/1/2023 17:14:14     
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
Reply

Use props Report

14

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
14
Posted at 3/30/2024 15:06:07     
Last edited by BerryTresler In 3/30/2024 15:09 Editor
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?


Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list