Screen Sharing Weston-RDP Issues

Dear all,

i’m working with the following configuration:
Apalis iMX8QM 4GB WB IT V1.1D
Ixora Carrier Board V 1.2A
DISTRO_VERSION = “6.8.0”
DISTRO_CODENAME = “kirkstone”

I am configuring a screen sharing environment using Weston-RDP.

I have verified that the 3389 port for rdp is normally open and that the connection to the remote desktop from the Windows host PC is working properly.

Two issues.

  1. The RDP connection usually connects once at the beginning. When I reconnect after the remote desktop is closed on the Windows host PC, it does not work. (RDP port 3389 is closed).

  2. After connecting to the remote desktop from the Windows host PC, the RDP is terminated when the HDMI is connected to the ixora carrier board.

Can you help me to resolve the above two issues?
Best regards,
sjjin

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello!

To set up RDP on your Apalis iMX8 with Torizon, here are some key steps and considerations:

  1. RDP Configuration: By default, RDP uses port 3389. To enable RDP with Weston, set the environment variable ENABLE_RDP=1.

  2. Weston Container Command: For NXP i.MX 8-based SoMs, use the following command to run the Weston container:

    docker run -e ACCEPT_FSL_EULA=1 -d --rm --name=weston --net=host --env ENABLE_RDP=1 --cap-add CAP_SYS_TTY_CONFIG \
              -v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ \
              --device-cgroup-rule='c 4:* rmw' --device-cgroup-rule='c 13:* rmw' \
              --device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' \
              --device-cgroup-rule='c 253:* rmw' \
              torizon/weston-imx8:$CT_TAG_WESTON --developer  \
              --tty=/dev/tty7
    

Regarding your specific issues:

  1. Connection Drops: This might be due to performance impacts when enabling RDP/VNC on Weston. Ensure the Weston container is running and the RDP environment variable is set correctly.

  2. HDMI Connectivity: The Apalis iMX8 supports HDMI 2.0a with 4K UltraHD. However, using RDP alongside physical displays can affect performance. Consider using Torizon’s Remote Access feature for better stability and security.

For debugging, check if the Weston container remains active after disconnection and verify the RDP settings.

I hope this helps! If you have further questions, feel free to ask.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

NXP i.MX 8QM Computer on Module - Apalis iMX8.

@ToradexAI , Thanks for the answer.

I am not targeting torizonOS.

For verification,
when I tested by connecting to RDP from torizonOS, the HDMI output and RDP session were not connected at the same time.

Can you help me?

Best regards,
sjjin

Hi @sjjin ,

In another ticket, it is Linux BSP V7.2.0. So I did the test on this new BSP and modified /etc/xdg/weston/weston.ini to enable RDP.

--- weston.ini.vnc
+++ weston.ini
@@ -4,7 +4,6 @@
 idle-time=0
 xwayland=true
 #enable-overlay-view=1
-modules=screen-share.so
 
 [shell]
 
@@ -28,8 +27,5 @@
 #transform=rotate-90
 
 [screen-share]
-#command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
+command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
 #start-on-startup=true
-command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize  --rdp-tls-key=/home/root/tls.key --rdp-tls-cert=/home/root/tls.crt --force-no-compression
-start-on-startup=true
-

The key and certificate can be generated by winpr-makecert on a Linux host.

winpr-makecert -rdp -path ./

RDP client on the host establishes a connection. It is wlfreerdp on my Linux PC. wlfreerdp is still able to reconnect the target when the previous session was terminated.

wlfreerdp /v:TARGET_IP

During my test, the HDMI monitor is always connected to Ixora. Otherwise, weston would not be launched.