2

If I change TTY to 2, then run startx, then change to TTY 1 and stop Xorg (by killing Xorg or the process I started with startx), TTY changes to 2. Can I stop Xorg without switching, i.e. stay on the same TTY?

2
  • Killing X requires X to become active, which requires the tty X is on to become active. Of course you can change back ("stay on the same TTY"), if you remember which TTY you were on somewhere... Commented Jun 15, 2019 at 17:01
  • @dirkt Right, but if I do service lightdm start, then return to TTY 1 and do service lightdm stop, I stay on TTY 1. Commented Jun 15, 2019 at 18:55

1 Answer 1

3

You need to start Xorg with the -novtswitch option.

From here.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.