Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 down vote accepted
sudo service lightdm restart && logout
share|improve this answer
add comment

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.