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 | - name: simLongPress |
| 11 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 12 | Emulate power button long press. |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 13 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 14 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 15 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 16 | |
Kuiying Wang | 3a51687 | 2018-12-26 16:14:00 +0800 | [diff] [blame] | 17 | properties: |
| 18 | - name: Enabled |
| 19 | type: boolean |
| 20 | default: true |
| 21 | description: > |
Patrick Williams | a134741 | 2022-12-06 10:56:22 -0600 | [diff] [blame] | 22 | Enable/disable power button. false means power button is disabled true |
| 23 | means power button is enabled |
Kuiying Wang | 3a51687 | 2018-12-26 16:14:00 +0800 | [diff] [blame] | 24 | errors: |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 25 | - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand |
| 26 | - xyz.openbmc_project.Chassis.Common.Error.IOError |
Kuiying Wang | 3a51687 | 2018-12-26 16:14:00 +0800 | [diff] [blame] | 27 | |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 28 | signals: |
| 29 | - name: Released |
| 30 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 31 | Power button released signal |
Delphine CC Chiu | 2080127 | 2023-02-23 11:04:57 +0800 | [diff] [blame] | 32 | properties: |
| 33 | - name: time |
| 34 | type: uint64 |
| 35 | description: > |
| 36 | Power button pressing duration in microseconds |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 37 | - name: Pressed |
| 38 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 39 | Power button pressed signal |
Kuiying Wang | 4132f4b | 2018-06-26 11:52:34 +0800 | [diff] [blame] | 40 | - name: PressedLong |
| 41 | description: > |
Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 42 | Power button long pressed signal |