I found my x window is dead, all the graphic application have no reaction on the mouse click,so i have to change to the tty1 to work,use the Ctrl+Alt+F1 but the previous work is still need to rework.

The command ps doesn't display the xorg's thread, so I couldn't kill it.

And when I need to go back to graphic window, I must reboot the system.

1 Answer 1


From tty1 you can use the following command to restart only the GUI, without rebooting the system:

sudo service lightdm restart


sudo service lightdm stop
sudo service lightdm start

Another useful command in this case can be:

xkill  # or xkill -all

(See man xkill to get to know how it works) and you can create a keyboard shortcut for xkill so you don't need to go in tty1 to use it.

  • Should be sudo service not sudo services. :-) May 19, 2015 at 21:15
  • Failed to restart lightdm.service: Unit lightdm.service not found. Sep 22, 2020 at 14:24
  • I think the command in my case is systemctl restart display-manager but alas it didn't help get my screen back. Sep 22, 2020 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .