seat: always activate fake-VTs during startup
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 9 Dec 2012 13:19:17 +0000 (14:19 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 9 Dec 2012 13:19:17 +0000 (14:19 +0100)
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>
docs/man/kmscon.xml
src/kmscon_seat.c

index e49cd2c..3db1ab9 100644 (file)
                 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>
 
index b2601b8..d8534cb 100644 (file)
@@ -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);
 }