XU4 portrait lcd

Post Reply
GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

XU4 portrait lcd

Unread post by GGGxxx » Thu Oct 18, 2018 5:14 pm

Hi guys!
Here viewtopic.php?p=184940#p184940 i have read that HDMI PHY/Mixer in XU4 have limit 2048 at horizontal.
So i have question: is there any way to use portrait lcd panel with 1200x1920 resolution?
I tryed set resolution to 1920x1200 and screen rotate options but there are no image on screen.
May be odroid creators can add timings to android kernel for this hdmi_phy?

User avatar
tobetter
Posts: 3694
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: XU4 portrait lcd

Unread post by tobetter » Thu Oct 18, 2018 5:23 pm

GGGxxx wrote:Hi guys!
Here viewtopic.php?p=184940#p184940 i have read that HDMI PHY/Mixer in XU4 have limit 2048 at horizontal.
So i have question: is there any way to use portrait lcd panel with 1200x1920 resolution?
I tryed set resolution to 1920x1200 and screen rotate options but there are no image on screen.
May be odroid creators can add timings to android kernel for this hdmi_phy?
Could you share the detail of your display?

GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 portrait lcd

Unread post by GGGxxx » Thu Oct 18, 2018 10:24 pm

Yes, sure.
This is 7 inch JDI tftmd070021 panel (http://www.panelook.com/TFTMD070021_JDI ... 20734.html) with hdmi-mipi board which just an bridge and doesn't support any scaling or rotate.
Output from Nirsoft MonitorInfoView under windows tells that it have 15-240KHz of Horizontal Freequency and 23-75HZ of Vertical Frequency.
And two modes in edid:
248x155@60Hz
1200x1920@60Hz

If it need, i can boot into an linux livecd on my x86 pc with connected screen and run neсessary commands from cmd.

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Sun Oct 21, 2018 11:34 am

Hi, GGGxxx.

Could you refer to this wiki page and try it?
It describes how to configure hdmi/display via drm_kms_helper from custom edid information of monitors.
https://wiki.odroid.com/odroid-xu4/appl ... ustom_edid

If it doesn't work with the guide,
please share custom_edid.bin file by getting it using the following way.

Code: Select all

$ sudo cat /sys/class/drm/card0/card0-HDMI-A-1/edid > /lib/firmware/custom_edid.bin
Supported pixel clock tables of exynos5422 hdmi phy are limited so,
it can not be supported with the pixel clock to support your lcd.
Then I will check it and try to adjust the full edid information by force.

GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 portrait lcd

Unread post by GGGxxx » Mon Oct 22, 2018 8:01 am

Hi, joy.
Thank you for reply!

I'm tryed follow this wiki commands but still no succes.
here http://vpn.gn0m.info:8000/d/e3dbd0bed9a046cf80e4/ you can download custom_edid.bin and log from xorg.

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Mon Oct 22, 2018 11:31 am

Thank you for sharing the binary, GGGxxx.

I've checked your custom_edid.bin and found the pixel clock is 151.350MHz which is not supported with available hdmi phy tables.

Code: Select all

Manufacturer: LZT Model 1 Serial Number 0
Made week 12 of 2017
EDID version: 1.3
Digital display
Image size is variable
Gamma: 2.20
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
Standard timings supported:
non-conformant standard timing (0 horiz)
Detailed mode: Clock 151.350 MHz, 90 mm x 160 mm
               1200 1260 1270 1305 hborder 0
               1920 1925 1927 1933 vborder 0
               -hsync -vsync 
Serial number: 00000000
Monitor ranges (GTF): 23-75Hz V, 15-240kHz H, max dotclock 340MHz
Has 1 extension blocks
Checksum: 0x16 (valid)

CEA extension block
Extension version: 3
19 bytes of CEA data
  Video data block
    VIC 00 Unknown mode 
    VIC 00 Unknown mode 
    VIC 00 Unknown mode 
    VIC 00 Unknown mode 
    VIC 00 Unknown mode 
    VIC 00 Unknown mode 
    VIC 00 Unknown mode 
  Audio data block
    Linear PCM, max channels 1
    Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 32
    Supported sample sizes (bits): 24 20 16
  Vendor-specific data block, OUI 000c03 (HDMI)
    Source physical address 3.0.0.0
    Supports_AI
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
4 native detailed modes
Detailed mode: Clock 151.350 MHz, 90 mm x 160 mm
               1200 1260 1270 1305 hborder 0
               1920 1925 1927 1933 vborder 0
               -hsync -vsync 
Detailed mode: Clock 151.350 MHz, 90 mm x 160 mm
               1200 1260 1270 1305 hborder 0
               1920 1925 1927 1933 vborder 0
               -hsync -vsync 
Detailed mode: Clock 151.350 MHz, 90 mm x 160 mm
               1200 1260 1270 1305 hborder 0
               1920 1925 1927 1933 vborder 0
               -hsync -vsync 
Detailed mode: Clock 151.350 MHz, 90 mm x 160 mm
               1200 1260 1270 1305 hborder 0
               1920 1925 1927 1933 vborder 0
               -hsync -vsync 
Detailed mode: Clock 151.350 MHz, 90 mm x 160 mm
               1200 1260 1270 1305 hborder 0
               1920 1925 1927 1933 vborder 0
               -hsync -vsync 
Checksum: 0x90 (valid)

EDID block does NOT conform to EDID 1.3!
	Name descriptor not terminated with a newline
	Detailed block string not properly terminated
We need another approach, ;)
so I will try to make another 1200x1920 custom_edid binary to work with a pixel clock that is available with current phy table.

