phosphor-buttons multihost control

Thang Nguyen OS thang at
Tue Sep 27 09:03:42 AEST 2022

Hi Zehra,
I think the issue of isMultiHost() has been resolved with

Thang Q. Nguyen

From: openbmc < at> on behalf of Patrick Williams <patrick at>
Sent: Monday, September 26, 2022 11:27 PM
To: Naveen Moses <naveen.moses at>
Cc: zehra.ozdemir at <zehra.ozdemir at>; openbmc at <openbmc at>; M. Erhan Yigitbasi <erhan.yigitbasi at>; naveen.mosess at <naveen.mosess at>
Subject: Re: phosphor-buttons multihost control

Hi Zehra,

On Mon, Sep 26, 2022 at 07:38:39PM +0530, Naveen Moses wrote:
> The host Selector object is not strictly required. The host selector object
> check was only added to identify if the system is single host or multi host
> system based on host selector availability.
> Thanks.
> On Mon, Sep 26, 2022 at 12:58 PM <zehra.ozdemir at> wrote:
> > Hello,
> >
> >
> >
> > There is an isMultiHost() method to control to return true in case the
> > host selector object is available in button-handler.cpp of the
> > phosphor-buttons. And if it is not available, it does not return false and
> > the project gets an error. So we covered this return line with try catch
> > and it works.

Based on what Naveen wrote, it would be helpful if you could submit a
change to improve the implementation to not have this issue. I'm
surprised no one else has ran into the issues you are seeing.

> >
> > But my question is, does this host selector object has to be strictly
> > defined for the project to run properly?
> >
> >
> >
> > Thanks.
> >

Patrick Williams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openbmc mailing list