Home » Android » Odroid-XU4 Android full-screen portrait orientation

Odroid-XU4 Android full-screen portrait orientation

Posted by: admin April 23, 2020 Leave a comment


I want to install an Android OS to an Odroid-XU4 device and connect it to a vertical touchscreen through HDMI. I want the content be displayed as portrait and fit the screen.

I installed 4.4.4, 6.0 (Cyanogenmod 13.0) and 7.1(Lineage 14.1) android images to the Odroid. By default, all of them display the screen as landscape , so I must configure the OS to get it displayed as portrait.

I first used AndroidUtility (a tool included in the OS image) and set HDMI orientation as portrait. The screen is displayed great (portrait and full screen) with the 4.4.4 OS image. Unfortunately, 4.4.4 OS doesn’t work for me because the device has to be a COSU and this needs 6.0 or above OS version.

But using AndroidUtility , the screen is displayed like this in both 6.0 and 7.1 OSs:

After looking it over forums, blogs… I found out that the solution should be editting these lines in OS build.prop config file:

ro.sf.hwrotation=270 (I have tried 90 too)

Doing this, 7.1 OS version looks as portait and fills all the screen… but it’s displayed upside down.

And 6.0 OS version looks not only turned, but also cropped:

How can I get it displayed as portrait and full-screen?

How to&Answers:

I had this same issue using LineageOS from here


I ran the update to the most recent release from the ODROID Utility and it changed the “HDMI Landscape / HDMI Portrait 90+270” to a straight 0, 90, 180, 270. To change it required a reboot.


ODROID XU4 on an ELO 32" Touchscreen


All Android devices manages the screen sizes in the same way, so that has nothing to do with your android odroid, unless you have forced to be in landscape, and your monitor source is with a portrait orientation.

enter image description hereYou just need to adjust your screen display monitor source orientation usually is using your screen menu, Menu->Display->(Horizontal or Vertical).