Re: How to determine the VT of a running X session?
On Wed, Feb 15, 2006 at 10:53:15AM -0800, Marc Shapiro wrote:
> Is there any way to determine the virtual terminal that an X
> session is running on?
grep 'using VT number' /var/log/XFree86.(whatever).log
> Alternatively, is there any way to specify which tty an X session
> is started on.
>From XFree86(1x):
OPTIONS
In addition to the normal server options described in the
Xserver(1) manual page, XFree86 accepts the following command
line switches:
vtXX XX specifies the Virtual Terminal device number which
XFree86 will use. Without this option, XFree86 will
pick the first available Virtual Terminal that it can
locate. This option applies only to platforms such as
Linux, BSD, SVR3 and SVR4, that have virtual terminal
support.
Reply to: