[gnome-settings-daemon] power: Reset IDLETIME on resume
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Reset IDLETIME on resume
- Date: Mon, 21 Jan 2013 17:02:43 +0000 (UTC)
commit b0d101d878482914c1ba652abf413b362dd4eaa8
Author: Bastien Nocera <hadess hadess net>
Date: Sat Jan 19 01:58:36 2013 +0100
power: Reset IDLETIME on resume
We used to do this using the SimulateUserActivity D-Bus function
from gnome-screensaver, but that doesn't exist anymore with
gnome-shell and the code was removed in commit
87a2490dc8c154a3eb7ead55c6a60e9e7fb81d1a
We shouldn't need to do it, but Xorg won't do it
for us (yet? https://bugs.freedesktop.org/show_bug.cgi?id=59576)
Reset the IDLETIME by poking left-shift programmatically on resume.
plugins/power/gsd-power-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index e8f3fd1..abf03f6 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3293,6 +3293,10 @@ handle_resume_actions (GsdPowerManager *manager)
manager->priv->pre_dpms_brightness = -1;
}
+ /* And work-around Xorg bug:
+ * https://bugs.freedesktop.org/show_bug.cgi?id=59576 */
+ reset_idletime ();
+
/* set up the delay again */
inhibit_suspend (manager);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]