Skip to contentSkip to conversation

Changing Power Button behavior

DISCUSSION Adi Gangidi 2 participants 2 messages Jun 16, 2017

lore
Share & tools
lore
#0 lore raw

Hi Nice folks on the mailing list,

In our testing on Barreleye G2 server we noticed that:

BMC short press: Doesn't effect power state

BMC long press: Reboots the host (instead of poweroff)

Is that what its coded to ? Where can I find the code that dictates this behavior ? Any tips on how to go about changing this would be helpful.

?

-Adi

#1 lore raw

Hey Adi, issues 771 and 776 track the refactoring work for the buttons. If you want to take a stab at it the old code is out in skeleton, skeleton/pwrbutton/button_power_obj.c is for the button monitoring and signal generation, skeleton/pychassisctl/chassis_control.py for the handling of the signal.

You'll want to make sure the POWER_BUTTON gpio is configured right for your system. https://github.com/openbmc/openbmc/issues/1593 would also be something to look out for. A quick glance shows chassis_control.py using the right targets for power on so nothing obvious to me on why it wouldn't work.

Andrew

Quoted 17 lines · Adi Gangidi

Hi Nice folks on the mailing list,

In our testing on Barreleye G2 server we noticed that:

BMC short press: Doesn't effect power state

BMC long press: Reboots the host (instead of poweroff)

Is that what its coded to ? Where can I find the code that dictates this behavior ? Any tips on how to go about changing this would be helpful.

-Adi