Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

gdm issue results in black screen during loggin out

Posted on 2008-10-09
2
Medium Priority
?
648 Views
Last Modified: 2013-12-21
Using Ubuntu on a family machine.  The machine remains switched on but may not be logged in.  Family members all have separate profiles + the profiles are logged in & out during the day.  We've noticed that after an indeterminate amount of time, the last person to log out will seem to hang during logging out.  It leaves a black screen with the mouse still active but no interaction is possible as there are no controls available.  I've found that if I send gdm a HUP signal, the problem is resolved (note that I have to do this blind-fold as the tty screens never show up once X is started).  I expect that the hang-up signal to gdm isn't going to be the end solution to fixing the issue so I'm trying to understand why this occurs.

I am lucky to have had an ssh session to the machine on one of these occasions today, so I immediately took a "ps -ef | grep gdm" output to give me more insight.  As you can see from the output there are some obviously gdmopen processes which look like they are awaiting input...
root      8678     1  0 Sep29 ?        00:00:00 gdm
root      8693     1  0 Sep29 ?        00:00:00 /usr/lib/gdm/gdmopen -l /bin/sh -c /usr/bin/whiptail --yesno 'There already appears to be an X server running on display :0.  Should another display number be tried?  Answering no will cause GDM to start the server on :0 again.  (You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7.  X servers usually run on consoles 7 and higher.)' 16 70
peterm   20623  8678  0 08:03 ?        00:00:00 gdm
root     21275 20623  0 08:35 tty16    00:00:14 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp
peterm   22903 22884  0 15:16 pts/0    00:00:00 grep gdm
root     24153     1  0 Oct01 ?        00:00:00 /usr/lib/gdm/gdmopen -l /bin/sh -c /usr/bin/whiptail --yesno 'There already appears to be an X server running on display :0.  Should another display number be tried?  Answering no will cause GDM to start the server on :0 again.  (You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7.  X servers usually run on consoles 7 and higher.)' 16 70
root     24413     1  0 Oct05 ?        00:00:00 /usr/lib/gdm/gdmopen -l /bin/sh -c /usr/bin/whiptail --yesno 'There already appears to be an X server running on display :0.  Should another display number be tried?  Answering no will cause GDM to start the server on :0 again.  (You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7.  X servers usually run on consoles 7 and higher.)' 16 70
root     24440     1  0 Oct05 ?        00:00:00 /usr/lib/gdm/gdmopen -l /bin/sh -c /usr/bin/whiptail --yesno 'There already appears to be an X server running on display :0.  Should another display number be tried?  Answering no will cause GDM to start the server on :0 again.  (You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7.  X servers usually run on consoles 7 and higher.)' 16 70
root     24442 24440  0 Oct05 tty14    00:00:00 /usr/lib/gdm/gdmopen -l /bin/sh -c /usr/bin/whiptail --yesno 'There already appears to be an X server running on display :0.  Should another display number be tried?  Answering no will cause GDM to start the server on :0 again.  (You can change consoles by pressing Ctrl-Alt plus a function key, such as Ctrl-Alt-F7 to go to console 7.  X servers usually run on consoles 7 and higher.)' 16 70

Open in new window

0
Comment
Question by:Barthax
2 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 1500 total points
ID: 22695241
locate gdm.conf on your machine and make sure it has:

[daemon]
AlwaysRestartServer=true

Updating system may or may change your mileage without setting mentioned.
0
 
LVL 19

Author Closing Comment

by:Barthax
ID: 31504673
Cool, thanks. Will give that a go. ;)
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question