GNOME Bugzilla – Bug 549844
DBUS times out after longer suspends
Last modified: 2008-09-02 10:00:18 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:
Created attachment 117593 [details] [review] Patch to (hopefully) resolve this issue
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