Wayland/weston, Qt and RDP connection...
Matti Ristimäki
Matti.Ristimaki at planmeca.com
Wed Jan 18 12:12:43 UTC 2023
Hi,
Thanks for the reply!
Of course in our embedded system the CPX Control Panel(Qt) works normally via (HDMI) without any problems. And when it is running, it uses WAYLAND_DISPLAY=wayland-0 and DRM back-end.
Question:
One shall never start the "second" Weston if screen sharing is desired, only the screen-share plugin in the "first" Weston can do that.
For some reason, the rdp-backend is not started even if the screen-share.so' module is loaded?
I’m just missing some RDP related configuration in the weston.ini…?
Here is two test using CPX Control Panel(Qt) and weston-simple-egl.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing with CPX Control Panel(Qt)
---------------------------------------------------------------------------------------
root at sm2s-imx8mp:~# ls -la /run/user/0/
total 48
drwx------ 3 root root 140 Jan 18 10:57 .
drwxr-xr-x 3 root root 60 Jan 18 10:09 ..
srw-rw-rw- 1 root root 0 Jan 18 10:09 bus
drwxr-xr-x 4 root root 120 Jan 18 10:09 systemd
srwxr-xr-x 1 root root 0 Jan 18 10:57 wayland-0
-rw-r----- 1 root root 0 Jan 18 10:46 wayland-0.lock
-rw-r--r-- 1 root root 45744 Jan 18 10:57 weston.log
---------------------------------------------------------------------------------------
root at sm2s-imx8mp:/opt/cpx# systemctl status cpx
● cpx.service - Planmeca Dental Unit CPX Control Panel
Loaded: loaded (/lib/systemd/system/cpx.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-01-18 12:28:02 CET; 11s ago
Main PID: 1424 (cpx.sh)
Tasks: 13 (limit: 880)
Memory: 44.5M
CGroup: /system.slice/cpx.service
├─1424 /bin/bash /opt/cpx/cpx.sh
└─1428 ./cpx --rotate=0
---------------------------------------------------------------------------------------
root at sm2s-imx8mp:/opt/cpx# tail -f /run/user/0/weston.log
[12:27:59.698] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[12:27:59.698] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[12:27:59.699] Loading module '/usr/lib/weston/kiosk-shell.so'
[12:27:59.700] Loading module '/usr/lib/weston/screen-share.so'
[12:27:59.700] Loading module '/usr/lib/weston/systemd-notify.so'
[12:27:59.700] info: add 1 socket(s) provided by systemd
---------------------------------------------------------------------------------------
CPX Control Panel starts normally, but the rdp-backend is not started even if the screen-share.so' module is loaded.
[cid:image001.png at 01D92B46.ED2859D0]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing with weston-simple-egl
When starting weston-simple-egl, it runs normally as well using drm. (And also screen-share.so is running.)
---------------------------------------------------------------------------------------
root at sm2s-imx8mp:~# ls -la /run/user/0/
total 48
drwx------ 3 root root 140 Jan 18 10:57 .
drwxr-xr-x 3 root root 60 Jan 18 10:09 ..
srw-rw-rw- 1 root root 0 Jan 18 10:09 bus
drwxr-xr-x 4 root root 120 Jan 18 10:09 systemd
srwxr-xr-x 1 root root 0 Jan 18 10:57 wayland-0
-rw-r----- 1 root root 0 Jan 18 10:46 wayland-0.lock
-rw-r--r-- 1 root root 45744 Jan 18 10:57 weston.log
---------------------------------------------------------------------------------------
root at sm2s-imx8mp:/opt/cpx# systemctl status cpx
● cpx.service - Planmeca Dental Unit CPX Control Panel
Loaded: loaded (/lib/systemd/system/cpx.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-01-18 10:57:30 CET; 16s ago
Main PID: 1093 (cpx.sh)
Tasks: 4 (limit: 880)
Memory: 8.9M
CGroup: /system.slice/cpx.service
├─1093 /bin/bash /opt/cpx/cpx.sh
└─1097 /usr/bin/weston-simple-egl
---------------------------------------------------------------------------------------
[10:57:06.193] weston 9.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 9.0.0
[10:57:06.194] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so
[10:57:06.194] OS: Linux, 5.10.35-lts-5.10.y+g0eccd203234b, #1 SMP PREEMPT Wed Nov 23 08:33:43 UTC 2022, aarch64
[10:57:06.194] Using config file '/etc/xdg/weston/weston.ini'
[10:57:06.194] Output repaint window is 16 ms maximum.
[10:57:06.194] Loading module '/usr/lib/libweston-9/drm-backend.so'
[10:57:06.199] initializing drm backend
[10:57:06.204] logind: session control granted
[10:57:06.210] using /dev/dri/card1
[10:57:06.210] DRM: supports atomic modesetting
[10:57:06.210] DRM: does not support GBM modifiers
[10:57:06.210] DRM: supports picture aspect ratio
[10:57:06.210] Loading module '/usr/lib/libweston-9/gl-renderer.so'
.
.
.
[10:57:06.399] DRM: head 'HDMI-A-1' found, connector 35 is connected, EDID make 'LNX', model 'Linux SVGA', serial 'Linux #0'
[10:57:06.399] Registered plugin API 'weston_drm_output_api_v1' of size 24
[10:57:06.401] Chosen EGL config details: id: 51 rgba: 8 8 8 8 buf: 32 dep: 0 stcl: 0 int: 1-60 type: win|pix|pbf|swap_preserved vis_id: ARGB8888 (0x34325241)
[10:57:06.401] Output HDMI-A-1 (crtc 33) video modes:
800x600 at 60.3<mailto:800x600 at 60.3>, preferred, current, 40.0 MHz
[10:57:06.401] associating input device event0 with output HDMI-A-1 (none by udev)
[10:57:06.401] associating input device event1 with output HDMI-A-1 (none by udev)
[10:57:06.402] associating input device event2 with output HDMI-A-1 (none by udev)
[10:57:06.402] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[10:57:06.402] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[10:57:06.402] Loading module '/usr/lib/weston/kiosk-shell.so'
[10:57:06.403] Loading module '/usr/lib/weston/screen-share.so'
[10:57:06.403] Loading module '/usr/lib/weston/systemd-notify.so'
[10:57:06.404] info: add 1 socket(s) provided by systemd
---------------------------------------------------------------------------------------
weston-simple-egl starts normally, but the rdp-backend is not started even if the screen-share.so' module is loaded.
[cid:image002.png at 01D92B36.3B357DD0]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BR,
-Matti
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/20230118/d50ca349/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 263757 bytes
Desc: image002.png
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230118/d50ca349/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 447861 bytes
Desc: image001.png
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230118/d50ca349/attachment-0003.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LOGS when Qt CPX Control Panel is running---systemctl status cpx---weston-log---westoni-ini.txt
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230118/d50ca349/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LOGS when weston-simple-egl is running---systemctl status cpx---weston-log---westoni-ini.txt
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230118/d50ca349/attachment-0003.txt>
More information about the wayland-devel
mailing list