Regardless of whether weston runs on the host computer, this run commands launches a weston compositor. Being new to torizon i might have some basic confusions but below mentioned is what i am lookinf for
I have an executable build for embeded device. Now instead of running on the device, i want to contanerize the application with torizon and the visualization with weston inside the container.
Application i am able to run inside docker and would like to have the GUI on my host weston compositor.
On both the host and inside container
$WAYLAND_DISPLAY = wayland-0
$XDG_RUNTIME_DIR = /run/user/1000
$QT_QPA_PLATFORM = wayland
Output of wayland-info
interface: ‘wl_compositor’, version: 5, name: 1
interface: ‘wl_drm’, version: 2, name: 2
interface: ‘wl_shm’, version: 1, name: 3
formats (fourcc):
0x48344258 = ‘XB4H’
0x48344241 = ‘AB4H’
0x48345258 = ‘XR4H’
0x48345241 = ‘AR4H’
0x30334258 = ‘XB30’
0x30334241 = ‘AB30’
0x30335258 = ‘XR30’
0x30335241 = ‘AR30’
0x36314752 = ‘RG16’
0x34324258 = ‘XB24’
0x34324241 = ‘AB24’
1 = ‘XR24’
0 = ‘AR24’
interface: ‘wl_output’, version: 3, name: 4
x: 0, y: 0, scale: 1,
physical_width: 0 mm, physical_height: 0 mm,
make: ‘unknown’, model: ‘unknown’,
subpixel_orientation: unknown, output_transform: normal,
mode:
width: 1920 px, height: 1080 px, refresh: 60.000 Hz,
flags: current preferred
interface: ‘zxdg_output_manager_v1’, version: 3, name: 5
xdg_output_v1
output: 4
name: ‘Virtual-1’
description: ‘Unknown Display’
logical_x: 0, logical_y: 0
logical_width: 1920, logical_height: 1080
interface: ‘wl_data_device_manager’, version: 3, name: 6
interface: ‘zwp_primary_selection_device_manager_v1’, version: 1, name: 7
interface: ‘gtk_primary_selection_device_manager’, version: 1, name: 8
interface: ‘wl_subcompositor’, version: 1, name: 9
interface: ‘xdg_wm_base’, version: 4, name: 10
interface: ‘zxdg_shell_v6’, version: 1, name: 11
interface: ‘gtk_shell1’, version: 5, name: 12
interface: ‘wp_viewporter’, version: 1, name: 13
interface: ‘zwp_pointer_gestures_v1’, version: 3, name: 14
interface: ‘zwp_tablet_manager_v2’, version: 1, name: 15
interface: ‘wl_seat’, version: 5, name: 16
name: seat0
capabilities: pointer keyboard
keyboard repeat rate: 33
keyboard repeat delay: 500
interface: ‘zwp_relative_pointer_manager_v1’, version: 1, name: 17
interface: ‘zwp_pointer_constraints_v1’, version: 1, name: 18
interface: ‘zxdg_exporter_v1’, version: 1, name: 19
interface: ‘zxdg_importer_v1’, version: 1, name: 20
interface: ‘zwp_linux_dmabuf_v1’, version: 4, name: 21
main device: 0xE280
tranche
target device: 0xE280
flags: none
formats (fourcc) and modifiers (names):
0x34325241 = ‘AR24’; 0x00ffffffffffffff = INVALID_MODIFIER
0x34324241 = ‘AB24’; 0x00ffffffffffffff = INVALID_MODIFIER
0x34325258 = ‘XR24’; 0x00ffffffffffffff = INVALID_MODIFIER
0x30334241 = ‘AB30’; 0x00ffffffffffffff = INVALID_MODIFIER
0x36314752 = ‘RG16’; 0x00ffffffffffffff = INVALID_MODIFIER
0x48344241 = ‘AB4H’; 0x00ffffffffffffff = INVALID_MODIFIER
interface: ‘zwp_keyboard_shortcuts_inhibit_manager_v1’, version: 1, name: 22
interface: ‘zwp_text_input_manager_v3’, version: 1, name: 23
interface: ‘wp_presentation’, version: 1, name: 24
presentation clock id: 1 (CLOCK_MONOTONIC)
interface: ‘xdg_activation_v1’,
But somehow still i am unable to visualize the GUI on host weston
Below is my docker run
sudo docker run --privileged -it --device /dev/dri --device /dev/input --name=torizon_container --platform=linux/arm64 -e DISPLAY=$DISPLAY -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -e XDG_RUNTIME_DIR=/run/user/1000 -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/1000:/run/user/1000 -v /dev:/dev -v /sys:/sys -v /proc:/proc -v /home/zaid/sceniq_rootfs/:/sceniq_rootfs torizon_sceniq