[gnome-settings-daemon] power: Update the composite device on startup



commit 93e939b304747c9a215ec82188a899d1d15ffc0b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Sep 9 22:04:04 2013 -0400

    power: Update the composite device on startup
    
    This ensures that all the states are properly set if we have no batteries.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707823

 plugins/power/gsd-power-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 4c36361..fba14b2 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3310,8 +3310,8 @@ on_rr_screen_acquired (GObject      *object,
                       "is-rechargeable", TRUE,
                       "native-path", "dummy:composite_battery",
                       "power-supply", TRUE,
-                      "is-present", TRUE,
                       NULL);
+        engine_update_composite_device (manager);
 
         /* get percentage policy */
         manager->priv->low_percentage = g_settings_get_int (manager->priv->settings,


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