-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include sensor monitor for our platform [meta-facebook] #24
Comments
In meta-ibm I did it like:
|
i did this for meta-facebook code is compiling fine but senor-monitor service file is not created in /lib/systemd/system |
i enabled the sensor-monitor for platform meta-facebook . |
sensor-monitor is using some code used by fan-control that looks at a pgood property that apparently x86 doesn't use. I think for the case of sensor-monitor at the very least it can be changed to look at the CurrentPowerState property on the chassis state interface. If you look in https://github.com/openbmc/phosphor-fan-presence/blob/master/power_state.hpp it should be pretty straight forward to make a new derived class to look at that property, and then change the sensor-monitor code to create an instance of that instead. |
We enable sensor-monitor services, and Fan Monitoring interface (xyz.openbmc_project.Thermal.Alert ) . |
Those threshold interfaces are pretty new. I've built them into phosphor-virtual-sensor, but not sure if any other sensor apps implement them yet. Which one are you using? You may need to add support for them. |
We wanted to power off the slots when the fan sensor values goes below the critical value for our platform . we have added the shutdown interfaces in the phosphor-virtual-sensor . now shutdown interface dbus propertys are created . |
This class handles the shutdown: https://github.com/openbmc/phosphor-fan-presence/blob/master/sensor-monitor/shutdown_alarm_monitor.hpp#L34 |
We wanted to power on , and agin power off the slots on if threshold value cross. like if the threshold values is more than 120 power off the slot and agin if reach to 95 i want to power on the slot. Could you please let us know any Interface is avilable for Power on the slot . |
sensor-monitor is using some code used by fan-control that looks at a pgood property that apparently x86 doesn't use. I think for the case of sensor-monitor at the very least it can be changed to look at the CurrentPowerState property on the chassis state interface. If you look in https://github.com/openbmc/phosphor-fan-presence/blob/master/power_state.hpp it should be pretty straight forward to make a new derived class to look at that property, and then change the sensor-monitor code to create an instance of that instead. Can we by pass the power control (pgood property that apparently x86 doesn't use ) for our platfrom. |
I haven't written anything like that in this code since we didn't need it. You are welcome to add whatever you need. I assume you have some d-bus interface that can power on slots? You may want to make a new Monitor class for this power on part. |
I'm not entirely sure what you mean, but I have no problem with you making it behave how you need, as long as you don't break what is currently there (so use compiler options, etc). |
pgood property that apparently x86 doesn't use |
Hi @manishtoc,
|
Hi @spinler |
Hi @spinler , https://github.com/openbmc/phosphor-fan-presence/blob/master/power_state.hpp#L135 Was PGoodState class implemented to get powerstate of fan ? In our system, we don't have fan fru. In this case, can we implement a new derived class and get the power state of hosts ? |
The text was updated successfully, but these errors were encountered: