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?
How to do N2 HDMI screen rotation
-
- Posts: 20
- Joined: Thu Jun 06, 2019 11:49 am
- languages_spoken: english
- ODROIDs: ux4 n2
- Has thanked: 1 time
- Been thanked: 2 times
- Contact:
- odroid
- Site Admin
- Posts: 40517
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 2998 times
- Been thanked: 1662 times
- Contact:
Re: How to do N2 HDMI screen rotation
If you use Ubuntu 18.04, you need to create a xconf file under
viewtopic.php?f=136&t=34097&p=253694#p248459
And paste the following items and save it.
And restart the desktop.
You will get portrait display rotated by 270 degree (CCW).
/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
Code: Select all
sudo service lightdm restart
-
- Posts: 1
- Joined: Tue Nov 08, 2022 9:33 pm
- languages_spoken: english
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: How to do N2 HDMI screen rotation
Hello, we're working on N2+ fresh installed from wiki odroid to Ubuntu 22.04 (MATE DESKTOP) and updated. When we add Option "Rotate" "CCW" to the 99-odroidn2.conf file, when we restart the service the screen remains blank (black) and lightdm don't restart.
To integrate this device in the place of the C4 we need to be able to work in portrait mode. We tried every other solution using xrandr without success
Any help ?
Thanks
To integrate this device in the place of the C4 we need to be able to work in portrait mode. We tried every other solution using xrandr without success
Any help ?
Thanks
-
- Posts: 3
- Joined: Fri Jan 20, 2023 5:02 pm
- languages_spoken: english
- ODROIDs: N2+
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: How to do N2 HDMI screen rotation
Reinstalled with different OS (DietPi) and rotating works with Mate (through GUI menu) and LXDE (through xrandr).
-
- Site Admin
- Posts: 11833
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Has thanked: 1 time
- Been thanked: 59 times
- Contact:
Re: How to do N2 HDMI screen rotation
For ODROID-N2/N2L/C4/GOU
To rotate the screen you have to change the /media/boot/boot.ini file.
You'll see a line starting with:
Valid options are:
To rotate the screen you have to change the /media/boot/boot.ini file.
You'll see a line starting with:
Between the " " from that you have to add fbcon=rotate:3# Boot Args
setenv bootargs "......
Valid options are:
0 - normal orientation (0 degree)
1 - clockwise orientation (90 degrees)
2 - upside down orientation (180 degrees)
3 - counterclockwise orientation (270 degrees)
- meveric
- Posts: 11978
- Joined: Mon Feb 25, 2013 2:41 pm
- languages_spoken: german, english
- ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
- Has thanked: 81 times
- Been thanked: 641 times
- Contact:
Re: How to do N2 HDMI screen rotation
If you use an upstream image with Panfrost support you can easily rotate display with xrandr as you would do on any normal PC.
Not sure if the waveshare touch screen is fully supported though.
But with upstream image and panfrost support you can easy type:
and the display turns around.
You can even add an xorg config like this:
which would rotate the screen every time an XServer is started.
Not sure if the waveshare touch screen is fully supported though.
But with upstream image and panfrost support you can easy type:
Code: Select all
xrandr --output HDMI-1 --rotate left
You can even add an xorg config like this:
Code: Select all
cat /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
Identifier "HDMI-1"
Option "Rotate" "left"
EndSection
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
-
- Site Admin
- Posts: 11833
- Joined: Fri Feb 22, 2013 11:34 pm
- languages_spoken: english, portuguese
- ODROIDs: -
- Location: Brazil
- Has thanked: 1 time
- Been thanked: 59 times
- Contact:
Re: How to do N2 HDMI screen rotation
That is correct!
For X rotation on N2:
edit: /usr/share/X11/xorg.conf.d/99-odroidc2.conf
change driver to fbdev and add option rotate like below.
Section "Device"
Identifier "FBTURBO"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
Option "rotate" "CW"
Option "SwapbuffersWait" "true"
Option "alpha_swap" "true"
EndSection
That will do the trick!
Who is online
Users browsing this forum: No registered users and 1 guest