iMX8: No default display support on wayland

cancel
Showing results for 
Search instead for 
Did you mean: 

iMX8: No default display support on wayland

4,153 Views
sivasubramanian
Contributor I

Hi,

My application is trying to get the eglDisplay using below code

display = eglGetDisplay( EGL_DEFAULT_DISPLAY );

on iMX8m where Wayland display system is used, but I'm getting the below error

EGL: Warning: No default display support on wayland

Is EGL_DEFAULT_DISPLAY not supported on Wayland as warned above or am I

supposed to do anything special here?

0 Kudos
14 Replies

1,345 Views
304338916
Contributor I

Hello,

 

Did you find the answer to your question, I also encountered related problems.

 

regards

MoreyLiu

0 Kudos

1,345 Views
sivasubramanian
Contributor I

Please make sure WAYLAND_DISPLAY and XDG_RUNTIME_DIR are exported as required. Strangely this error vanished when we launch the Wayland client application in the same minicom (instead of ssh terminal) where the compositor is launched.

0 Kudos

1,345 Views
304338916
Contributor I

Hello,

 

Can you give me more information?

I don't know how to set the value of WAYLAND_DISPLAY and XDG_RUNTIME_DIR.

 

best regards

MoreyLiu

0 Kudos

1,345 Views
sivasubramanian
Contributor I

Hi,

Which compositor you use? check that for the display it created & export like below. 

export WAYLAND_DISPLAY=wayland-0      // Compositor created display

export XDG_RUNTIME_DIR=/tmp               // can be some temporary dir

0 Kudos

1,345 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  Use "i.MX_Linux_User's_Guide.pdf"  from Linux  doc package for some details.

Regards,

Yuri.

0 Kudos

1,345 Views
jamesbone
NXP TechSupport
NXP TechSupport

YuriMuhin_ng‌,  Can you please continue the follow up?

0 Kudos

1,345 Views
sivasubramanian
Contributor I

Thanks Yuri for the document information :-)

0 Kudos

1,345 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  Is any display selected in U-boot environment?

Also corresponding .dts  file, supporting display, should be used 

Regards,

Yuri.

0 Kudos

1,345 Views
sivasubramanian
Contributor I

Hi Yuri,

How can we check which display is selected in U-boot environment? boot logs?

0 Kudos

1,345 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  Use section 4.7 (Running Linux OS on the target) of "i.MX_Linux_User's_Guide.pdf"

for more details.  Display settings also are provided in the device tree file, which name

is set in fdt_file U-boot environment variable. For example, FAT partition of demo boot

SD card contains several configuration (fdt) files.  

Regards,

Yuri.

0 Kudos

1,345 Views
diegoadrian
NXP Employee
NXP Employee

Hello

Which BSP version are you using?

Best Regards,

Diego.

0 Kudos

1,345 Views
sivasubramanian
Contributor I

i.MX Linux Yocto Project BSP 4.9.51_8mq_ga Release, If I'm correct. ajutras@orthogone.com‌ correct me if not.

0 Kudos

1,345 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Can you please try exporting the below variable with the below command.

  

export DISPLAY=:0.0

 

Best Regards,

Diego. 

0 Kudos

1,345 Views
sivasubramanian
Contributor I

Hi Diego,

Thanks for suggesting. I tried that export DISPLAY=:0.0, but no help. Meanwhile, wl_display_connect() is behaving differently as below when invoked from ssh terminal as against launching from standard minicom serial terminal (working properly). Any thoughts on this as the same wl_display_connect() which works on serial terminal,  doesn't work when launched from ssh terminal?

failed to connect to wayland display: westeros-0

here westeros-0 is the display created by Wayland compositor.

0 Kudos