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 627290 - [PATCH] Don't wait for screensaver that isn't locking
[PATCH] Don't wait for screensaver that isn't locking
Status: RESOLVED OBSOLETE
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
SVN TRUNK
Other Linux
: Normal minor
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-08-18 18:03 UTC by Michael Terry
Modified: 2020-11-06 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.76 KB, patch)
2010-08-18 18:04 UTC, Michael Terry
none Details | Review

Description Michael Terry 2010-08-18 18:03:52 UTC
If gnome-screensaver isn't running or for whatever reason isn't fulfilling dbus requests, when gnome-power-manager asks it to Lock itself, g-p-m will wait 5s for the screensaver to finish locking before timing out and continuing.

You can see this if you:
 0) Make sure you have the gconf setting to lock screensaver on suspend
 1) Close your laptop lid (note how long it takes for your computer to suspend)
 2) Open lid, resume
 3) killall gnome-screensaver
 4) Close your laptop lid again (note again how long it takes)

Both #1 and #4 should be the same length of time, but #4 actually takes 5s longer.

Really, if the Lock dbus request didn't go through, g-p-m shouldn't waste its time waiting.
Comment 1 Michael Terry 2010-08-18 18:04:53 UTC
Created attachment 168217 [details] [review]
Proposed patch
Comment 2 Richard Hughes 2010-08-31 09:40:30 UTC
The reason that the request is async was that gnome-screensaver called into gnome-power-manager and there was a deadlock condition. I'm not sure if that's still the case. If we're doing a sync call to gss, I don't think we still need to do the "while (ret && ! gpm_screensaver_check_running (screensaver))" thing either.
Comment 3 André Klapper 2020-11-06 20:14:13 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-power-manager/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.