I have imx6dl based custom board which has one display connected. and i want to share custom board display screen to any host machine(in my case it it Linux system)
For that i used to weston-rdp service for sharing screen and below configuration i have done in bot side client and host.
1) In yocto add below lines into the weston bb file “weston_7.0.0.imx.bb” to enable freerdp support.
DEPENDS += "freerdp"
EXTRA_OEMESON += "-Dbackend-rdp=true"
2) On client side:
Add below module into the /etc/xdg/weston/weston.ini file.
[core]
modules=screen-share.so
Add below command into the /etc/xdg/weston/weston.ini file
command=@bindir@/weston --no-config –backend=rdp-backend.so
Generate TLS certificate/key.
Modify ExecStart command into the /lib/systemd/system/weston@.service file.
ExecStart=/usr/bin/weston --log=${XDG_RUNTIME_DIR}/weston.log --backend=rdp-backend.so –rdp-tls- cert=/home/root/server.crt --rdp-tls-key=/home/root/server.key
restart the weston service.
3) On Host side:-
Run xfreerdp with client ip address and display resolution.
xfreerdp /v:192.168.200.59 /size:800x480
After running xfreerdp command gui display is showing with only background image of the client board display(imx6)
But issue will be created when i launch any display application like "weston-terminal"
-> When I set “export WAYLAND_DISPLAY=wayland-1” and run any weston application it is showing only in imx6 board display not in host side(linux system).
-> When set export WAYLAND_DISPLAY=wayland-0 set and run any weston application it is showing only in host side not in imx6 board display.
My actual requirement is sharing screen of imx6 board to host linux machine. How can i achive this is there any solution ?
I referred this link to setup weston-rdp
https://community.nxp.com/t5/i-MX-Processors/i-MX8-How-to-share-screen-on-Weston/td-p/1333875