blob: ad41aa4687483188ae70d1bed415d63eedd41f66 [file] [log] [blame]
Kuiying Wang4132f4b2018-06-26 11:52:34 +08001description: >
2 Power button control service
3methods:
4 - name: simPress
5 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -05006 Emulate power button press.
Kuiying Wang4132f4b2018-06-26 11:52:34 +08007 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -05008 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
9 - xyz.openbmc_project.Chassis.Common.Error.IOError
Kuiying Wang4132f4b2018-06-26 11:52:34 +080010
11 - name: simLongPress
12 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050013 Emulate power button long press.
Kuiying Wang4132f4b2018-06-26 11:52:34 +080014 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050015 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
16 - xyz.openbmc_project.Chassis.Common.Error.IOError
Kuiying Wang4132f4b2018-06-26 11:52:34 +080017
Kuiying Wang3a516872018-12-26 16:14:00 +080018properties:
19 - name: Enabled
20 type: boolean
21 default: true
22 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060023 Enable/disable power button. false means power button is disabled true
24 means power button is enabled
Kuiying Wang3a516872018-12-26 16:14:00 +080025 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050026 - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
27 - xyz.openbmc_project.Chassis.Common.Error.IOError
Kuiying Wang3a516872018-12-26 16:14:00 +080028
Kuiying Wang4132f4b2018-06-26 11:52:34 +080029signals:
30 - name: Released
31 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050032 Power button released signal
Kuiying Wang4132f4b2018-06-26 11:52:34 +080033 - name: Pressed
34 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050035 Power button pressed signal
Kuiying Wang4132f4b2018-06-26 11:52:34 +080036 - name: PressedLong
37 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050038 Power button long pressed signal