Weston-rdp screen share issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Weston-rdp screen share issue

5,272 Views
himanshubhavani
Contributor I

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

 

 

0 Kudos
Reply
3 Replies

5,230 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You should appoint socket in command:

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 --socket=wayland-1 --width=<width you need> --height=<height you need>
0 Kudos
Reply

5,217 Views
himanshubhavani
Contributor I

@Zhiming_Liu Thanks for your response, I have tried your command but still getting same issue. like when i run weston application it is showing on host machine xfreerdp window and not showing on board display.

0 Kudos
Reply

5,203 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply