Firefly Open Source Community

Title: How to rotate screen on Unbuntu 18.04? How to set landscape orientation ? [Print This Page]

Author: Maverick_by_    Time: 3/30/2023 22:52
Title: How to rotate screen on Unbuntu 18.04? How to set landscape orientation ?
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, Down times: 0


Author: zooora111    Time: 3/31/2023 09:43
Hi, this may help: https://wiki.t-firefly.com/en/Fi ... screen-and-rotation
Author: Maverick_by_    Time: 3/31/2023 13:51
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.
Author: 895816513    Time: 3/31/2023 17:17
Use xrandr  command  can rotate screen

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

e.g.£º
xrandr --output HDMI1 --rotate right
Author: Maverick_by_    Time: 3/31/2023 21:49
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 ?

Author: Liuth    Time: 4/1/2023 17: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
Author: BerryTresler    Time: 3/30/2024 15:06
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?







Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1