Landscape Orientation with Portrait Switching

Moderators: mdrjr, odroid

Landscape Orientation with Portrait Switching

Unread postby ajb » Fri May 18, 2018 5:48 am

Hello Everybody, hello Hardkernel team,

I just bought the Odroid-C2 to use it as an Android media center system; when installing the last Marshmallow image, I discovered a problem by some apps (like ccleaner): they switch the screen orientation into portrait mode. Because I don't like to get a 90 degree neck problem, I searched and found a simple solution for that problem:

from frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
/*
* property: persist.sys.app.rotation has three cases:
* 1.force_land: always show with landscape, if a portrait apk, system will scale up it
* 2.middle_port: if a portrait apk, will show in the middle of the screen, left and right will show black
* 3.original: original orientation, if a portrait apk, will rotate 270 degree
*/

So please change the key-value entry in build.prop from
persist.sys.app.rotation=original
to
persist.sys.app.rotation=force_land

and your customers will thanx you that :D
ajb
 
Posts: 1
Joined: Fri May 18, 2018 5:29 am
languages_spoken: german english
ODROIDs: Odroid-C2

Re: Landscape Orientation with Portrait Switching

Unread postby odroid » Fri May 18, 2018 11:34 pm

Thank you for the suggestion. We don't like the 90° or 270° neck problem either. :D
We will add an option in our ODROID-Utility app to toggle the rotation option since many customers are using ODROID as a digital signage solution in portrait mode.
User avatar
odroid
Site Admin
 
Posts: 28506
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Landscape Orientation with Portrait Switching

Unread postby benwillcox » Sat May 19, 2018 4:54 am

This would be very useful in a Car PC application too. At the moment we can workaround this with one of the many orientation fixing Apps, but it would be a nicer solution to have this integrated.

Ben
benwillcox
 
Posts: 108
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english
ODROIDs: C1+
C2


Return to Android

Who is online

Users browsing this forum: No registered users and 5 guests