[gnome-power-manager/gnome-2-26] Add a bodge to reset the idletime XAlarm when we are no longer inhibited.
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-26] Add a bodge to reset the idletime XAlarm when we are no longer inhibited.
- Date: Mon, 3 Aug 2009 16:19:18 +0000 (UTC)
commit d5015a9f2c0a18f73ec4277844908a624f71472d
Author: Richard Hughes <richard hughsie com>
Date: Sat Aug 1 18:25:29 2009 +0100
Add a bodge to reset the idletime XAlarm when we are no longer inhibited.
There's no bug in gnome-power-manager, and I suspect gnome-session somehow triggers this
bug. There's a full writeup in http://blogs.gnome.org/hughsie/2009/07/30/accidental-blanking-and-gnome-power-manager/
but I've got next-to-no help in debugging gnome-session or the XSync alarms stuff.
Open source sucks sometimes.
src/gpm-idle.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-idle.c b/src/gpm-idle.c
index b0a0f03..852f0f3 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -320,6 +320,14 @@ static void
gpm_idle_session_inhibited_changed_cb (GpmSession *session, gboolean is_inhibited, GpmIdle *idle)
{
egg_debug ("Received gnome session inhibited changed: %i", is_inhibited);
+
+ /* gnome-session IDLETIME bug -- For more details see:
+ * http://blogs.gnome.org/hughsie/2009/07/30/accidental-blanking-and-gnome-power-manager/ */
+ if (!is_inhibited) {
+ egg_warning ("performing gnome-session IDLETIME bodge");
+ egg_idletime_alarm_reset_all (idle->priv->idletime);
+ }
+
gpm_idle_evaluate (idle);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]