From 6606da7db71828bc41ec9f300711a7c2fa31fb13 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 25 Aug 2024 06:35:15 +0100 Subject: [PATCH] Tweak power settings and timings When sleeping enter standby then hibernate Default autoSuspend action still sleep, except low power which is direct to hibernate Reduce idle times for battery and lower power settings --- home/desktop/plasma/default.nix | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/home/desktop/plasma/default.nix b/home/desktop/plasma/default.nix index 6549bf4d..c1bae4e3 100644 --- a/home/desktop/plasma/default.nix +++ b/home/desktop/plasma/default.nix @@ -204,16 +204,15 @@ powerdevil = let - powerButtonAction = "showLogoutScreen"; - autoSuspend.action = "sleep"; - whenSleepingEnter = "standby"; - whenLaptopLidClosed = "turnOffScreen"; + powerButtonAction = "turnOffScreen"; + whenSleepingEnter = "standbyThenHibernate"; + whenLaptopLidClosed = "sleep"; in { AC = { inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; autoSuspend = { - inherit (autoSuspend) action; + action = "sleep"; idleTimeout = 7200; }; dimDisplay = { @@ -228,30 +227,30 @@ battery = { inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; autoSuspend = { - inherit (autoSuspend) action; - idleTimeout = 1800; + action = "sleep"; + idleTimeout = 900; }; dimDisplay = { enable = true; idleTimeOut = 120; }; turnOffDisplay = { - idleTimeout = 900; + idleTimeout = 300; idleTimeoutWhenLocked = 60; }; }; lowBattery = { inherit powerButtonAction whenSleepingEnter whenLaptopLidClosed; autoSuspend = { - inherit (autoSuspend) action; - idleTimeout = 900; + action = "hibernate"; + idleTimeout = 300; }; dimDisplay = { enable = true; idleTimeOut = 60; }; turnOffDisplay = { - idleTimeout = 300; + idleTimeout = 120; idleTimeoutWhenLocked = "immediately"; }; };