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?
Hello,
Did you find the answer to your question, I also encountered related problems.
regards
MoreyLiu
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.
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
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
Hello,
Use "i.MX_Linux_User's_Guide.pdf" from Linux doc package for some details.
Regards,
Yuri.
YuriMuhin_ng, Can you please continue the follow up?
Thanks Yuri for the document information :-)
Hello,
Is any display selected in U-boot environment?
Also corresponding .dts file, supporting display, should be used
Regards,
Yuri.
Hi Yuri,
How can we check which display is selected in U-boot environment? boot logs?
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.
Hello
Which BSP version are you using?
Best Regards,
Diego.
i.MX Linux Yocto Project BSP 4.9.51_8mq_ga Release, If I'm correct. ajutras@orthogone.com correct me if not.
Hello,
Can you please try exporting the below variable with the below command.
export DISPLAY=:0.0
Best Regards,
Diego.
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.