[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/27: services: upower: Default to a percentage-based policy.
From: |
guix-commits |
Subject: |
02/27: services: upower: Default to a percentage-based policy. |
Date: |
Sun, 4 Sep 2022 17:20:30 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit eedf71f94807e528ae64c51eda8186f7e48416cc
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 2 23:48:37 2022 +0200
services: upower: Default to a percentage-based policy.
This is the documented default of UPower 0.99.15 (the actual default
appears to be #f though).
* gnu/services/desktop.scm (<upower-configuration>)
[use-percentage-for-policy?]: Default to #t.
* doc/guix.texi (Desktop Services): Adjust accordingly. Explain the
tradeoff.
---
doc/guix.texi | 7 ++++---
gnu/services/desktop.scm | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index e111801e67..95b4fb1b2c 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -22756,9 +22756,10 @@ Enable polling the kernel for battery level changes.
@item @code{ignore-lid?} (default: @code{#f})
Ignore the lid state, this can be useful if it's incorrect on a device.
-@item @code{use-percentage-for-policy?} (default: @code{#f})
-Whether battery percentage based policy should be used. The default is to use
-the time left, change to @code{#t} to use the percentage.
+@item @code{use-percentage-for-policy?} (default: @code{#t})
+Whether a to use a policy based on battery percentage rather than on
+estimated time left. A policy based on battery percentage is usually
+more reliable.
@item @code{percentage-low} (default: @code{20})
When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 6bad2b5ecd..07e7500847 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -203,7 +203,7 @@
(ignore-lid? upower-configuration-ignore-lid?
(default #f))
(use-percentage-for-policy? upower-configuration-use-percentage-for-policy?
- (default #f))
+ (default #t))
(percentage-low upower-configuration-percentage-low
(default 20))
(percentage-critical upower-configuration-percentage-critical
- 01/27: services: upower: Update default percentage values., (continued)
- 01/27: services: upower: Update default percentage values., guix-commits, 2022/09/04
- 03/27: store: Remove unused variable and 'socket' call., guix-commits, 2022/09/04
- 05/27: guix describe: Adjust test to latest changes., guix-commits, 2022/09/04
- 12/27: gnu: chez-scheme: Fix use of "/bin/sh"., guix-commits, 2022/09/04
- 13/27: gnu: Add Zuo., guix-commits, 2022/09/04
- 16/27: gnu: chez-scheme-for-racket: Support cross-compilation., guix-commits, 2022/09/04
- 14/27: gnu: racket: Update to 8.6., guix-commits, 2022/09/04
- 21/27: gnu: hashcat: Don't embed timestamp, fixing reproducibility., guix-commits, 2022/09/04
- 20/27: gnu: racket: Use Racket CS on all systems., guix-commits, 2022/09/04
- 25/27: gnu: Add texlive-latex-hyphenat., guix-commits, 2022/09/04
- 02/27: services: upower: Default to a percentage-based policy.,
guix-commits <=
- 04/27: store: Open daemon connections with SOCK_CLOEXEC., guix-commits, 2022/09/04
- 06/27: guix system: Do not use 'vm-image.tmpl' in tests., guix-commits, 2022/09/04
- 07/27: gnu: stex: Update to 1.2.2-2.afa6075., guix-commits, 2022/09/04
- 09/27: etc: teams: Add racket team., guix-commits, 2022/09/04
- 10/27: etc: teams: Add entry for Philip McGrath., guix-commits, 2022/09/04
- 15/27: gnu: chez-scheme: Make bootfiles regular inputs., guix-commits, 2022/09/04
- 17/27: gnu: racket: Support cross-compiling the VM packages., guix-commits, 2022/09/04
- 18/27: gnu: chez-scheme-for-racket: Support all systems., guix-commits, 2022/09/04
- 19/27: gnu: racket-vm-bc: Add workaround for ppc64le., guix-commits, 2022/09/04
- 22/27: gnu: hashcat: Unbundle everything but LZMA-SDK., guix-commits, 2022/09/04