Could you let me work it for a couple of days?

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Mon Oct 22, 2018 3:38 pm

Hello GGGxxx,
I made another custom_edid.bin to support 1200x1920 resolution.
Please find the attachment, 1200x1920.bin.zip.

It contains the following timing information.

Code: Select all

Detailed mode: Clock 154.000 MHz, 312 mm x 500 mm
               1200 1260 1270 1319 hborder 0
               1920 1925 1927 1945 vborder 0
               -hsync -vsync 
Serial number: Linux
Monitor ranges (GTF): 59-61Hz V, 115-117kHz H, max dotclock 160MHz
I don't have the monitor those native resolution is 1200x1920, (all of my monitors say only "unsupported resolution.....")
so could you check this binary with your monitor?

https://wiki.odroid.com/odroid-xu4/appl ... ustom_edid

1. rename 1200x1920.bin to custom_edid.bin
2. copy it into /lib/firmware
3. modify boot.ini

Code: Select all

setenv videoconfig "drm_kms_helper.edid_firmware=custom_edid.bin"
4. system reboot
5. after reboot, you will see ubuntu login display after booting messages if it works normally.
6. or you can check if all of setting is ok, please refer to this.
https://wiki.odroid.com/odroid-xu4/appl ... f_it_works

Please check it and share the result.
Attachments
1200x1920.bin.zip
(275 Bytes) Downloaded 20 times

GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 portrait lcd

Unread post by GGGxxx » Mon Oct 22, 2018 6:27 pm

Joy, THANK YOU!!!
You just a magician!
it's working under ubuntu, is it possible to use under android or i should ask voodik to add something in his build on next release?

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Tue Oct 23, 2018 10:17 am

GGGxxx wrote: it's working under ubuntu, is it possible to use under android or i should ask voodik to add something in his build on next release?
Hi, GGGxxx.
Glad to hear that it's working!!! :D

Android hdmi driver is different from ubuntu's one,
so, hdmi driver of xu4 android kernel should be updated to support the resolution.

Please give me several days for driver implementation.
Once driver work is done, I will ask android maintainers including voodik to include it for next release.
Then, I will share the status.

Can I ask one?
Which Android version do you use?

GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 portrait lcd

Unread post by GGGxxx » Tue Oct 23, 2018 5:29 pm

I tryed use LineageOS-15.1 Android 8.1 Oreo for ODROID-XU3/XU4 and want stay with this version. But right now my carpc project not implemented yet and i free to test install any version on the table :)
Yesterday i make an little change in your edid.bin with part of physical dimension of screen (replaced size from 31*50cm to actual size 9*16cm) and it look like each visible elements become bigger in mate gdm.

