about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-09-24 11:04:13 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-09-24 11:04:13 +0200
commit602629a527d5d027a0029244d8a3dccfbd1a7de4 (patch)
tree404b3d8a81bbe34da0aaa0b630618a82a14f430c
parenttreewide: Update (diff)
downloadnixos-config-602629a527d5d027a0029244d8a3dccfbd1a7de4.zip
module/upower: Trigger earlier
We might not have enough energy left to go through the full hibernation
process, if we only trigger at 5 percent (due to miss-calibrations of the
battery).
-rw-r--r--modules/by-name/up/upower/module.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/up/upower/module.nix b/modules/by-name/up/upower/module.nix
index eb1c7af2..f5a62ed7 100644
--- a/modules/by-name/up/upower/module.nix
+++ b/modules/by-name/up/upower/module.nix
@@ -14,8 +14,8 @@ in {
       enable = true;
       usePercentageForPolicy = true;
 
-      percentageLow = 10;
-      percentageAction = 5;
+      percentageLow = 15;
+      percentageAction = 10;
 
       criticalPowerAction = "Hibernate";
     };