Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Odroid-XU4 Android full-screen portrait orientation

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:

persist.demo.hdmirotation=portrait ro.sf.hwrotation=270 (I have tried 90 too) windowsmgr.support_rotation_270=true 

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?

like image 534
Carles Avatar asked May 10 '17 12:05

Carles


1 Answers

I had this same issue using LineageOS from here

(Source)

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.

(Fetched)

ODROID XU4 on an ELO 32" Touchscreen

like image 117
brock Avatar answered Oct 20 '22 12:10

brock