User avatar
voodik
Posts: 1501
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 2 times
Been thanked: 15 times
Contact:

Re: XU4 portrait lcd

Unread post by voodik » Wed Oct 24, 2018 2:22 am

joy wrote:
GGGxxx wrote: it's working under ubuntu, is it possible to use under android or i should ask voodik to add something in his build on next release?
Hi, GGGxxx.
Glad to hear that it's working!!! :D

Android hdmi driver is different from ubuntu's one,
so, hdmi driver of xu4 android kernel should be updated to support the resolution.

Please give me several days for driver implementation.
Once driver work is done, I will ask android maintainers including voodik to include it for next release.
Then, I will share the status.

Can I ask one?
Which Android version do you use?
Here is a commit that shows how to add new resolution.
https://github.com/voodik/android_kerne ... 6f20295f1c

When you add new resolution support to kernel i will update userspace and Odroid Utility.

Thanks!
Buy me a beer ;)
BTC: 3Lx83Vh9HL7UbsD9oDBcMR9pQMRSPEfRmg
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Wed Oct 24, 2018 9:38 am

voodik wrote: Here is a commit that shows how to add new resolution.
https://github.com/voodik/android_kerne ... 6f20295f1c

When you add new resolution support to kernel i will update userspace and Odroid Utility.

Thanks!
Hi voodik,
Yes, you're right.
The commit is what I made.

Please let me work it on kernel side for 1200x1920 resolution.
Once I'm done (maybe early next week), I will let you know. :)

Thanks!

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Mon Oct 29, 2018 5:52 pm

Hi GGGxxx,

We've done kernel driver update to support 1200x1920
and also updated android framework side of Android 4.4.4.

We don't have a monitor those native resolution is 1200x1920,
so could you help us?
If you're available, could you test the following test android image and confirm if it works.
https://dn.odroid.com/5422/ODROID-XU4/Android/test/

If it works well with your monitor, relative commits will be merged to Hardkernel github
and I will share the information with voodik so, he can work userspace and odroid utility of lineageOS Android images.

If you need more information, please let me know.
Last edited by joy on Tue Oct 30, 2018 7:58 am, edited 1 time in total.

GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 portrait lcd

Unread post by GGGxxx » Mon Oct 29, 2018 7:19 pm

Hi Joy!
I will try it today or tomorrow.

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Tue Oct 30, 2018 7:59 am

GGGxxx wrote:Hi Joy!
I will try it today or tomorrow.
Thanks!!! :)

GGGxxx
Posts: 14
Joined: Sat Sep 29, 2018 3:28 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: XU4 portrait lcd

Unread post by GGGxxx » Sat Nov 03, 2018 5:52 am

Hi all!
Sorry for long silence, it was an thing which took all my mind...
Anyway, i just tested images and want say again that you joy just an magican!
It works!

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Sat Nov 03, 2018 9:57 am

Hi GGGxxx.
Thank you so much for confirming it!!!
Glad to hear that it works with your monitor. :D

The related commits will be merged early next week
and I will inform voodik of the kernel commits.

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Mon Nov 05, 2018 5:24 pm

Hello voodik,

Relative kernel commit for 1200x1920p60hz has been merged.
https://github.com/hardkernel/linux/com ... cb6f4e63bd
And a new version of Android v6.6 also has been released.
https://wiki.odroid.com/odroid-xu4/os_i ... droid/v6.6

Could you merge the kernel commit and please work userspace side of LineageOS-15.1 Android version?
viewtopic.php?f=94&t=28622&start=100#p236397

User avatar
voodik
Posts: 1501
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Has thanked: 2 times
Been thanked: 15 times
Contact:

Re: XU4 portrait lcd

Unread post by voodik » Sat Feb 16, 2019 5:45 pm

Buy me a beer ;)
BTC: 3Lx83Vh9HL7UbsD9oDBcMR9pQMRSPEfRmg
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

joy
Posts: 843
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 8 times
Been thanked: 35 times
Contact:

Re: XU4 portrait lcd

Unread post by joy » Mon Feb 18, 2019 11:45 am

Thank you for sharing the status here, voodik! :)

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 3 guests