Removing sensors on standby

Ed Tanous ed.tanous at intel.com
Wed Jun 12 01:45:33 AEST 2019


On 6/11/19 3:07 AM, Thaj wrote:
> 
> Requirement is that, Sensor should be monitored only on host powered ON
> state.  
> 

The dbus-sensors project currently has handling of this;  I'm unsure of
whether phosphor-hwmon can monitor the host state, but I suspect there's
a way.

> 
> Is it a good idea to add a config file entry for this purpose (something
> like REMOVE_ON_STANDBY) ?
> 

Example of reading ADCs only when host is on:
https://github.com/openbmc/entity-manager/blob/3e5e41fb89b91234ef043df1137c8984f9cafdc4/configurations/WFT%20Baseboard.json#L6

Example of reading a temperature sensor only after host firmware has
been instantiated:
https://github.com/openbmc/entity-manager/blob/3e5e41fb89b91234ef043df1137c8984f9cafdc4/configurations/WFT%20Baseboard.json#L1172


More information about the openbmc mailing list