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

I need to troubleshoot a problem with suspend/resume. The debugging instructions say:

make sure you're logged out of Xorg (or run with "force" argument)

How do I log out of Xorg?

share|improve this question
up vote 2 down vote accepted

Generally, you don't log out of Xorg. Xorg has no account management capabilities at all. The wording of that document is inaccurate. It probably really means to log out of your window manager, and exit Xorg.

In practice, this probably means killing your X display manager (xdm, kdm, or gdm). Do this by hitting Ctrl-Alt-F1, to switch to a text console. Then log in and issue one of the following commands (depending on which display manager you use):

sudo stop gdm
sudo stop kdm
sudo stop xdm
share|improve this answer
If killing X is all that is required, wouldn't sudo killall Xorg work? – Nathan Osman Jun 25 '11 at 0:33
If gdm/xdm/kdm/etc. are running, they restart Xorg when it exits, so just killing it may not be enough. – alanc Jun 25 '11 at 3:24

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.