/[base]
ViewVC logotype

Revision 342810


Jump to revision: Previous Next
Author: avos
Date: Sun Jan 6 02:39:03 2019 UTC (5 years, 5 months ago)
Changed paths: 2
Log Message:
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


Changed paths

Path Details
Directoryhead/usr.sbin/powerd/powerd.8 modified , text changed
Directoryhead/usr.sbin/powerd/powerd.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27