From ad3ad6fcd23e0c2e646f0e1e065ce0f76fc62186 Mon Sep 17 00:00:00 2001 From: Mike Capps Date: Thu, 26 Aug 2021 10:19:09 -0400 Subject: 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 : 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 Change-Id: Iaa7e447d2d5aa977482663ef6dd45aadffc58f55 --- meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-phosphor/recipes-phosphor') 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)}" -- cgit v1.2.3