1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-06 18:29:47 +00:00
Andriy Voskoboinyk 5c81ba5ade powerd(8): allow to force a method of battery state query
This change allows to determine power source via sysctl or /dev/apm
when devd(8) is running (used by default).

Based on patch from PR; other changes on top of it:
- '-f' (force) -> '-s' (source) parameter renaming;
- allow 'apm' -> 'devd' transition when '-s devd' is set
(if APM is enabled);
- man page update.

Checked on amd64 with -s devd / sysctl and apm
(an extra build with forced USE_APM define set was done)

PR:		125707
Submitted by:	Konstantin Stepanov <milezv@yandex.ru>
Reviewed by:	bcr, imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D18742
2019-01-06 02:39:03 +00:00
..
2018-09-18 00:32:10 +00:00
2018-12-19 21:56:54 +00:00
2018-11-30 19:40:16 +00:00
2018-08-23 05:05:47 +00:00
2018-10-26 23:44:39 +00:00
2018-10-22 02:34:10 +00:00
2018-11-04 06:39:01 +00:00
2018-11-27 09:41:47 +00:00
2018-10-01 16:16:05 +00:00
2018-09-19 07:09:55 +00:00
2018-12-19 22:47:37 +00:00
2018-12-12 05:18:53 +00:00
2018-12-15 21:34:40 +00:00