[systemd-devel] Rethinking getty and fast user switching

Jan Engelhardt jengelh at medozas.de
Tue Feb 21 04:15:23 PST 2012

On Tuesday 2012-02-21 13:02, Colin Guthrie wrote:
>> Take f.i.: vt1 X, vt2 X, vt3 X, vt4 text, vt5 X, vt6 text, vt7 X, vt8
>> text, vt9 text, vt10 text, vt11 X. Logical? Absolutely (w.r.t. some
>> pattern). To you? Probably absolutely not. (Solution: VT numbers
>> which are prime get an X server, non-primes get text.)
>[...] It's more or less a first come,
>first served basis just now. So you'd have to spend some time after boot
>starting Xs and swithing VTs at the right time to configure your perfect
>primes layout.

Why so? Static configurations are one of the easiest.

 /etc/systemd/system/getty.target.wants/getty at tty4.service -> getty at .service
 /etc/systemd/system/somethingelse/xorg at tty1.service -> myxorg at .service

ExecStart=myX %I

tty="$1"; shift;
exec X vt${tty#tty} "$@"

More information about the systemd-devel mailing list