Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've learned that I can switch between virtual consoles by pressing Ctrl+Alt+F1–F12, and I've found that the graphical interface is usually running at either F7 or F8.

Why does this vary, and is there a way to predict it?

share|improve this question
up vote 3 down vote accepted

X uses the first free virtual terminal, and the first six are now allocated for gettys by upstart from /etc/init/tty[1-6].conf, and traditionally by init from /etc/inittab.

To choose a specific virtual terminal for X, you pass it the parameter 'vtXX' (see X -help) , where XX is the desired terminal number. There are a bunch of ways to pass parameters to X, but that is stuff for another question. :)

share|improve this answer

F7 is the default Xserver console. I believe that F8 is only used if there is already an Xserver running on F7, or if F7 is busy.

share|improve this answer
To add to this, if you sign out and back in (and a new X session is started), your display will then be on F8. – Jacob Peddicord Oct 10 '10 at 20:35

Some display managers, including lightdm, spawn Xorg server with the vt7 argument, that explicitly requests it to attach to tty7.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.