<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I found that on my machine (x86), phosphor-state-manager(host) doesn't work as expected. </div><div>I have a problem when debugging. I hope someone can help me. </div><div><br></div><div>When `obmcutil poweroff` is executed, it calls `obmc-host-shutdown@0.target` </div><div>and  will change the CurrentHostState by judging whether obmc-host-stop@0.target is executed or not.</div><div><br></div><div>However,On my machine, obmc-host-stop@0.target has never been executed.</div><div><br></div><div>$systemctl status obmc-host-shutdown@0.target<br></div><div><div>obmc-host-shutdown@0.target - Power0 Host Off</div><div>   Loaded: loaded (/lib/systemd/system/obmc-host-shutdown@.target; static; vendor preset: enabled)</div><div>   Active: active</div><div><br></div><div>on5263m5 systemd[1]: Reached target Power0 Host Off.<br></div></div><div><br></div><div>$systemctl status obmc-host-stop@0.target</div><div>Obmc-host-stop@0.target - Stop Host0</div><div>   Loaded: loaded (/lib/systemd/system/obmc-host-stop@.target; static; vendor preset: enabled)</div><div>   Active: inactive (dead)</div><div><br></div><div>There is such a comment in the code</div><div><br></div><div>host-shutdown notifies host of shutdown and that leads to host-stop being</div><div>called so initiate a host shutdown with the -shutdown target and consider the </div><div>host shut down when the -stop target is complete</div><div><br></div><div>But I have not figured out how -stop target is called.</div><div><br></div><div>In addition, if the shutdown is performed on the host operating system, </div><div>is it impossible for host-state-manager to know that it is currently shut down? </div><div>In this case, how is openbmc handled? Which module should I refer to?</div><div><br></div><div>Thanks</div><div><br></div><div>John</div></div></div></div></div>