Skip to content

Commit

Permalink
services: upower: Update default percentage values.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
civodul committed Sep 4, 2022
1 parent 41bce24 commit 4765242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/guix.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions gnu/services/desktop.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4765242

Please sign in to comment.