[gnome-settings-daemon] Power: failing to clear DPMS timeouts should not be fatal



commit 3fb7885d567a0af7ff32e3d0fc1c8d6d26ffb182
Author: Alexandre Rostovtsev <tetromino gmail com>
Date:   Tue Oct 4 00:45:17 2011 -0400

    Power: failing to clear DPMS timeouts should not be fatal
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660859
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 plugins/power/gsd-power-manager.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index e936443..887f774 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3774,8 +3774,10 @@ gsd_power_manager_start (GsdPowerManager *manager,
         ret = gnome_rr_screen_set_dpms_mode (manager->priv->x11_screen,
                                              GNOME_RR_DPMS_ON,
                                              error);
-        if (!ret)
-                return FALSE;
+        if (!ret) {
+                g_warning ("Failed set DPMS mode: %s", (*error)->message);
+                g_clear_error (error);
+        }
 
         /* coldplug the engine */
         engine_coldplug (manager);



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