Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] weston-init: Add chvt to weston.service
@ 2025-06-13  1:57 Tom Hochstein
  2025-06-13 19:52 ` Tom Hochstein
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Hochstein @ 2025-06-13  1:57 UTC (permalink / raw)
  To: openembedded-core; +Cc: Tom Hochstein

In testing a specific scenario with multiple displays, one of the
displays did fail to start into weston the majority of the time.
The problem was traced to a change in seatd from 0.8.0 to 0.9.1,
and a writeup of the problem was found here:

https://lists.sr.ht/~kennylevinsen/seatd-devel/%3CZy_-FRQnBTeNPXVj@mail-itl%3E

Here is a copy of the explanation:
```
The main change is that libseat no longer activates the session when
using the logind backend, so if an inactive VT/TTY is targeted, a chvt
before or after starting the session is required in the start scripts to
make the session visible.

This activation is removed to allow starting sessions in the background,
something Weston used to allow before adopting libseat.

An example of a fix is available here:
https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1566
```

Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com>
---
 meta/recipes-graphics/wayland/weston-init/weston.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service
index 80745998ed..db2c74649f 100644
--- a/meta/recipes-graphics/wayland/weston-init/weston.service
+++ b/meta/recipes-graphics/wayland/weston-init/weston.service
@@ -34,6 +34,7 @@ ConditionPathExists=/dev/tty0
 # Requires systemd-notify.so Weston plugin.
 Type=notify
 EnvironmentFile=/etc/default/weston
+ExecStartPre=+chvt 7
 ExecStart=/usr/bin/weston --modules=systemd-notify.so
 
 # Optional watchdog setup
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-13 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13  1:57 [PATCH] weston-init: Add chvt to weston.service Tom Hochstein
2025-06-13 19:52 ` Tom Hochstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox