VNC setting issue

Hi

I am encountering VNC issue.

My set is Verdin-Plus and Development Board connected to 2 displays under TorizonCore OS.
Torizon(BSP) version is 5.4.193-5.7.0+git.f78299297185.
1st display is LVDS-1: 10"capasitive-touch LCD[1280x800] connected via Verdin DSI to LVDS Adapter.
2nd display is HDMI-A-1: HDMI display[1280x1024] connected via Native HDMI port.

VNC works fine with the below command which bind-mounts weston.ini to weston. Only 1st display is cloned to VNC client on PC. (Despite of --developer, weston.ini is effective…)
$ docker run -e ACCEPT_FSL_EULA=1 -e ENABLE_VNC=1 -d --rm --name=weston --net=host -v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ -v /home/torizon/weston.ini:/etc/xdg/weston/weston.ini --device-cgroup-rule=‘c 4:* rmw’ --device-cgroup-rule=‘c 13:* rmw’ --device-cgroup-rule=‘c 199:* rmw’ --device-cgroup-rule=‘c 226:* rmw’ torizon/weston-vivante:2 --developer weston-launch --tty=/dev/tty7 --user=torizon

VNC does not work with with the below command which bind-mounts weston.ini to weston-dev.
$ docker run -e ACCEPT_FSL_EULA=1 -e ENABLE_VNC=1 -d --rm --name=weston --net=host -v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ -v /home/torizon/weston.ini:/etc/xdg/weston-dev/weston.ini --device-cgroup-rule=‘c 4:* rmw’ --device-cgroup-rule=‘c 13:* rmw’ --device-cgroup-rule=‘c 199:* rmw’ --device-cgroup-rule=‘c 226:* rmw’ torizon/weston-vivante:2 --developer weston-launch --tty=/dev/tty7 --user=torizon

Could you kindly help and advice to make the latter work fine?

Thanks and regards
ujsugi

Hi @ujsugi ,

Can you verify that your weston.ini has the following line on section [core]:

modules=screen-share.so

If this line is not present then VNC will not be enabled on Weston. It should work if this line is present and if ENABLE_VNC is set to 1, which you already did.

If you pass the --developer option in our image Weston will only read the config file located in /etc/xdg/weston-dev/. In your first scenario you bind mounted the .ini file to /etc/xdg/weston/, so Weston read the default weston.ini in /etc/xdg/weston-dev/, which has the line above.

Try that and let me know if it works.

Best regards,
Lucas Akira

Lucas Akira

Thanks for quick response.
It’s working fine by adding the follows in weston.ini.
[core]
modules=screen-share.so.
Plus, weson.ini appear to be bind-mounted to /etc/xdg/weston-dev/ correctly.

Thanks and regards

Glad the problem was solved!

Best regards,
Lucas Akira