Testing Phosphor-pid-control

Vijay Khemka vijaykhemka at fb.com
Fri Dec 21 07:57:13 AEDT 2018


Hi Ed,
I am able to override and read it back but not seeing any change in pwm data as well as fan speed. I have swampd running.

Regards
-Vijay

On 12/20/18, 10:14 AM, "Tanous, Ed" <ed.tanous at intel.com> wrote:

    Assuming you’re using dbus-sensors (which I’m pretty sure you are):
    
    Support for overriding sensor values was recently landed in this commit:
    https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.openbmc-2Dproject.xyz_-23_c_openbmc_dbus-2Dsensors_-2B_16177_&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=1J-5eJl4Drc2LKcQ2SdONc02uR5cih3P68m66QcMYog&s=c9798qmI_pA3hnzB97oaYFK8yFTmwrxdpAeRrui4qkY&e=
    
    Overriding a sensor value with a "fake" sensor reading should be as easy as simply calling SetProperty on the dbus interface.
    
    Example as tested on my system (your path names may vary)
    dbus-send --system --print-reply --dest=xyz.openbmc_project.CPUSensor /xyz/openbmc_project/sensors/temperature/Core_1_CPU0 org.freedesktop.DBus.Properties.Set string:xyz.openbmc_project.Sensor.Value string:Value variant:double:1.0
    
    and verify by reading it back out:
    
    dbus-send --system --print-reply --dest=xyz.openbmc_project.CPUSensor /xyz/openbmc_project/sensors/temperature/Core_1_CPU0 org.freedesktop.DBus.Properties.GetAll string:xyz.openbmc_project.Sensor.Value
    



More information about the openbmc mailing list