Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
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...
service lightdm start, then return to TTY 1 and doservice lightdm stop, I stay on TTY 1.