Linux – Why X server runs on TTY1 and not TTY7 on Arch Linux

arch linuxttyx11

Edit: it seems Arch now uses TTY7 for X by default, so this question is irrelevant

I've used Debian derivates (*buntu, CrunchBang), Mandriva, OpenSuSE, Fedora, name it.. all of them had X server at TTY7 (at least I think it was 7), accessed with:

Ctrl + Alt + F7

Now, I moved to Arch, and it's on TTY1 now –

Ctrl + Alt + F1

All the others are regular TTY's with login prompt.

Why is that? Is it perhaps because Arch uses Systemd?

Best Answer

This was changed in October 2012 during/after the migration to systemd/logind. According to a bug report, running the X server on a different tty than the active consolekit session caused things to break because the session on (for example) TTY7 would not be authenticated . Without logind, one could use ck-launch-session in ~/.xinitrc to get a new session for the X server. However, this didn't work anymore with logind, so /etc/X11/xinit/xserverrc was changed to just start the X server on the current tty.

Related Question