Hi,
I have enabled LVDS and HDMI displays. Both screens are working but acting as extended screen.
I have created 2 docker images named ‘A’ and ‘B’ which contains Qt application. I want to display container A on HDMI and B on LVDS. But on running both containers , both are getting displayed on the same portion of hdmi.
Hereby attaching the weston.ini file
root@apalis-imx8-07239822:/etc# cat xdg/weston/weston.ini
[core]
#gbm-format=argb8888
idle-time=0
#use-g2d=1
#xwayland=true
repaint-window=16
#enable-overlay-view=1
modules=screen-share.so
#[shell]
#size=1920x1080
[libinput]
enable_tap=true
touchscreen_calibrator=true
calibration_helper=/usr/bin/toradex-save-touchscreen-calibration
#[output]
#name=HDMI-A-1
#mode=1920x1080@60
#transform=rotate-90
#[output]
#name=HDMI-A-2
#mode=off
WIDTHxHEIGHT Resolution size width and height in pixels
off Disables the output
preferred Uses the preferred mode
current Uses the current crt controller mode
#transform=rotate-90
[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/etc/freerdp/keys/server.crt --rdp-tls-key=/etc/freerdp/keys/server.key
Also attaching portion of weston-info below:-
root@apalis-imx8-07239822:/etc# weston-info
*** Please use wayland-info instead
*** weston-info is deprecated and will be removed in a future version
interface: ‘wl_compositor’, version: 4, name: 1
interface: ‘wl_subcompositor’, version: 1, name: 2
interface: ‘wp_viewporter’, version: 1, name: 3
interface: ‘zxdg_output_manager_v1’, version: 2, name: 4
xdg_output_v1
output: 21
name: ‘LVDS-1’
logical_x: 1920, logical_y: 0
logical_width: 1280, logical_height: 800
xdg_output_v1
output: 20
name: ‘HDMI-A-1’
logical_x: 0, logical_y: 0
logical_width: 1920, logical_height: 1080
interface: ‘wp_presentation’, version: 1, name: 5
The command that we are using to run docker container are
docker run --rm -it -e XDG_RUNTIME_DIR=/run -e WAYLAND_DISPLAY=wayland-0 -v /run:/run -v /dev/dri:/dev/dri sruthisathyan/automotive:A
and
docker run --rm -it -e XDG_RUNTIME_DIR=/run -e WAYLAND_DISPLAY=wayland-0 -v /run:/run -v /dev/dri:/dev/dri sruthisathyan/automotive:B