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.

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

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

How do I log out of Xorg?

share|improve this question

1 Answer 1

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

 
discard

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.