seat: always activate fake-VTs during startup
Instead of relying on --switchvt, we should always activate fake-VTs during startup. Otherwise, we might end up with dead seats as there is no way to wake up kmscon later. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
5e8ce520c2
commit
89b6ff63fc
2 files changed
+2
-7
No files matched your search
@@ -154,12 +154,6 @@
|
||||
option makes kmscon activate this VT during startup. The same
|
||||
way, during shutdown kmscon will reactivate the VT that was
|
||||
previously active. (default: on)</para>
|
||||
|
||||
<para>Note that this option is required on seats without virtual
|
||||
terminals, as there is no way to notify kmscon to activate
|
||||
later.
|
||||
So disable this option only during debugging or on seats with
|
||||
virtual terminals.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
+2
-1
@@ -800,7 +800,8 @@ void kmscon_seat_startup(struct kmscon_seat *seat)
|
||||
log_error("cannot register kmscon compositor: %d", ret);
|
||||
}
|
||||
|
||||
if (seat->conf->switchvt)
|
||||
if (seat->conf->switchvt ||
|
||||
uterm_vt_get_type(seat->vt) == UTERM_VT_FAKE)
|
||||
uterm_vt_activate(seat->vt);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user