weston-launch: make sure weston-launch activates the VT

Graphics / Wayland / Weston - Stefan Agner [agner.ch] - 30 January 2020 12:11 EST

Currently weston-launch does not activate the VT when opening the terminal directly (e.g. using --tty=/dev/tty7). Weston takes full control over the terminal by switching it to graphical mode etc. However, the old VT stays active as can be seen when looking at sysfs: # cat /sys/class/tty/tty0/active tty1

Always switch to the new VT to make sure the correct VT is active. This aligns with how TTY setup is implemented in launcher-direct.c.

c6f818a0 weston-launch: make sure weston-launch activates the VT
libweston/weston-launch.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)

Upstream: cgit.freedesktop.org


  • Share