[gnome-settings-daemon/wip/hadess/force-screensaver-power-saver: 2/2] power: Respect dim screen settings when not on battery
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/hadess/force-screensaver-power-saver: 2/2] power: Respect dim screen settings when not on battery
- Date: Thu, 29 Jul 2021 19:05:16 +0000 (UTC)
commit 0aa1226cc6035e864fd2125f8c38516a4a69d146
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 5f5b0dd8..90220b77 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -1915,8 +1915,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 (should_dim_hard (manager)) {
/* Aggressively blank when battery is low */
timeout_dim = SCREENSAVER_TIMEOUT_BLANK;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]