Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next 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

【Linux】 How to rotate screen on Unbuntu 18.04? How to set landscape orientation ?

Posted at 3/30/2023 22:52:04      View:1272 | Replies:6        Print     [Copy Link] 1#
  • 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

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

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

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

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

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

This forum Credits Rules

Quick Reply Back to top Back to list