After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337670 - gdm kills Xserver (Xgl) before it has time to start
gdm kills Xserver (Xgl) before it has time to start
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.14.x
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-07 19:00 UTC by Emilie
Modified: 2006-04-14 18:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Moves Xserver timeout configuration into gdm.conf (4.76 KB, patch)
2006-04-07 19:05 UTC, Emilie
reviewed Details | Review

Description Emilie 2006-04-07 19:00:37 UTC
Please describe the problem:
Xgl takes longer to start up than standard X servers.  Gdm is hardcoded to kill
Xservers if they take longer than 10 seconds to start (using the
SERVER_WAIT_ALARM variable in daemon/server.c).

What would be preferable is that gdm reads this timeout value from the config
file instead of having it being hardcoded.

The attached patch does this.

Steps to reproduce:
1. Set up gdm to use the Xgl server instead of the regular X server
2. Start gdm


Actual results:
Gdm begins starting the Xgl server, a grey screen with the hourglass symbol
appears.  Before Xgl has a chance to load, The screen goes black.

This sequence happens 3 times before gdm exits and claims the Xserver failed to
start.

Expected results:
gdm would allow Xgl enough time to start, and start properly.

Does this happen every time?
Yes.

Other information:
Comment 1 Emilie 2006-04-07 19:05:35 UTC
Created attachment 62950 [details] [review]
Moves Xserver timeout configuration into gdm.conf

This patch replaces the hardcoded "SERVER_WAIT_ALARM" variable in daemon/server.c with a value loaded at runtime from the config file.  The new variable is called "GdmXserverTimeout" in the config file.

This is my first gdm patch so I hope I didn't forget anything.  I added the appropriate info to: gdm.conf.in, gdm.h, and docs/C/gdm.xml.
Comment 2 Emilie 2006-04-07 19:07:42 UTC
(In reply to comment #1)
Sorry, I forgot to mention that the patch doesn't change the default value (10), it just allows it to be modified using the config file so folks using alternative Xservers can modify it if they wish.
Comment 3 Brian Cameron 2006-04-07 19:49:30 UTC
Thank you Emilie, the patch is very well written.  Thank you for following the instructions about adding a new config variable in daemon/gdm.h - providing 
the docs/C/gdm.xml patch is often something I need to remind people.

I have applied this patch to GDM so it will be included in GDM 2.14.1 next
week.  I did not apply the patch to the gdm.xml file yet because we are past
string freeze.  I am leaving this bug open to remind me to apply the docs
part of this patch after brancing for 2.15.
Comment 4 Brian Cameron 2006-04-14 18:15:43 UTC
This is fixed, marking as such.