Odroid C2 Portrait Mode

Post Reply
Bradyok
Posts: 12
Joined: Wed May 31, 2017 9:31 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Odroid C2 Portrait Mode

Unread post by Bradyok » Wed Mar 06, 2019 3:31 pm

I saw a few posts about the XU4 and portrait mode but I couldn't find any for the C2. I have tried to use XRAND to

xrandr --output default --rotate left

Error:output default cannot use rotation "left" reflection "none".

I am using a C2 connected to a box via hdmi that then converts to LVDS to talk to the Samsung panel. Do I need to manually enter in some settings to get it to work? I think it's just not reading all the settings from my monitor, but if I can find the specs of the Samsung LTI550HN07 screen maybe it can work?

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

Re: Odroid C2 Portrait Mode

Unread post by joy » Wed Mar 06, 2019 4:05 pm

I haven't tried a portrait mode by rotating a whole screen using xrandr
and I'm wondering the way and want to find it if it exist.

Or how about another approach using a low-level rotation from HDMI phy side?
If your monitor's native resolution is portrait one, this approach is possible.
Could you share the native resolution of your monitor?

(update)
I found a link here.
https://pid.samsungdisplay.com/ko/digit ... lti550hn07
Is it right spec?
Last edited by joy on Wed Mar 06, 2019 4:09 pm, edited 1 time in total.

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

Re: Odroid C2 Portrait Mode

Unread post by odroid » Wed Mar 06, 2019 4:06 pm

Did you modify xorg configuration file?
viewtopic.php?f=136&t=18709&start=200#p168184

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

Re: Odroid C2 Portrait Mode

Unread post by joy » Wed Mar 06, 2019 4:13 pm

As I found, Bradyok's monitor must be landscape resolution. 1920x1080.
So you'd better to try odroid's guide.
It looks my aforementioned guide doesn't work.

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

Re: Odroid C2 Portrait Mode

Unread post by joy » Thu Mar 07, 2019 12:14 pm

I've tried the guide by modifying xorg.conf.

On Ubuntu 16.04, it works well with this xorg.conf.
I modified /etc/X11/xorg.conf and restart lightdm, then I got portrait display.

Code: Select all

Section "Device"
        Identifier      "FBTURBO"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "Rotate" "CCW"
        Option          "SwapbuffersWait" "true"
EndSection

Code: Select all

$ sudo service lightdm restart
But in case of Ubuntu 18.04, still I can't get the portrait display.

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

Re: Odroid C2 Portrait Mode

Unread post by joy » Thu Mar 07, 2019 12:19 pm

I found the solution. :D
Please modify the following conf in case of C2 Ubuntu 18.04.

Code: Select all

/usr/share/X11/xorg.conf.d/99-odroidc2.conf
Add Option "Rotate" "CCW".

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
Then, restart lightdm.

Code: Select all

$ sudo service lightdm restart
Then, you can get portrait display rotated by 270 degree (CCW).

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

Re: Odroid C2 Portrait Mode

Unread post by odroid » Thu Mar 07, 2019 12:26 pm

Nice finding! :D

tung256
Posts: 37
Joined: Thu Mar 01, 2018 10:45 pm
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Portrait Mode

Unread post by tung256 » Thu Apr 25, 2019 11:13 pm

this works for me and ubuntu 18!
thank you for posting the solution!

biterror
Posts: 20
Joined: Tue Oct 27, 2015 4:01 pm
languages_spoken: english
ODROIDs: C1+, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Portrait Mode

Unread post by biterror » Tue Jun 11, 2019 3:48 am

Real nice that portrait display mode works now (I could never get it working on C1+ a few years ago).

Is it possible to get hw acceleration working on Chromium in portrait mode? How about video? I tried it under latest Armbian, but Chromium is very slow in portrait mode (even moving windows around is sluggish). I'll try Ubuntu again tomorrow, but Chromium didn't feel too fast today.

Is there a complete Ubuntu image for C2 with a mainline kernel and all the hw acceleration support in place?

Thanks!

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

Re: Odroid C2 Portrait Mode

Unread post by odroid » Tue Jun 11, 2019 8:52 am

Ubuntu Chromium can utilize the Mali GPU acceleration for OpenGL-ES rendering.
But there is no VPU acceleration for video playback.

The mainline kernel is still have some experimental features and we've kept using Kernel 3.16LTS.
Look into this thread to know about the mainline kernel development status.
viewtopic.php?f=135&t=22717

biterror
Posts: 20
Joined: Tue Oct 27, 2015 4:01 pm
languages_spoken: english
ODROIDs: C1+, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Portrait Mode

Unread post by biterror » Tue Jun 11, 2019 7:16 pm

Thank you, odroid. I was reading that thread yesterday and it sounded good, but .. I guess the work is still in progress. Will the mainline kernel support VPU acceleration for video playback or is it impossible?

Would it be better to use N2 or does it have the same limitations? We just need a portrait mode display and a decent web browser with hw acceleration and video playback ;-)

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

Re: Odroid C2 Portrait Mode

Unread post by odroid » Wed Jun 12, 2019 9:26 am

No.
Any ODROID can't play 2K/4K videos smoothly with the Web-browser on the Linux platforms due to some different video playback APIs implementation.

Try Android OS image since our many digital signage manufacturing partners have been using the Android OS to build their own product with the ODROID-C2 and N2.

biterror
Posts: 20
Joined: Tue Oct 27, 2015 4:01 pm
languages_spoken: english
ODROIDs: C1+, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C2 Portrait Mode

Unread post by biterror » Wed Jun 12, 2019 4:07 pm

Okay, thanks for the info. Android was my plan C, I just wish I knew more about programming on Android ;-)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests