Solved: Android C2 - resolution in portrait mod

Post Reply
armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Solved: Android C2 - resolution in portrait mod

Post by armin17 »

Android C2 - resolution in portrait mode.
I tested the resolution and screen rotation on the C2 - with Android 5.1.1 (v1.5) and Android 5.1.1 (v1.6) with Odroid Utility. Screen rotation works, but can not achieve resolution of 1920x1080 (1080p 60Hz), when placed in portrait mode. Resolution is automatically returned to 720p when the switch rotation to portrait mode, though still in the settings written to the 1080p
Image
Image
Image
Image
Image
Image
Image
Image
Last edited by armin17 on Sat Jul 30, 2016 2:40 am, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

Need to edit /system/bin/set_density.sh file.
Refer this thread.
http://forum.odroid.com/viewtopic.php?f=137&t=21729

armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolution- edit set_density.sh dont work

Post by armin17 »

1 Odroid utility set : portrait - 270 ; resolution 1080p (densitiy 260 dpi)

Image

2 I changed the file /system/bin/set_density.sh. resolution 1920x1080 , 260 to 160

Image

3 After the restart screen is no longer in portrait mode. The display is returned to the landscape (1920x1080).

Image

ErDova
Posts: 108
Joined: Sat Mar 12, 2016 9:28 pm
languages_spoken: English
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by ErDova »

Have you tried it with 1.4? 1.6 has screwed 1080p for me as well, so it may be related.

armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by armin17 »

I tested the version 1.4
The same problem occurs

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

Which app did you use to check the resolution?
Can you try also our latest V1.7?
http://odroid.com/dokuwiki/doku.php?id= ... _note_v1.7

cbl
Posts: 30
Joined: Fri Oct 23, 2015 6:53 pm
languages_spoken: english, german
ODROIDs: xu4, c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by cbl »

I tried V1.7, the problem still occurs.

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

Which app did you use to check the resolution?
Is the HDMI physical resolution still 720p? or logical DPI is 720p?

cbl
Posts: 30
Joined: Fri Oct 23, 2015 6:53 pm
languages_spoken: english, german
ODROIDs: xu4, c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by cbl »

The physical resolution is 1080x1920, i checked with the "show pointer location" from the developer tools.
The problem is the dpi/wm density of 260.

armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by armin17 »

Previously described problem applies to version 1.7
Is there anyone in Hardkernel companies use HD (1920x1080) monitor. Is it a problem for you to connect odroid C2 device and test it?

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

We are using 1080p or 4K displays without rotation.
I think the DPI management in Android display framework seems to cause this issue.
It is really hard to know why the physical density doesn't match to the logical density only in the portrait mode.
Previous Kitkat on C1/XU4 had no this issue.

cbl
Posts: 30
Joined: Fri Oct 23, 2015 6:53 pm
languages_spoken: english, german
ODROIDs: xu4, c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by cbl »

will you investigate this further?

btw you can reproduce the steange behavior with adb too: Set portrait mode with the odroid-utiliy, reboot and then try "adb wm density 160". The screen will switch into landscape mode. "adb wm density 260" turns it back to portrait..

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

We will try to find why C2 Android doesn't support 260 DPI. It seems to be hard-coded in somewhere and it is very hard to find.

neeeds
Posts: 5
Joined: Fri Dec 25, 2015 6:00 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by neeeds »

Any luck guys ?

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

No... we couldn't find any solution yet. :(

neeeds
Posts: 5
Joined: Fri Dec 25, 2015 6:00 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by neeeds »

ok guys thanks alot i hope you will resolve this issue soon,

And how come i cant send any PM ?

neeeds
Posts: 5
Joined: Fri Dec 25, 2015 6:00 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by neeeds »

armin17 wrote:Android C2 - resolution in portrait mode.
I tested the resolution and screen rotation on the C2 - with Android 5.1.1 (v1.5) and Android 5.1.1 (v1.6) with Odroid Utility. Screen rotation works, but can not achieve resolution of 1920x1080 (1080p 60Hz), when placed in portrait mode. Resolution is automatically returned to 720p when the switch rotation to portrait mode, though still in the settings written to the 1080p
Image
Image
Image
Image
Image
Image
Image
Image
Hi armin17 you are in the digital signage industy.?

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

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by codewalker »

We found a workaround.
Download this package and install it.

https://drive.google.com/open?id=0B5aZm ... zBZR0dzS2c

Code: Select all

$ unzip framework-res.apk.zip
$ adb remount
$ adb push framework-res.apk /system/framework/
$ adb shell rm -rf /system/bin/set_density*

armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by armin17 »

I did as you write.
Where are the settings?
Can you explain what I still need to do?

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

Just reboot and set the resolution/orientation with odroid-utility app.

cbl
Posts: 30
Joined: Fri Oct 23, 2015 6:53 pm
languages_spoken: english, german
ODROIDs: xu4, c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by cbl »

thanks so much, works like a charm :)
Will this be integrated in the next release for the c2?

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1185 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by odroid »

Thank you for the confirmation.
Yes, it will be merged into the next update.

armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Post by armin17 »

cbl wrote:thanks so much, works like a charm :)
Will this be integrated in the next release for the c2?
I have not managed to achieve a resolution of 1080p.
I'll wait for a new release

armin17
Posts: 7
Joined: Mon May 23, 2016 12:15 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Solved Android C2 - resolution in portrait mod

Post by armin17 »

Android 5.1.1 (v2.0) has solved the problem with a resolution (1080P60Hz) portrait 270

jamesmilner
Posts: 1
Joined: Wed Jan 16, 2019 1:37 am
languages_spoken: english
ODROIDs: Android
Has thanked: 0
Been thanked: 0
Contact:

Re: Solved: Android C2 - resolution in portrait mod

Post by jamesmilner »

I didn't expect to find so much helpful information. Thanks for this topic. I will use it in my job.
Before that I found several good ideas on the site http://fixthephoto.com/ and I'd like to share with you.
Best wishes.
James

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 2 guests