Odroid-XU4 Android full-screen portrait orientation

Post Reply
wijbenga49
Posts: 1
Joined: Mon Jun 24, 2019 7:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Odroid-XU4 Android full-screen portrait orientation

Post by wijbenga49 » Wed Jun 26, 2019 3:42 pm

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 vivavideo.

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:

Image

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

Code: Select all

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.
Last edited by wijbenga49 on Thu Jun 27, 2019 3:16 pm, edited 1 time in total.

User avatar
codewalker
Posts: 958
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 35 times
Been thanked: 60 times
Contact:

Re: Odroid-XU4 Android full-screen portrait orientation

Post by codewalker » Wed Jun 26, 2019 4:00 pm

Hi, wijbenga49.
I installed LineageOS 14.1 and set 90' and 270' rotation.
IMG_20190626_155441.jpg
IMG_20190626_155441.jpg (274.38 KiB) Viewed 1052 times
IMG_20190626_155553.jpg
IMG_20190626_155553.jpg (260.46 KiB) Viewed 1052 times
The portrait mode worked well.

User avatar
voodik
Posts: 1836
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 35 times
Been thanked: 215 times
Contact:

Re: Odroid-XU4 Android full-screen portrait orientation

Post by voodik » Wed Jun 26, 2019 4:09 pm

wijbenga49 wrote:
Wed Jun 26, 2019 3:42 pm
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:

Image

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

Code: Select all

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.
Hi, if you are using latest version of Lineageos-14.1 you don't need edit build.prop
Rotation can be set via boot.ini.
e.g.

Code: Select all

setenv rotation "90"
These users thanked the author voodik for the post:
codewalker (Wed Jun 26, 2019 4:25 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 3 guests