diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-11-23 00:10:54 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-11-23 00:10:54 +0000 |
commit | 14057f442d3e46e31df3514c110499414a7c9c5a (patch) | |
tree | 1891b6736684a87da0719fc5d052f8d8fab4ae5b /sys/dev/acpi | |
parent | 3a3036f201c577b716431ad68c65d9f095755f6a (diff) |
Back out the CRITICAL change, turn it back from 10% to 25%. Some
people with old/broken batteries didn't like this change, and the
underlying heuristics are wrong.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 75de2c95834..263fc1105ba 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.296 2015/11/22 09:40:07 reyk Exp $ */ +/* $OpenBSD: acpi.c,v 1.297 2015/11/23 00:10:53 reyk Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -2924,7 +2924,7 @@ acpiioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) pi->battery_life = remaining / bats; if (pi->battery_life > 50) pi->battery_state = APM_BATT_HIGH; - else if (pi->battery_life > 10) + else if (pi->battery_life > 25) pi->battery_state = APM_BATT_LOW; else pi->battery_state = APM_BATT_CRITICAL; |