avos bfe253bacb 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
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2018-12-19 21:56:54 +00:00
2018-08-19 07:12:35 +00:00
2018-11-30 19:40:16 +00:00
2018-08-23 05:05:47 +00:00
2018-01-05 08:29:32 +00:00
2018-10-26 23:44:39 +00:00
2018-06-06 18:52:33 +00:00
2018-08-12 13:29:40 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2018-01-02 16:50:57 +00:00
2017-10-31 00:07:04 +00:00
2018-10-22 02:34:10 +00:00
2018-05-23 09:46:21 +00:00
2018-02-23 17:20:53 +00:00
2018-05-19 20:57:22 +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-06-17 17:31:16 +00:00
2018-03-19 05:49:26 +00:00
2018-12-19 22:47:37 +00:00
2018-12-12 05:18:53 +00:00
2018-02-08 14:53:34 +00:00
2017-10-31 00:07:04 +00:00
2018-12-15 21:34:40 +00:00
2018-06-15 17:44:21 +00:00
2018-06-15 17:44:21 +00:00
2018-07-24 20:20:17 +00:00