services: upower: Update default percentage values.

These values are those used by default by UPower 0.99.15.

* gnu/services/desktop.scm (<upower-configuration>)[percentage-low]
[percentage-critical]: Increase.
* doc/guix.texi (Desktop Services): Update accordingly.
This commit is contained in:
Ludovic Courtès 2022-09-02 23:46:22 +02:00
parent 41bce2414a
commit 4765242540
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -205,9 +205,9 @@ (define-record-type* <upower-configuration>
(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