summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor
diff options
context:
space:
mode:
authorMike Capps <mikepcapps@gmail.com>2021-08-26 17:19:09 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-08-26 18:43:21 +0300
commitad3ad6fcd23e0c2e646f0e1e065ce0f76fc62186 (patch)
treeb29df7128c26a090260b563443192494e2d2bf8a /meta-phosphor/recipes-phosphor
parentb8fea6dafb46cd8c226992f14b7c4d1dce2d6ce6 (diff)
downloadopenbmc-ad3ad6fcd23e0c2e646f0e1e065ce0f76fc62186.tar.xz
meta-phosphor:fans: Include `fanctl` tool with phosphor-fan-control
This tool allows for controlling fan speeds, viewing targets and feedback values, and diagnostic info about fans and fan-control services. Commands: - status: print the RPM or PWM targets and view RPM feedback values for each fan/rotor. Also shows the health of the fan-control service and BMC power states. - set <target> : sets the targets for all fans (if no additional args) or for a list of one-or-more specific fans. - get : gets the targets and prints rotor speeds for all fans - reload: forces phosphor-fan-control to reload its configuration files by sending the service an interrupt signal. - resume: shortcut to restart phosphor-fan-control if it had been stopped for maintenance. Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: Iaa7e447d2d5aa977482663ef6dd45aadffc58f55
Diffstat (limited to 'meta-phosphor/recipes-phosphor')
-rw-r--r--meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb b/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
index ccf079b81..9e0149382 100644
--- a/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
+++ b/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
@@ -99,6 +99,7 @@ INSTFMT_CONTROL_INIT = "phosphor-fan-control-init@{0}.service"
FMT_CONTROL_INIT = "../${TMPL_CONTROL_INIT}:${POWERON_TGT}.wants/${INSTFMT_CONTROL_INIT}"
FILES:${PN}-control = "${bindir}/phosphor-fan-control"
+FILES:${PN}-control += "${bindir}/fanctl"
SYSTEMD_SERVICE:${PN}-control += "${TMPL_CONTROL}"
SYSTEMD_SERVICE:${PN}-control += "${@bb.utils.contains('PACKAGECONFIG', 'json', '', '${TMPL_CONTROL_INIT}', d)}"