Summary: | [patch] powerd(8): force a method of battery state query | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Konstantin Stepanov <milezv> | ||||
Component: | bin | Assignee: | Andriy Voskoboinyk <avos> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | avos | ||||
Priority: | Normal | Keywords: | patch | ||||
Version: | Unspecified | Flags: | avos:
mfc-stable12+
avos: mfc-stable11+ avos: mfc-stable10+ |
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Konstantin Stepanov
2008-07-17 10:00:03 UTC
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped Man page update should be added, but the patch by itself looks fine. A commit references this bug: Author: avos Date: Sun Jan 6 02:39:04 UTC 2019 New revision: 342810 URL: https://svnweb.freebsd.org/changeset/base/342810 Log: 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 Changes: head/usr.sbin/powerd/powerd.8 head/usr.sbin/powerd/powerd.c A commit references this bug: Author: avos Date: Sun Jan 13 02:19:01 UTC 2019 New revision: 342981 URL: https://svnweb.freebsd.org/changeset/base/342981 Log: MFC r342810: 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. PR: 125707 Submitted by: Konstantin Stepanov <milezv@yandex.ru> Reviewed by: bcr, imp Differential Revision: https://reviews.freebsd.org/D18742 Changes: _U stable/12/ stable/12/usr.sbin/powerd/powerd.8 stable/12/usr.sbin/powerd/powerd.c A commit references this bug: Author: avos Date: Sun Jan 13 02:23:19 UTC 2019 New revision: 342982 URL: https://svnweb.freebsd.org/changeset/base/342982 Log: MFC r342810: 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. PR: 125707 Submitted by: Konstantin Stepanov <milezv@yandex.ru> Reviewed by: bcr, imp Differential Revision: https://reviews.freebsd.org/D18742 Changes: _U stable/11/ stable/11/usr.sbin/powerd/powerd.8 stable/11/usr.sbin/powerd/powerd.c A commit references this bug: Author: avos Date: Sun Jan 13 02:27:11 UTC 2019 New revision: 342983 URL: https://svnweb.freebsd.org/changeset/base/342983 Log: MFC r342810: 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. PR: 125707 Submitted by: Konstantin Stepanov <milezv@yandex.ru> Reviewed by: bcr, imp Differential Revision: https://reviews.freebsd.org/D18742 Changes: _U stable/10/ stable/10/usr.sbin/powerd/powerd.8 stable/10/usr.sbin/powerd/powerd.c |