busctl call "led method" failed

Vishwanatha Subbanna vishwa at linux.vnet.ibm.com
Mon Jul 13 19:02:38 AEST 2020


Hi harley,

I am able to see it working. Please check if there was any typo etc.. journalctl would have the info

root at 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
MESSAGE "v" {
        VARIANT "b" {
                BOOLEAN false;
        };
};

root at 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 

root at 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
MESSAGE "v" {
        VARIANT "b" {
                BOOLEAN true;
        };
};

root at 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

root at 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
MESSAGE "v" {
        VARIANT "b" {
                BOOLEAN false;
        };
};

root at rain4bmc:~# 

Alternatively, you could use bustle set-property 

busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on xyz.openbmc_project.Led.Group Asserted b true

busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/power_on xyz.openbmc_project.Led.Group Asserted

Thanks,
!! Vishwa !!


> On 13-Jul-2020, at 2:07 PM, 周 远清 <zhouyuanqing8 at outlook.com> wrote:
> 
> Hello everyone,
> 
>          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!
> 
> 
>  ~# 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
> MESSAGE "v" {
>         VARIANT "b" {
>                 BOOLEAN false;
>         };
> };
> 
>  ~# 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
> Call failed: path or object not found
> 
> harley

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200713/36d5a1df/attachment.htm>


More information about the openbmc mailing list