What determines {default} location of :0, :1 & :2?

Thomas Lübking thomas.luebking at gmail.com
Mon Jul 8 10:09:12 PDT 2013


On Montag, 8. Juli 2013 08:10:12 CEST, Felix Miata wrote:
> On 2013-07-07 20:28 (GMT+0200) Thomas Lübking composed:
>
>> On Sonntag, 7. Juli 2013 18:46:12 CEST, Felix Miata wrote:
>> 
>>> only care that the first session started, whether by KDM or not,
>>> go on vt7; that the second, whether that be :0 or :1 or :2, go
>>> on vt8, and that the third, whether :0 or :1 or :2, go on vt9. I
>
>> Occupy vt1-6
>> https://wiki.archlinux.org/index.php/Systemd_FAQ#Q:_How_do_I_change_the_number_of_gettys_running_by_default.3F
>
> It helps. I don't use Arch.
The distro does actually not matter (ultimately one point about systemd)


>    sed -i 's/TTYVTDisallocate=yes/TTYVTDisallocate=no/' 
I don't think that would have any direct impact on the current issue.

> /usr/lib/systemd/system/getty at tty1.service
>    ln -sf /usr/lib/systemd/system/getty at tty1.service 
> /etc/systemd/system/getty.target.wants/getty at tty1.service
>    systemctl start getty at tty1.service
The systemctl command is just to starti it /now/, by having it in the wants, it should be automatically started to reach the getty target (at boot)

> In Fedora 19 and Mageia 3, prompts get started on vts 1-6, KDM 
> goes to vt7, but on vt4, where I login to run startx -- :1, is 
> where the 2nd X session is found instead of as expected on vt8.

echo $XDG_VTNR
unset it in doubt
the interpretation is likely done in /etc/X11/xinit/xserverrc

Cheers,
Thomas


More information about the xorg mailing list