[gnome-power-manager] 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] Add a bodge to reset the idletime XAlarm when we are no longer inhibited.
- Date: Sat, 1 Aug 2009 17:26:45 +0000 (UTC)
commit b5cf34d4b9861ab916a3ff74a2a08093ccb75b9f
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 7a21a61..8d00aa9 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -355,6 +355,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]