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

Unread post by armin17 » Wed Jun 08, 2016 11:34 pm

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: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Thu Jun 09, 2016 9:17 am

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

Unread post by armin17 » Fri Jun 10, 2016 5:26 pm

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

Unread post by ErDova » Fri Jun 10, 2016 7:19 pm

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

Unread post by armin17 » Wed Jun 15, 2016 5:05 am

I tested the version 1.4
The same problem occurs

User avatar
odroid
Site Admin
Posts: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Wed Jun 15, 2016 11:46 am

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

Unread post by cbl » Fri Jun 17, 2016 5:57 pm

I tried V1.7, the problem still occurs.

User avatar
odroid
Site Admin
Posts: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Fri Jun 17, 2016 6:45 pm

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

Unread post by cbl » Sat Jun 18, 2016 6:01 am

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

Unread post by armin17 » Sat Jun 18, 2016 4:55 pm

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: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Sat Jun 18, 2016 5:57 pm

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

Unread post by cbl » Mon Jun 20, 2016 6:56 pm

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: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Tue Jun 21, 2016 12:07 pm

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

Unread post by neeeds » Fri Jul 01, 2016 1:37 am

Any luck guys ?

User avatar
odroid
Site Admin
Posts: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Fri Jul 01, 2016 10:17 am

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

Unread post by neeeds » Mon Jul 04, 2016 6:03 am

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

Unread post by neeeds » Mon Jul 04, 2016 6:04 am

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: 832
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 31 times
Been thanked: 39 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by codewalker » Mon Jul 04, 2016 6:50 pm

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

Unread post by armin17 » Tue Jul 05, 2016 5:07 pm

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

User avatar
odroid
Site Admin
Posts: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Tue Jul 05, 2016 5:08 pm

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

Unread post by cbl » Tue Jul 05, 2016 6:44 pm

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

User avatar
odroid
Site Admin
Posts: 33297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 376 times
Been thanked: 449 times
Contact:

Re: Android C2 resolutionAndroid C2 - resolution in portrait

Unread post by odroid » Tue Jul 05, 2016 6:48 pm

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

Unread post by armin17 » Thu Jul 07, 2016 3:15 pm

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

Unread post by armin17 » Sat Jul 30, 2016 2:39 am

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

Unread post by jamesmilner » Wed Jan 16, 2019 1:38 am

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 3 guests