How can I change the screen orientation

Post Reply
mbonamusa
Posts: 218
Joined: Mon Feb 25, 2013 9:08 pm
languages_spoken: catalan, spanish, english
ODROIDs: ODROID-X2, U2, U3, XU4, C1, C2
Has thanked: 0
Been thanked: 1 time
Contact:

How can I change the screen orientation

Post by mbonamusa »

How can I change the screen orientation in an odroid-c1?
I've tried:
sudo xrandr --output default --rotate left
xrandr: output default cannot use rotation "left" reflection "none"
But it does'nt work.

Any solution?

User avatar
odroid
Site Admin
Posts: 35602
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1204 times
Been thanked: 879 times
Contact:

Re: How can I change the screen orientation

Post by odroid »

Adding Option "Rotate" "CCW" in xorg.conf file was effective on ODROID-C2.
viewtopic.php?f=136&t=34097&p=248459#p248459

But I am not sure whether it can work with C1 or not.

joy
Posts: 1448
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 158 times
Been thanked: 178 times
Contact:

Re: How can I change the screen orientation

Post by joy »

In case of C1, xorg device is defined with driver "mali" in /etc/X11/xorg.conf.
As I checked, using a driver "fbturbo", rotation looks working,
but, not perfectly. Ubuntu desktop background is disappeared as black.

It's same instruction actually as @odroid mentioned with /usr/shar/X11/xorg.conf.d/11-odroid.conf.
/etc/X11/xorg.conf

Code: Select all

Section "Device"
        Identifier      "Mali-Fbdev"
        
        ## modified 
        # Driver          "mali"
        Driver          "fbturbo"
 
        Option          "fbdev"         "/dev/fb0"
        Option          "DRI2"            "true"
        Option          "DRI2_PAGE_FLIP"  "false"
        Option          "DRI2_WAIT_VSYNC" "false"
        Option          "UMP_CACHED"      "true"
        Option          "UMP_LOCK"        "false"
        Option          "SWCursor"        "true"
        Option          "HWCursor"        "false"
	## added
        Option          "Rotate"         "CCW"
        Option          "SwapbuffersWait" "true"
EndSection
With driver "mali", I've tried some modification from Googling, but it doesn't work nomrally. :(

mbonamusa
Posts: 218
Joined: Mon Feb 25, 2013 9:08 pm
languages_spoken: catalan, spanish, english
ODROIDs: ODROID-X2, U2, U3, XU4, C1, C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How can I change the screen orientation

Post by mbonamusa »

Great! It works.
Thank you!
These users thanked the author mbonamusa for the post:
odroid (Thu Jul 02, 2020 7:05 pm)

joy
Posts: 1448
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 158 times
Been thanked: 178 times
Contact:

Re: How can I change the screen orientation

Post by joy »

@mbonamusa,
Thank you for sharing your test result!

mbonamusa
Posts: 218
Joined: Mon Feb 25, 2013 9:08 pm
languages_spoken: catalan, spanish, english
ODROIDs: ODROID-X2, U2, U3, XU4, C1, C2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: How can I change the screen orientation

Post by mbonamusa »

Now I'm using the ubuntu 18.04 C1 image and when I use "fbturbo" driver to rotate the screen then autologin (odroid user) doesn't work. Autologin only is working if I start with default "mali" driver.
On ubuntu 14.04 it worked fine.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests