Page 1 of 1

Odroid C2 Portrait Mode

Posted: Wed Mar 06, 2019 3:31 pm
by Bradyok
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?

Re: Odroid C2 Portrait Mode

Posted: Wed Mar 06, 2019 4:05 pm
by joy
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?

Re: Odroid C2 Portrait Mode

Posted: Wed Mar 06, 2019 4:06 pm
by odroid
Did you modify xorg configuration file?
viewtopic.php?f=136&t=18709&start=200#p168184

Re: Odroid C2 Portrait Mode

Posted: Wed Mar 06, 2019 4:13 pm
by joy
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.

Re: Odroid C2 Portrait Mode

Posted: Thu Mar 07, 2019 12:14 pm
by joy
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.

Re: Odroid C2 Portrait Mode

Posted: Thu Mar 07, 2019 12:19 pm
by joy
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).

Re: Odroid C2 Portrait Mode

Posted: Thu Mar 07, 2019 12:26 pm
by odroid
Nice finding! :D

Re: Odroid C2 Portrait Mode

Posted: Thu Apr 25, 2019 11:13 pm
by tung256
this works for me and ubuntu 18!
thank you for posting the solution!

Re: Odroid C2 Portrait Mode

Posted: Tue Jun 11, 2019 3:48 am
by biterror
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!

Re: Odroid C2 Portrait Mode

Posted: Tue Jun 11, 2019 8:52 am
by odroid
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

Re: Odroid C2 Portrait Mode

Posted: Tue Jun 11, 2019 7:16 pm
by biterror
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 ;-)

Re: Odroid C2 Portrait Mode

Posted: Wed Jun 12, 2019 9:26 am
by odroid
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.

Re: Odroid C2 Portrait Mode

Posted: Wed Jun 12, 2019 4:07 pm
by biterror
Okay, thanks for the info. Android was my plan C, I just wish I knew more about programming on Android ;-)