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 549844 - DBUS times out after longer suspends
DBUS times out after longer suspends
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: general
2.22.x
Other All
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-08-29 16:49 UTC by Mario Limonciello
Modified: 2008-09-02 10:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Patch to (hopefully) resolve this issue (1.86 KB, patch)
2008-08-29 16:51 UTC, Mario Limonciello
none Details | Review

Description Mario Limonciello 2008-08-29 16:49:47 UTC
Please describe the problem:
When suspends are >= 6 hours, the dbus call for suspend often times out causing gnome-power-manager to play a sound that there was an error with the suspend.

A similar problem was encountered in KPowersave.

Steps to reproduce:
On a laptop with known functional suspend:
1. Suspend laptop
2. Wait 6 hours
3. Resume
If it doesn't occur, try again


Actual results:
You will get a blaring annoying sound indicating that there was an error with suspend even though there wasn't. 

Expected results:
Silence upon resume

Does this happen every time?
No

Other information:
Comment 1 Mario Limonciello 2008-08-29 16:51:34 UTC
Created attachment 117593 [details] [review]
Patch to (hopefully) resolve this issue
Comment 2 Richard Hughes 2008-09-02 10:00:18 UTC
I've reformatted your patch and committed it to svn. Thanks:

2008-09-02  Richard Hughes  <richard@hughsie.com>

	* libhal-glib/libhal-gpower.c: (hal_gpower_init),
	(hal_gpower_filter_error), (hal_gpower_suspend),
	(hal_gpower_pm_method_void), (hal_gpower_enable_power_save):
	Check for suspend or hibernate actions that take longer than 6 hours,
	as we cannot specify a longer timeout in the GLIB bindings and thus
	sometimes 'fail' when we actually succeed. Patch reformated from an
	original patch from Mario Limonciello, many thanks. Fixes #549844