<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(50, 49, 48); color: rgb(50, 49, 48); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">Hi Vishwa</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The GPIO PIN configuration conflict is in my DTS, it will be fine after it is resolved, thank you!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
as follows:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="margin: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; caret-color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); display: inline !important">root@starlake:</span><span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">#<span> </span></span>/sys/class/leds#
ls<br>
</span>
<div>fault identify power<br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">root@starlake:</span># busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on
org.freedesktop.DBus.Properties Set ssv xyz.openbmc_project.Led.Group Asserted b true<br>
</span><span></span><br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
harley</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> 周 远清 <zhouyuanqing8@outlook.com><br>
<b>发送时间:</b> 2020年7月13日 19:51<br>
<b>收件人:</b> Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com><br>
<b>抄送:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>; uperic@163.com <uperic@163.com><br>
<b>主题:</b> 回复: busctl call "led method" failed</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(50,49,48); background-color:rgb(255,255,255); display:inline!important">Hi Vishwa</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(50,49,48); background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(50,49,48); background-color:rgb(255,255,255); display:inline!important"> I copied your command and tested it again, the problem is still the same.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(50,49,48); background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(50,49,48); background-color:rgb(255,255,255); display:inline!important"> I looked at the phosphor-led-manager-master document and saw that the sys/class/leds directory needs to generate the following files.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(50,49,48); background-color:rgb(255,255,255); display:inline!important">
<pre style="font-weight:400; box-sizing:border-box; font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace; font-size:13.6px; margin-top:0px; margin-bottom:16px; padding:16px; overflow:auto; line-height:1.45; background-color:rgb(246,248,250); border-top-left-radius:6px; border-top-right-radius:6px; border-bottom-right-radius:6px; border-bottom-left-radius:6px; color:rgb(36,41,46); orphans:2; widows:2"><code style="box-sizing:border-box; margin:0px; border-top-left-radius:6px; border-top-right-radius:6px; border-bottom-right-radius:6px; border-bottom-left-radius:6px; display:inline; background-position:initial initial; background-repeat:initial initial"> ls -l /sys/class/leds/fault/
total 0
-rw-r--r-- 1 root root 4096 Jun 21 20:04 brightness
lrwxrwxrwx 1 root root 0 Jun 21 20:29 device -> ../../../leds
-r--r--r-- 1 root root 4096 Jun 21 20:29 max_brightness
drwxr-xr-x 2 root root 0 Jun 21 20:29 power
lrwxrwxrwx 1 root root 0 Jun 21 20:04 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Jun 21 20:04 trigger
-rw-r--r-- 1 root root 4096 Jun 21 20:04 uevent</code></pre>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
However, /sys/class/leds is empty on my board. I am not sure if it will affect this problem.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"><span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">root@starlake:</span>:/#
ls /sys/class/leds/<br>
</span>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">root@starlake:</span>:/#<br>
</div>
<div><br>
</div>
<span></span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>root@starlake:/sys/firmware/devicetree/base/leds# ls<br>
</span>
<div>compatible fault identify name power<br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">root@starlake</span>:/sys/firmware/devicetree/base/leds# cd fault/<br>
</div>
<div>root@<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">starlake</span>:/sys/firmware/devicetree/base/leds/fault# ls<br>
</div>
<div>gpios name<br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">root@starlake</span>:/sys/firmware/devicetree/base/leds/fault#<br>
</div>
<span></span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com><br>
<b>发送时间:</b> 2020年7月13日 17:02<br>
<b>收件人:</b> 周 远清 <zhouyuanqing8@outlook.com><br>
<b>抄送:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org>; uperic@163.com <uperic@163.com><br>
<b>主题:</b> Re: busctl call "led method" failed</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">Hi harley,</div>
<div class=""><br class="">
</div>
<div class="">I am able to see it working. Please check if there was any typo etc.. journalctl would have the info</div>
<div class=""><br class="">
</div>
root@rain4bmc:~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Get ss xyz.openbmc_project.Led.Group Asserted<br class="">
MESSAGE "v" {<br class="">
VARIANT "b" {<br class="">
BOOLEAN false;<br class="">
};<br class="">
};<br class="">
<br class="">
root@rain4bmc:~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Set ssv xyz.openbmc_project.Led.Group Asserted b true
<div class=""><br class="">
root@rain4bmc:~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Get ss xyz.openbmc_project.Led.Group Asserted<br class="">
MESSAGE "v" {<br class="">
VARIANT "b" {<br class="">
BOOLEAN true;<br class="">
};<br class="">
};<br class="">
<br class="">
root@rain4bmc:~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Set ssv xyz.openbmc_project.Led.Group Asserted b false</div>
<div class=""><br class="">
root@rain4bmc:~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Get ss xyz.openbmc_project.Led.Group Asserted<br class="">
MESSAGE "v" {<br class="">
VARIANT "b" {<br class="">
BOOLEAN false;<br class="">
};<br class="">
};<br class="">
<br class="">
root@rain4bmc:~# </div>
<div class=""><br class="">
</div>
<div class="">Alternatively, you could use bustle set-property </div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; color:rgb(59,35,34); background-color:rgb(215,211,183)">
<span class="" style="font-variant-ligatures:no-common-ligatures">busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on xyz.openbmc_project.Led.Group Asserted b true</span></div>
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; color:rgb(59,35,34); background-color:rgb(215,211,183)">
<span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></div>
<div class=""><span class="" style="color:rgb(59,35,34); background-color:rgb(215,211,183)">busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on xyz.openbmc_project.Led.Group Asserted</span></div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">!! Vishwa !!</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<blockquote type="cite" class="">On 13-Jul-2020, at 2:07 PM, 周 远清 <<a href="mailto:zhouyuanqing8@outlook.com" class="">zhouyuanqing8@outlook.com</a>> wrote:<br class="">
<br class="">
Hello everyone,<br class="">
<br class="">
There are the following calls to busctl, it is normal to use the get command, but the set command prompts "Call failed: path or object not found", and no other log information is output through the journalctl command. Please take a look at how to locate
this problem. Thank you!<br class="">
<br class="">
<br class="">
~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Get ss xyz.openbmc_project.Led.Group Asserted<br class="">
MESSAGE "v" {<br class="">
VARIANT "b" {<br class="">
BOOLEAN false;<br class="">
};<br class="">
};<br class="">
<br class="">
~# busctl --verbose call xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on org.freedesktop.DBus.Properties Set ssv xyz.openbmc_project.Led.Group Asserted b true<br class="">
Call failed: path or object not found<br class="">
<br class="">
harley<br class="">
</blockquote>
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>