From 47652425400281f48a399938585dd103f8de3586 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 2 Sep 2022 23:46:22 +0200 Subject: services: upower: Update default percentage values. These values are those used by default by UPower 0.99.15. * gnu/services/desktop.scm ()[percentage-low] [percentage-critical]: Increase. * doc/guix.texi (Desktop Services): Update accordingly. --- doc/guix.texi | 4 ++-- gnu/services/desktop.scm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 80ca017599..e111801e67 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -22760,11 +22760,11 @@ Ignore the lid state, this can be useful if it's incorrect on a device. 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{percentage-low} (default: @code{10}) +@item @code{percentage-low} (default: @code{20}) When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low. -@item @code{percentage-critical} (default: @code{3}) +@item @code{percentage-critical} (default: @code{5}) When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical. diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index f60365abac..6bad2b5ecd 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -205,9 +205,9 @@ (use-percentage-for-policy? upower-configuration-use-percentage-for-policy? (default #f)) (percentage-low upower-configuration-percentage-low - (default 10)) + (default 20)) (percentage-critical upower-configuration-percentage-critical - (default 3)) + (default 5)) (percentage-action upower-configuration-percentage-action (default 2)) (time-low upower-configuration-time-low -- cgit v1.2.3