services: upower: Default to a percentage-based policy.
authorLudovic Courtès <ludo@gnu.org>
Fri, 2 Sep 2022 21:48:37 +0000 (23:48 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 4 Sep 2022 21:10:10 +0000 (23:10 +0200)
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
gnu/services/desktop.scm

index e111801..95b4fb1 100644 (file)
@@ -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
index 6bad2b5..07e7500 100644 (file)
   (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