How to do N2 HDMI screen rotation

Post Reply
potato1992
Posts: 9
Joined: Thu Jun 06, 2019 11:49 am
languages_spoken: english
ODROIDs: ux4 n2
Has thanked: 1 time
Been thanked: 0
Contact:

How to do N2 HDMI screen rotation

Unread post by potato1992 » Wed Sep 11, 2019 12:47 am

I have a 7 inch 1024x600 waveshare touch sreen with VID and PID as 0x0eef:0x0005, working perfect with N2 ubuntu.
I wondered if there is anyway I could rotate the screen by 90/180/270, since I could not do it in the display settings menu (only one option "no rotation" could be selected).
I see one topic:
viewtopic.php?f=97&t=18193#p120549

But there is no /etc/X11/xorg.conf file in my system.....
Anyone knows how could I achieve it?

User avatar
odroid
Site Admin
Posts: 32104
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 115 times
Been thanked: 287 times
Contact:

Re: How to do N2 HDMI screen rotation

Unread post by odroid » Wed Sep 11, 2019 9:33 am

If you use Ubuntu 18.04, you need to create a xconf file under /usr/share/X11/xorg.conf.d/
viewtopic.php?f=136&t=34097&p=253694#p248459

sudo nano /usr/share/X11/xorg.conf.d/99-odroidn2.conf

And paste the following items and save it.

Code: Select all

# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.

Section "Device"
        Identifier      "FBTURBO"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "Rotate" "CCW"
        Option          "SwapbuffersWait" "true"
        Option          "alpha_swap" "true"
EndSection
And restart the desktop.

Code: Select all

sudo service lightdm restart
You will get portrait display rotated by 270 degree (CCW).

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests