Lines Matching +full:power +full:- +full:manager
7 #include "xyz/openbmc_project/Control/Power/RestorePolicy/server.hpp"
10 #include <systemd/sd-bus.h>
12 #include <phosphor-logging/elog-errors.hpp>
13 #include <phosphor-logging/lg2.hpp>
29 namespace manager namespace
36 using namespace sdbusplus::server::xyz::openbmc_project::control::power;
40 } // namespace manager
55 while ((arg = getopt_long(argc, argv, "h:", longOpts, &optIndex)) != -1) in main()
77 using namespace phosphor::state::manager; in main()
80 // This application is only run if chassis power is off in main()
83 // implement any power restore policies in main()
90 phosphor::state::manager::utils::getProperty( in main()
96 "BMC was reset due to pinhole reset, no power restore policy will be run"); in main()
102 "BMC was reset due to cold reset, no power restore policy will be run"); in main()
106 /* The logic here is to first check the one-time PowerRestorePolicy setting. in main()
108 * user setting in the non one-time object, otherwise honor the one-time in main()
134 info("One time not set, check user setting of power policy"); in main()
145 phosphor::state::manager::utils::setProperty( in main()
169 info("Host power is off, processing power policy {POWER_POLICY}", in main()
179 phosphor::state::manager::utils::setProperty( in main()
183 phosphor::state::manager::utils::setProperty( in main()
187 // Always execute power on if AlwaysOn is set, otherwise check config in main()
191 else if (!phosphor::state::manager::utils::checkACLoss(hostId)) in main()
194 … "Chassis power was not on prior to BMC reboot so do not run any further power policy"); in main()
205 // Read last requested state and re-request it to execute it in main()
206 auto hostReqState = phosphor::state::manager::utils::getProperty( in main()
211 phosphor::state::manager::utils::setProperty( in main()
223 // Read last requested state and re-request it to execute it in main()
224 auto hostReqState = phosphor::state::manager::utils::getProperty( in main()
227 // As long as the host transition is not 'Off' power on host state. in main()
231 phosphor::state::manager::utils::setProperty( in main()
235 phosphor::state::manager::utils::setProperty( in main()