[PATCH skeleton] skeleton: Rewrite setValue() method for Dbus object /org/openbmc/sens…
OpenBMC Patches
openbmc-patches at stwcx.xyz
Wed Jan 20 00:40:35 AEDT 2016
…ors/host/PowerCap
obmc uses dbus interface 'org.openbmc.SensorValue' of the object
'/org/openbmc/sensors/host/PowerCap' to set Host PowerCap.
Rewrite the setValue() method to set PowerCap via the
"/sys/class/hwmon/hwmonX/user_powercap" OCC-HWMON sysfs attribute.
BMC will sends a "Set User PowerCap" command to OCC.
Signed-off-by: Yi Li <adamliyi at msn.com>
https://github.com/openbmc/skeleton/pull/30
Yi Li (1):
skeleton: Rewrite setValue() method for Dbus object
/org/openbmc/sensors/host/PowerCap
bin/Sensors.py | 22 ++++++++++++++++++----
bin/sensor_manager2.py | 7 ++++++-
2 files changed, 24 insertions(+), 5 deletions(-)
--
2.6.4
More information about the openbmc
mailing list