GNOME Bugzilla – Bug 696500
power isn't totally a no-op if VM
Last modified: 2013-03-26 16:09:04 UTC
This looks like a bug to me: diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c index 73b7214..2c8b6ed 100644 --- a/plugins/power/gsd-power-manager.c +++ b/plugins/power/gsd-power-manager.c @@ -2474,9 +2474,6 @@ idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode) return; } - manager->priv->current_idle_mode = mode; - g_debug ("Doing a state transition: %s", idle_mode_to_string (mode)); - /* don't do any power saving if we're a VM */ if (manager->priv->is_virtual_machine) { g_debug ("ignoring state transition to %s as virtual machine", @@ -2484,6 +2481,9 @@ idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode) return; } + manager->priv->current_idle_mode = mode; + g_debug ("Doing a state transition: %s", idle_mode_to_string (mode)); + /* if we're moving to an idle mode, make sure * we add a watch to take us back to normal */ if (mode != GSD_POWER_IDLE_MODE_NORMAL) {
Looks good to commit to master and gnome-3-8, thanks.
https://git.gnome.org/browse/gnome-settings-daemon/commit/?id=cdb55fc928c106346bd14c4badf63c14be803290