Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 1 | description: > |
| 2 | Power button control service |
| 3 | methods: |
| 4 | - name: simPress |
| 5 | description: > |
| 6 | Emulate power button press. |
| 7 | errors: |
| 8 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 9 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
| 10 | |
| 11 | - name: simLongPress |
| 12 | description: > |
| 13 | Emulate power button long press. |
| 14 | errors: |
| 15 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 16 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
| 17 | |
Kuiying Wang | 3a51687 | 2018-12-26 16:14:00 +0800 | [diff] [blame] | 18 | properties: |
| 19 | - name: Enabled |
| 20 | type: boolean |
| 21 | default: true |
| 22 | description: > |
| 23 | Enable/disable power button. |
| 24 | false means power button is disabled |
| 25 | true means power button is enabled |
| 26 | errors: |
| 27 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 28 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
| 29 | |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 30 | signals: |
| 31 | - name: Released |
| 32 | description: > |
| 33 | Power button released signal |
| 34 | - name: Pressed |
| 35 | description: > |
| 36 | Power button pressed signal |
| 37 | - name: PressedLong |
| 38 | description: > |
| 39 | Power button long pressed signal |