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




commit c203c679ebe1113df9883ba1d4d200fd0e54736e
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 cfef9718..e7b9752f 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -1916,8 +1916,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 (is_power_save_active (manager)) {
                 /* Try to save power by dimming agressively */
                 timeout_dim = SCREENSAVER_TIMEOUT_BLANK;


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