Waveshare 5.5 AMOLED and N2 with UBUNTU

Post Reply
ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

Hi, my display/touch Waveshare 5.5 doesn't work well plug & play with Ubuntu (for N2) but it works plug & play with Android (for N2).
I've read https://forum.odroid.com/viewtopic.php ... .5#p261109 but I'don't know if this is applyable to N2, help me pease :D

What should I do? how should I edit the file boot.ini ? 1080x1920_waveshare_125590.bin ?

tobetter
Posts: 5212
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: 176 times
Been thanked: 547 times
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by tobetter »

ManuelFantoni wrote:
Fri Jul 05, 2019 1:40 am
Hi, my display/touch Waveshare 5.5 doesn't work well plug & play with Ubuntu (for N2) but it works plug & play with Android (for N2).
I've read https://forum.odroid.com/viewtopic.php ... .5#p261109 but I'don't know if this is applyable to N2, help me pease :D

What should I do? how should I edit the file boot.ini ? 1080x1920_waveshare_125590.bin ?
AFAIK, it's not been tested fully yet and in progress, maybe the stock just arrived today for testing.
Let us update sometime soon in the thread.
These users thanked the author tobetter for the post:
ManuelFantoni (Fri Jul 05, 2019 7:13 pm)

phaseshifter
Posts: 3546
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 46 times
Been thanked: 45 times
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by phaseshifter »

pls have a read here ....if it may also help admin....phase

https://www.waveshare.com/w/upload/b/be ... ual_EN.pdf

Code: Select all

force hotplug dection....
the oled also has option for extra power input via a usb otg..i suggest you also try an otg-usb cable for extra power...


possible 1080 modes to force to choose from..try .setenv one mode at a time set autodect to false...

# "1080p60hz" | 1920x1080 Progressive 60Hz
# "1080p50hz" | 1920x1080 Progressive 50Hz
# "1080p30hz" | 1920x1080 Progressive 30Hz
# "1080p24hz" | 1920x1080 Progressive 24Hz
# "1080i60hz" | 1920x1080 Interlaced 60Hz
# "1080i50hz" | 1920x1080 Interlaced 50Hz


i think that odroids should if at all possible support these waveshare screens...
they have quite an extensive range..
although i am wondering about the particulars may well be an native resolution of 720p .... or differ from model to model....the hdmi versions i am quoting about here... here...

still i wonder if the problem may well be just that the user needs the extra support of the otg input power as well..
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

phaseshifter
Posts: 3546
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 46 times
Been thanked: 45 times
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by phaseshifter »

Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

Hi,
To run the waveshare 5.5 moonitor on N2, I need to check some about hdmi pixel clock and colorspace option.
I've confirmed this monitor works on ODROID-C2 with display auto detection option,
but with N2, not yet.

Please let me check them for a couple of days,
and I will share the status here once I find a solution. ;)
These users thanked the author joy for the post (total 2):
ManuelFantoni (Mon Jul 08, 2019 5:37 pm) • phaseshifter (Sat Jul 13, 2019 3:19 pm)

phaseshifter
Posts: 3546
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 46 times
Been thanked: 45 times
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by phaseshifter »

@joy wondering my self i think there products have a place for the odroids...etc..etc
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

Hi @ManuelFantoni, @phaseshifter,
Let me share current status with N2.

I've tried display auto detection on N2 with this monitor and I got 1080x1920 portrait display but it's very flickering and cracked-looking.
And I made a manual display mode patch based on the monitor's timing and pixel clock but it didn't work well.
So I'm still looking into this issue and adjusting N2 hdmi driver based on 135.27MHz pixel clock and its native timings.
So far it's complicated for me to find where the actual cause is.

Please give me several days more.
These users thanked the author joy for the post (total 2):
phaseshifter (Mon Jul 15, 2019 11:50 am) • ManuelFantoni (Mon Jul 15, 2019 5:46 pm)

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

joy wrote:
Mon Jul 15, 2019 7:58 am
[CUT]
Please give me several days more.
thanks

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

joy wrote:
Mon Jul 15, 2019 7:58 am

[CUT]

Please give me several days more.
Hi Joy,

is there anything I can do to give you support? for example, do tests with Raspberry etc?

thank you

Manuel

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

ManuelFantoni wrote:
Thu Jul 25, 2019 7:24 pm
joy wrote:
Mon Jul 15, 2019 7:58 am

[CUT]

Please give me several days more.
Hi Joy,

is there anything I can do to give you support? for example, do tests with Raspberry etc?

thank you

Manuel
Hi Manuel,
Really sorry for very late update.
I was busy with another project so, I wasn't available to look into the N2 display issue last week. :(

I've already checked it works with Rpi3 and ODROID-C2/XU4.

I'm trying to finish the that urgent work of the project today and will check this issue this week.
Sorry again.
These users thanked the author joy for the post:
ManuelFantoni (Wed Jul 31, 2019 1:10 am)

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

Hi Manuel,
I've tried to adjust hdmi timings in amlogic hdmi driver but no gain so far.
I put various kinds of tests and I guess it may be graphic driver issue, not hdmi timing issue.

