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: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 6 | Emulate power button press. |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 7 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 8 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 9 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 10 | |
| 11 | - name: simLongPress |
| 12 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 13 | Emulate power button long press. |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 14 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 15 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 16 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 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: > |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 23 | Enable/disable power button. false means power button is disabled true |
| 24 | means power button is enabled |
Kuiying Wang | 3a51687 | 2018-12-26 16:14:00 +0800 | [diff] [blame] | 25 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 26 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 27 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
Kuiying Wang | 3a51687 | 2018-12-26 16:14:00 +0800 | [diff] [blame] | 28 | |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 29 | signals: |
| 30 | - name: Released |
| 31 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 32 | Power button released signal |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 33 | - name: Pressed |
| 34 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 35 | Power button pressed signal |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 36 | - name: PressedLong |
| 37 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 38 | Power button long pressed signal |