Bug#760917: logind: ReserveVT does not work for Xorg

Samuel Thibault sthibault at debian.org
Tue Sep 9 11:57:11 BST 2014


Brian Potkin, le Tue 09 Sep 2014 11:51:59 +0100, a écrit :
> On Tue 09 Sep 2014 at 09:43:28 +0200, Samuel Thibault wrote:
> > Steps to reproduce (yes, the beginning is the same as my previous bug
> > report):
> > 
> > 1. have a system with no xdm & such, i.e. boots in text mode only
> > 2. boot it, on thus gets to a login banner on VT1
> > 3. log into VT1
> > 4. run startx from there
> > 
> > The result is that Xorg is running on VT2, which it should have been
> > running on VT7 since I have set ReserveVT to 6 (which is actually
> 
> Basically, (but please see later), X starts on the first free console
> under both syvinit and systemd.

I know. But isn't ReserveVT supposed to make X avoid VTs from 1 to 6?

> I wonder whether you quite understand the purpose of VT6.

I don't know what you mean by "VT6" here, but what I can read is:

ReserveVT=
           Takes a positive integer. Configures the number of one virtual
           terminal that shall unconditionally be reserved for autovt at .service
           activation (see above). The VT selected with this option will be
           marked busy unconditionally, so that no other subsystem will
           allocate it. This functionality is useful to ensure that regardless
           of how many VTs are allocated by other subsystems, one login
           "getty" is always available. Defaults to 6 (in other words, there
           will always be a "getty" available on Alt-F6.). When set to 0, VT
           reservation is disabled.

Xorg is "another subsystem" allocating VTs to me. the above
documentation explicitly says that the VTs should be marked busy, and
thus Xorg wouldn't use them. But apparently this isn't working.

> > apparently the default already). This makes it a pain for knowing where
> > Xorg is running, since that now depends whether you have logged into
> > VT2, VT3, etc. or not...
> 
> xinit (1.3.3-1) has been patched to start X on the VT startx is used
> from.

So it makes the bug report moot indeed...

Samuel




More information about the Pkg-systemd-maintainers mailing list