Wayland/weston, Qt and RDP connection...

Matti Ristimäki Matti.Ristimaki at planmeca.com
Fri Jan 13 12:13:41 UTC 2023


Any tips, where/how to debug RDP related problem with Wayland/Weston. Not kind of sure if this is Weston problem or Qt problem...

Trying to create a RDP connection to a Qt GUI-application.

# Requires systemd-notify.so Weston plugin.
ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log --modules=systemd-notify.so --modules=screen.share.so

Seems, that the Qt application doesn't start after adding the "--modules=screen.share.so" to services. And it doesn't start:

root at sm2s-imx8mp:~# journalctl -u cpx.service
-- Journal begins at Fri 2023-01-13 08:19:03 CET, ends at Fri 2023-01-13 10:26:26 CET. --
Jan 13 08:20:06 sm2s-imx8mp systemd[1]: Started CPX Control Panel.
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: qt.core.logging: Loading "logging.ini" ...
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: Failed to create wl_display (No such file or directory)
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: EGL: Warning: No default display support on wayland
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: qt.qpa.wayland: EGL not available
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: qt.qpa.plugin: Could not load the Qt platform plugin "wayland-egl" in "" even though it was found.
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the app>
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[769]: Available platform plugins are: wayland, offscreen, vnc, minimal, minimalegl, vkkhrdisplay, eglfs, waylan>
Jan 13 08:20:06 sm2s-imx8mp cpx.sh[764]: /opt/cpx/cpx.sh: line 84:   769 Aborted                 ./cpx --display=LVDS-1 --rotate=0 "$@"
Jan 13 08:20:06 sm2s-imx8mp systemd[1]: cpx.service: Main process exited, code=exited, status=134/n/a
Jan 13 08:20:06 sm2s-imx8mp systemd[1]: cpx.service: Failed with result 'exit-code'.

Basic overview:

Running "first" weston with...
Qt-application (CPX Control Panel is the Qt application)

...and when the screen.share.so starts the "second" Weston, a RDP command is executed from weston.ini*

*=weston.ini will run the rdp-backend.so

command=@bindir@/weston --backend=rdp-backend.so --rdp-tls-cert=/data/etc/ssh/tls.crt --rdp-tls-key=/data/etc/ssh/tls.key --shell=fullscreen-shell.so --no-clients-resize --no-config

More about platform(iMX8, Poky (Yocto Project Reference Distro)) and Qt debug print can be found at:




Matti Ristimäki
Test Engineer
Dental Care Units & CAD/CAM Division

This e-mail may contain confidential or privileged information and is intended solely for the person to whom it is addressed. If you have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from the alteration of this e-mail, or as a result of any virus being passed on or as of transmission of this e-mail in general.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230113/a4927f6f/attachment.htm>

More information about the wayland-devel mailing list