Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

My video drivers are currently still in beta, so every now and then, the desktop environment malfunctions especially when (dis)connecting a second monitor.

Thankfully, there is a way to restart the gui without having to reboot.

However, tty1 is still logged in. If I try to logout of tty1 I can't Ctrl+Alt+F7 back in to the gui.

How can I both restart the gui and logout of the tty that restarts the gui?

share|improve this question
up vote 1 down vote accepted
sudo service lightdm restart && logout
share|improve this answer

Your Answer

 
discard

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