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

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

1 Answer 1

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

Your Answer


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