iMX8: No default display support on wayland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I mean - it seems this message is intentional, would it be possible for NXP to add default display support for Wayland in the imx-gpu-viv driver? Right now there's a good amount of GPU frameworks out there that fail with this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Did you find the answer to your question, I also encountered related problems.
regards
MoreyLiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Use "i.MX_Linux_User's_Guide.pdf" from Linux doc package for some details.
Regards,
Yuri.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‌, Can you please continue the follow up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Yuri for the document information :-)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Is any display selected in U-boot environment?
Also corresponding .dts file, supporting display, should be used
Regards,
Yuri.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yuri,
How can we check which display is selected in U-boot environment? boot logs?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Which BSP version are you using?
Best Regards,
Diego.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i.MX Linux Yocto Project BSP 4.9.51_8mq_ga Release, If I'm correct. ‌ correct me if not.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you please try exporting the below variable with the below command.
export DISPLAY=:0.0
Best Regards,
Diego.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
