As I said bind-mounting all of /dev works fine on my side for launching the Weston container. However, comparing our logs I notice a difference. Hereās my logs:
Switching VT tty1 to text mode if currently in graphics mode
Switching to VT 7
SoC is: 'i.MX8QM'
SoC has GPU: true
SoC has DPU: true
g2d implementation: dpu
Removing previously created '.X*-lock' entries under /tmp before starting Weston. Pass 'IGNORE_X_LOCKS=1' environment variable to Weston container to disable this behavior.
dos2unix: converting file /etc/xdg/weston/weston.ini to Unix format...
dos2unix: converting file /etc/xdg/weston-dev/weston.ini to Unix format...
00:00:00.000 [INFO] [seatd/seat.c:39] Created VT-bound seat seat0
00:00:00.000 [INFO] [seatd/seatd.c:194] seatd started
Date: 2023-09-27 UTC
[17:14:51.546] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-5.15.52-2.1.0-10-g9452feba
[17:14:51.547] Command line: weston -Bdrm-backend.so --current-mode -Swayland-0
[17:14:51.547] OS: Linux, 5.15.77-6.4.0-devel+git.ddc6ca4d76ea, #1-TorizonCore SMP PREEMPT Thu Jun 29 10:14:22 UTC 2023, aarch64
[17:14:51.547] Flight recorder: enabled
[17:14:51.547] Using config file '/etc/xdg/weston-dev/weston.ini'
[17:14:51.548] Output repaint window is 7 ms maximum.
[17:14:51.548] Loading module '/usr/lib/aarch64-linux-gnu/libweston-10/drm-backend.so'
[17:14:51.559] initializing drm backend
[17:14:51.559] Trying libseat launcher...
00:00:00.065 [INFO] [seatd/server.c:145] New client connected (pid: 29, uid: 1000, gid: 1000)
00:00:00.065 [INFO] [seatd/seat.c:170] Added client 7 to seat0
00:00:00.065 [INFO] [seatd/seat.c:480] Opened client 7 on seat0
[17:14:51.560] libseat: session control granted
[17:14:51.565] using /dev/dri/card1
...
Notice in my logs it uses the libseat/seatd:
[17:14:51.559] Trying libseat launcher...
Which is expected since in our Weston Bookworm containers, the entry script uses seatd-launch to initialize the Weston process: https://github.com/toradex/torizon-containers/blob/bookworm/debian-docker-images/weston/entry.sh#L255
However in your logs it seems to be using logind for some reason?:
torizon-desktop-1 | [16:18:01.645] Trying logind launcher...
If I run our Bullseye Weston container (with all of /dev bind-mounted) I see something about logind in the logs. Though still not quite exactly the same as what is seen in your logs:
NXP EULA has already been accepted.
SoC is: 'i.MX8QM'
SoC has GPU: true
SoC has DPU: true
g2d implementation: dpu
Removing previously created '.X*-lock' entries under /tmp before starting Weston. Pass 'IGNORE_X_LOCKS=1' environment variable to Weston container to disable this behavior.
dos2unix: converting file /etc/xdg/weston/weston.ini to Unix format...
dos2unix: converting file /etc/xdg/weston-dev/weston.ini to Unix format...
NXP EULA has already been accepted.
touch: cannot touch '/tmp/nxp-eula-accepted': Permission denied
touch: cannot touch '/tmp/nxp-eula-accepted': Permission denied
Date: 2023-09-27 UTC
[17:39:00.670] weston 9.0.0
Date: 2023-09-27 UTC
[17:39:00.670] weston 9.0.0
https://wayland.freedesktop.org
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 9.0.0
Build: 9.0.0
[17:39:00.671] Command line: /usr/bin/weston
[17:39:00.671] Command line: /usr/bin/weston
[17:39:00.671] OS: Linux, 5.15.77-6.4.0-devel+git.ddc6ca4d76ea, #1-TorizonCore SMP PREEMPT Thu Jun 29 10:14:22 UTC 2023, aarch64
[17:39:00.671] OS: Linux, 5.15.77-6.4.0-devel+git.ddc6ca4d76ea, #1-TorizonCore SMP PREEMPT Thu Jun 29 10:14:22 UTC 2023, aarch64
[17:39:00.671] Using config file '/etc/xdg/weston-dev//weston.ini'
[17:39:00.672] Output repaint window is 7 ms maximum.
[17:39:00.671] Using config file '/etc/xdg/weston-dev//weston.ini'
[17:39:00.672] Output repaint window is 7 ms maximum.
[17:39:00.672] Loading module '/usr/lib/aarch64-linux-gnu/libweston-9/drm-backend.so'
[17:39:00.672] Loading module '/usr/lib/aarch64-linux-gnu/libweston-9/drm-backend.so'
[17:39:00.681] initializing drm backend
[17:39:00.681] initializing drm backend
[17:39:00.682] logind: not running in a systemd session
[17:39:00.682] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[17:39:00.682] logind: not running in a systemd session
[17:39:00.682] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[17:39:00.687] using /dev/dri/card1
...
However, this ends up still working fine, despite the error messages from logind. Given that, perhaps are you mixing the entry script from bullseye with the container for bookworm or something like that?
Best Regards,
Jeremias