I have crashed and flickering display of ubuntu desktop with "display autodetection" mode.
1080x1920_hdmi.png
1080x1920_hdmi.png (1.4 MiB) Viewed 3928 times
I tried hdmi test mode and got normal color bar display like this.

Code: Select all

$ echo bist line > /sys/class/amhdmitx/amhdmitx0/debug
1080x1920_hdmi_test.png
1080x1920_hdmi_test.png (1.11 MiB) Viewed 3928 times
So I've modified some fb-related parameters and some changes came (no flickering now)
but still crashed display is shown. :(

I will keep figuring out this issue and I will share it once I have any update.
Sorry for slow progress. For me, this monitor is a tough opponent.
These users thanked the author joy for the post:
ManuelFantoni (Mon Aug 05, 2019 7:21 pm)

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

joy wrote:
Sun Aug 04, 2019 7:02 pm
Hi Manuel,
I've tried to adjust hdmi timings in amlogic hdmi driver but no gain so far.
I put various kinds of tests and I guess it may be graphic driver issue, not hdmi timing issue.

Thank you Joy for your valuable work.
Is there a possibility to modify the driver? I would like to try but I would need some help.

Thank you
Manuel

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

ManuelFantoni wrote:
Tue Aug 06, 2019 7:59 pm
joy wrote:
Sun Aug 04, 2019 7:02 pm
Hi Manuel,
I've tried to adjust hdmi timings in amlogic hdmi driver but no gain so far.
I put various kinds of tests and I guess it may be graphic driver issue, not hdmi timing issue.

Thank you Joy for your valuable work.
Is there a possibility to modify the driver? I would like to try but I would need some help.

Thank you
Manuel
Hi Manuel,

Just to share current status and discuss further check points, I'm sharing this. ;)
I've been checking and adjusting these drivers.
1. hdmi driver
linux/drivers/amlogic/media/vout/hdmitx/
https://github.com/hardkernel/linux/tre ... out/hdmitx

2. osd driver (graphic/fb0)
linux/drivers/amlogic/media/osd/
https://github.com/hardkernel/linux/tre ... /media/osd

Usually, most of display abnormal initialization is caused by wrong hdmi timing.
So I've modified the following factors by adjusting hdmi drivers.
- try higher/lower pixel clock and adjust hdmi source clock, hpll generation logic
- modify hdmi timings
- try lower/higher vsync / refresh rate
- adjust color depth / mode factors
- bit width
- portrait setting (No, other portrait resolutions have no problem.)
- or Any idea?
But I didn't get any better result.

Actually, now, I have no idea about the real cause.
But with ODROID-C2, after setting the color mode as full RGB option, this monitor works normally with auto detection,
also for XU4, some modification of display timing is needed and it works now.
( And I will complete this last mission, too. )

Now I will compare all OSD/HDMI-related registers between C2 and N2.
Main features are similar except pll block and dynamic hdr block.
Maybe there are some missing factors in the drivers of S922X we need to customize.

If you have any suggestion, please let me know. :)
These users thanked the author joy for the post:
ManuelFantoni (Wed Aug 07, 2019 6:05 pm)

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

Hi, are there any news?

thank you

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

I'm sorry.
No positive update so far. :(
These users thanked the author joy for the post:
ManuelFantoni (Wed Sep 04, 2019 5:54 pm)

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

is there any update?
the strange thing is that with Android it works perfectly, isn't there the possibility to take the driver that uses Android and adapt it for Ubuntu? thanks

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

I encounter a similar issue with C2.
In C2 case, Ubuntu has no issue with this 5.5 inch waveshare monitor, but Android shows abnormal display.
viewtopic.php?f=139&t=36384

Display system of Android is different from Ubunutu
because it has its own framework, so the framework communicates to kernel driver during booting process.
It must be a timing issue of fb driver during initial stage.

Very sorry again for very late progress. :(
I keep digging for it. (and I'm trying to clear off other interrupts those disturb me to focus on this issue. :( )
These users thanked the author joy for the post:
ManuelFantoni (Wed Oct 02, 2019 1:04 am)

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

hi, is there any chance that a solution will be found soon? I need to use that display

thanks
Manuel

ManuelFantoni
Posts: 31
Joined: Thu Jun 27, 2019 10:18 pm
languages_spoken: english, italian
ODROIDs: N2 4Gb
Has thanked: 25 times
Been thanked: 0
Contact:

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by ManuelFantoni »

Any news?

thanks

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

Re: Waveshare 5.5 AMOLED and N2 with UBUNTU

Post by joy »

Hi Manuel,
I'm sorry for no update so far.

I had tried to figure out this issue until early November, 2019, then, did put off it for a while, actually, (give up.....)
because I realized I kept digging same wrong points and couldn't find any clue to solve this issue.

Now I have some urgent issues and jobs to fix by the end of this month,
then, I am available to look into it again.
Still I don't feel so sure it gets solved,
but will try it again next month after I have time to recharge myself by being absorbed in other topics.
These users thanked the author joy for the post:
ManuelFantoni (Thu Feb 27, 2020 8:10 pm)

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 0 guests