[gnome-settings-daemon/wip/hadess/force-screensaver-power-saver: 2/2] power: Respect dim screen settings when not on battery




commit 16ab825d479b6078e85883debd35c73e25111dfe
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jul 29 12:05:40 2021 +0200

    power: Respect dim screen settings when not on battery
    
    The dim screen settings in the UI was not well respected as it only
    worked on discharging laptops.
    
    Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/837

 plugins/power/gsd-power-manager.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index bc7699c4..97cd8ea6 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -1902,8 +1902,6 @@ idle_configure (GsdPowerManager *manager)
         timeout_dim = 0;
         if (manager->screensaver_active) {
                 /* Don't dim when the screen lock is active */
-        } else if (!on_battery) {
-                /* Don't dim when charging */
         } else if ((manager->battery_is_low && !manager->power_profiles_proxy) ||
                    manager->power_saver_enabled) {
                 /* Aggressively blank when battery is low */


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