mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 05:30:03 +01:00
etc: Tweak default percentage levels
If we want the computer to be able to take useful action about the low battery, we should have a slightly higher "low" percentage level so that power saving made really makes a difference in runtime. Also bump "critical" slightly so that doom isn't quite as near but in the distance nonetheless. The "action" level stays the same, as 1% is too close to some batteries' actual switch off point, eg. the computer might brown out before we see 1%.
This commit is contained in:
parent
988e79ae24
commit
a14de39241
2 changed files with 6 additions and 6 deletions
|
|
@ -59,11 +59,11 @@ UsePercentageForPolicy=true
|
|||
# will be used.
|
||||
#
|
||||
# Defaults:
|
||||
# PercentageLow=10
|
||||
# PercentageCritical=3
|
||||
# PercentageLow=20
|
||||
# PercentageCritical=5
|
||||
# PercentageAction=2
|
||||
PercentageLow=10
|
||||
PercentageCritical=3
|
||||
PercentageLow=20
|
||||
PercentageCritical=5
|
||||
PercentageAction=2
|
||||
|
||||
# When UsePercentageForPolicy is false, the time remaining at which UPower
|
||||
|
|
|
|||
|
|
@ -1073,8 +1073,8 @@ static void
|
|||
load_percentage_policy (UpDaemon *daemon,
|
||||
gboolean load_default)
|
||||
{
|
||||
LOAD_OR_DEFAULT (daemon->priv->low_percentage, "PercentageLow", 10);
|
||||
LOAD_OR_DEFAULT (daemon->priv->critical_percentage, "PercentageCritical", 3);
|
||||
LOAD_OR_DEFAULT (daemon->priv->low_percentage, "PercentageLow", 20);
|
||||
LOAD_OR_DEFAULT (daemon->priv->critical_percentage, "PercentageCritical", 5);
|
||||
LOAD_OR_DEFAULT (daemon->priv->action_percentage, "PercentageAction", 2);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue