[gnome-settings-daemon] power: Add markers inside the output for blanking



commit b435c481036f20eb540e6baa628276f832ebdf5f
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 18 15:38:31 2013 +0100

    power: Add markers inside the output for blanking

 plugins/power/gsd-power-manager.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index cbe21fa..2ce4621 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2432,6 +2432,8 @@ idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode)
                         g_warning ("failed to turn the panel off: %s",
                                    error->message);
                         g_clear_error (&error);
+                } else {
+                        g_debug ("TESTSUITE: Blanked screen");
                 }
 
                 /* only toggle keyboard if present and not already toggled */
@@ -2467,8 +2469,9 @@ idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode)
                         g_warning ("failed to turn the panel on: %s",
                                    error->message);
                         g_clear_error (&error);
+                } else {
+                        g_debug ("TESTSUITE: Unblanked screen");
                 }
-
                 /* reset brightness if we dimmed */
                 if (manager->priv->pre_dim_brightness >= 0) {
                         ret = backlight_set_abs (manager->priv->rr_screen,
@@ -3275,6 +3278,8 @@ handle_resume_actions (GsdPowerManager *manager)
                 g_warning ("failed to turn the panel on after resume: %s",
                            error->message);
                 g_error_free (error);
+        } else {
+                g_debug ("TESTSUITE: Unblanked screen on resume");
         }
 
         if (manager->priv->pre_dpms_brightness != -1) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]