mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
4765242540
commit
eedf71f948
2 changed files with 5 additions and 4 deletions
|
@ -22756,9 +22756,10 @@ Enable polling the kernel for battery level changes.
|
||||||
@item @code{ignore-lid?} (default: @code{#f})
|
@item @code{ignore-lid?} (default: @code{#f})
|
||||||
Ignore the lid state, this can be useful if it's incorrect on a device.
|
Ignore the lid state, this can be useful if it's incorrect on a device.
|
||||||
|
|
||||||
@item @code{use-percentage-for-policy?} (default: @code{#f})
|
@item @code{use-percentage-for-policy?} (default: @code{#t})
|
||||||
Whether battery percentage based policy should be used. The default is to use
|
Whether a to use a policy based on battery percentage rather than on
|
||||||
the time left, change to @code{#t} to use the percentage.
|
estimated time left. A policy based on battery percentage is usually
|
||||||
|
more reliable.
|
||||||
|
|
||||||
@item @code{percentage-low} (default: @code{20})
|
@item @code{percentage-low} (default: @code{20})
|
||||||
When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage
|
When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage
|
||||||
|
|
|
@ -203,7 +203,7 @@ (define-record-type* <upower-configuration>
|
||||||
(ignore-lid? upower-configuration-ignore-lid?
|
(ignore-lid? upower-configuration-ignore-lid?
|
||||||
(default #f))
|
(default #f))
|
||||||
(use-percentage-for-policy? upower-configuration-use-percentage-for-policy?
|
(use-percentage-for-policy? upower-configuration-use-percentage-for-policy?
|
||||||
(default #f))
|
(default #t))
|
||||||
(percentage-low upower-configuration-percentage-low
|
(percentage-low upower-configuration-percentage-low
|
||||||
(default 20))
|
(default 20))
|
||||||
(percentage-critical upower-configuration-percentage-critical
|
(percentage-critical upower-configuration-percentage-critical
|
||||||
|
|
Loading…
Reference in a new issue