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 323346 - Gdm needs option to set nice priority for X server
Gdm needs option to set nice priority for X server
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.13.x
Other Linux
: Normal enhancement
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-06 05:52 UTC by Philip Prindeville
Modified: 2005-12-21 02:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.95 KB, patch)
2005-12-06 19:31 UTC, Philip Prindeville
needs-work Details | Review
Additional patch for template config (390 bytes, patch)
2005-12-06 19:50 UTC, Philip Prindeville
none Details | Review
Patch ported to 2.13.0.4 (8.73 KB, patch)
2005-12-20 09:26 UTC, Philip Prindeville
none Details | Review

Description Philip Prindeville 2005-12-06 05:52:08 UTC
Distribution/Version: FC3

An option is needed in the gdm.conf file to specify what nice level the X server
should run at.  This is especially useful in environments where the X server
needs to be more responsible to interactive users.
Comment 1 Philip Prindeville 2005-12-06 19:31:45 UTC
Created attachment 55700 [details] [review]
Proposed patch

Tested, and it seems to work.

We could test the value of "priority" when we parse it, but the call to
setpriority() is going to check the boundaries anyway.
Comment 2 Philip Prindeville 2005-12-06 19:50:43 UTC
Created attachment 55702 [details] [review]
Additional patch for template config

Might as well include info in the config as to how to change the default
priority.
Comment 3 Brian Cameron 2005-12-07 16:27:37 UTC
This patch is against the 2.8 (aka 2.12) branch.  The way configuration is
handled in CVS head is quite different, and it is only appropriate to add such a
new configuration option to CVS head.  Please regenerate the patch for CVS head.
 Also the docs in docs/C/gdm.xml need to be updated with the new configuration
option.
Comment 4 Philip Prindeville 2005-12-07 19:20:39 UTC
Ummm...  Ok.  I'll try.  (a) Is CVS working?  Looking at the website, it doesn't
seem to be, and grabbing all of the files via viewcvs would be tedious.  (b) Is
there a .spec that works with FC3 that I can build from?  This would make
testing quicker.
Comment 5 Brian Cameron 2005-12-09 21:33:58 UTC
Did you follow instructions here:

   http://developer.gnome.org/tools/cvs.html

You could base a patch on the latest release of 2.13.0.2 and that would apply to
CVS head (the only files that have been modified in CVS head since then is
gdmsetup.c, gui/gdmsetup.glade.  I don't think your patch modifies these files,
so that shouldn't be a problem.  There has been a minor change to daemon/gdm.h
in CVS head but just a minor update to comments that I can merge if necessary. 
So base your patch on 2.13.0.2 and I'll take care of getting it into CVS.

The default value of the new feature should be "0" and defined so that the
priority is not set when given this value.  Make sure the docs in gdm.conf and
the docs/C/gdm.xml clearly explain how this works.  I won't accept a patch that
adds a new config option without documentation.  Also note the comments in
daemon/gdm.h that explain what is expected from someone providing a patch that
adds a new configuration option,

Comment 6 Philip Prindeville 2005-12-20 09:26:21 UTC
Created attachment 56194 [details] [review]
Patch ported to 2.13.0.4

This patch also includes minor fixes for:

* gui/misc.c not compiling
* missing requirements for gtk2 version 2.6.0 or later
* fixed Makefiles in gui/ to specify correct include directory for X11 libs
Comment 7 Brian Cameron 2005-12-21 02:22:57 UTC
Committed to CVS head.  Thanks!