I am in the middle of a project where I repeatedly have to stop X11 to debug. I stop with Ctrl+Alt+F1 then login and
$ sudo /etc/init.d/gdm stop
Then I go about my debugging. then restart gdm with
$ sudo /etc/init.d/gdm start
and I get back the login screen when I login yet again, and execute "users" and get back
$ users aredd aredd aredd aredd
making me think that my I'm still logged in form the first time, the terminal without gnome, gnome again, and another instance. If my old gnome session is still logged in how do I resume that session instead of starting a new one?