Which tty gets the X server?

Tom H tomh0665 at gmail.com
Fri Jan 7 01:02:17 UTC 2011


On Thu, Jan 6, 2011 at 7:47 PM, MR ZenWiz <mrzenwiz at gmail.com> wrote:
>
> Having just crashed my X server a few times (Libre/Open Office issues
> - not here), I noticed something interesting.
>
> I thought the X server (gdm, etc.) ran on tty7, with ttys 1-6 being
> the alternate, text-only virtual consoles.  After crashing, it seems
> that the X server moves to tty8 and even tty9 (if tty8 crashes).
>
> Can anyone verify (and explain) this?  Seems pretty strange to me....

It's because console-kit-daemon keeps the vt "open".

If you kill console-kit-daemon you can then run "deallocvt 7" and re-use vt7.




More information about the ubuntu-users mailing list