<br />

Added: 7

## **PROTOCOLS**

## Admin

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=39)*

Provides methods to request that the system be transitioned into a supported power state.

Note (see https://fxbug.dev/42136295):
These methods do not return until after the state transition has been completed. In most cases
(e.g. Reboot), a successful transition means that the caller does not actually observe the
completion because the system will be rebooted before the call is completed. The implication is
that using a synchronous FIDL client with these methods will result in a blocked thread for the
duration of the call, or even for the remainder of the component's life (in the case of Reboot).
Therefore, if a synchronous FIDL client is to be used with this protocol then care should be
taken to avoid handling any shutdown-induced callbacks on the same thread that was used to
initiate the transition. Example callbacks include [fuchsia.process.lifecycle](https://fuchsia.dev/reference/fuchsia.process.lifecycle/)/[Lifecycle.Stop](https://fuchsia.dev/reference/fuchsia.process.lifecycle/#Lifecycle.Stop)
and [fuchsia.hardware.power.statecontrol](https://fuchsia.dev/reference/fuchsia.hardware.power.statecontrol/)/[RebootMethodsWatcher.OnReboot](https://fuchsia.dev/reference/fuchsia.hardware.power.statecontrol/#RebootMethodsWatcher.OnReboot).
Alternatively, the caller could choose to use an asynchronous FIDL client with this protocol to
avoid blocking their calling thread.

<br />

### Mexec

Performs a kernel mexec.

It is expected that the ZBI items specified by
`zx_system_mexec_payload_get()` have not yet been appended to the
provided data ZBI.
Removed: 33

#### Request

| Name | Type |
|---|---|
| `kernel_zbi` | `handle<vmo>` |
| `data_zbi` | `handle<vmo>` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_Mexec_Result` |

### PerformReboot

Asks the device to reboot.

Arguments:

- options: The options with which to perform this requests. `ZX_ERR_INVALID_ARGS` is returned if the options are malformed (i.e. `reasons` is absent or empty).

# Deprecation

Use Shutdown, which allows callers to specify the intended action and reasons for the
action.
Removed: 31 Deprecated: 29 Added: 26

#### Request

| Name | Type |
|---|---|
| `options` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#RebootOptions` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_PerformReboot_Result` |

### PowerFullyOn

Asks the device to enter a fully on state.
Removed: 31 Deprecated: 29

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_PowerFullyOn_Result` |

### Poweroff

Asks all devices to enter a powered off state.

# Deprecation

Use Shutdown, which allows callers to specify reasons why they are requesting a poweroff.
Removed: 31 Deprecated: 29

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_Poweroff_Result` |

### RebootToBootloader

Asks the device to reboot into the bootloader.

# Deprecation

Use Shutdown, which allows callers to specify reasons why they are requesting a reboot to
bootloader.
Removed: 31 Deprecated: 29

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_RebootToBootloader_Result` |

### RebootToRecovery

Asks the device to reboot into the recovery partition.

# Deprecation

Use Shutdown, which allows callers to specify reasons why they are requesting a reboot to
recovery.
Removed: 31 Deprecated: 29

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_RebootToRecovery_Result` |

### Shutdown

Asks the device to enter the state specified by `options.action`.

Arguments:

- options: The options with which to perform this request. `ZX_ERR_INVALID_ARGS` is returned if `action` is absent. `reasons` may be omitted, but adding a new enum value instead is strongly encouraged.

Added: 29

#### Request

| Name | Type |
|---|---|
| `options` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownOptions` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_Shutdown_Result` |

### SuspendToRam

Asks the device to enter the suspend to RAM (S3) power state.

# Removal

Suspend to RAM is not supported. The server always returns ZX_ERR_NOT_SUPPORTED.
Removed: 33

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_SuspendToRam_Result` |

## RebootMethodsWatcherRegister

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=168)*

Allows components to register a callback that will be executed when a Reboot
method is called. The main purpose of this protocol is to be able to track
reboot reasons. Consider relying on Component Framework's orderly shutdown
if you're looking at using this protocol.
Removed: 31 Deprecated: 29

<br />

### RegisterWatcher

Registers a watcher to be notified when a Reboot method is called.

Once the watcher has been successfully registered with the server, then
the request will be completed and the RebootMethodsWatcherRegister
channel will be left open (though a client is free to close it at this
time).

If there is an error in registering the watcher, then the
RebootMethodsWatcherRegister channel will be closed without completing
the request.

The provided `watcher` channel will be used at most once to notify the
watcher of an impending reboot and allow it the chance to respond.

Watchers can unregister by closing their `RebootWatcher` channel.
Added: 26

#### Request

| Name | Type |
|---|---|
| `watcher` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#RebootWatcher` |

#### Response

\<EMPTY\>

## RebootWatcher

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=248)*

Allows components to be notified when Reboot related methods are called.
Watchers will be given 'MAX_REBOOT_WATCHER_RESPONSE_TIME_SECONDS' to return
before the system power state is changed. The channel will be used once to
send a notification to the watcher. Once the watcher responds or the timeout
expires, the channel will be closed by the client of RebootWatcher.
Removed: 31 Deprecated: 29 Added: 26

<br />

### OnReboot

#### Request

| Name | Type |
|---|---|
| `options` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#RebootOptions` |

#### Response

\<EMPTY\>

## ShutdownWatcher

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=260)*

Allows components to be notified when the Shutdown method is called.
Watchers will be given 'MAX_SHUTDOWN_WATCHER_RESPONSE_TIME_SECONDS' to return
before the system power state is changed. The channel will be used once to
send a notification to the watcher. Once the watcher responds or the timeout
expires, the channel will be closed by the client of ShutdownWatcher.
Added: 29

<br />

### OnShutdown

#### Request

| Name | Type |
|---|---|
| `options` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownOptions` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcher_OnShutdown_Result` |

## ShutdownWatcherRegister

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=197)*

Allows components to register a callback that will be executed when reboots or shutdowns occur.
The main purpose of this protocol is to be able to track shutdown reasons and provide signals
to critical platform components that cannot rely on Component Framework's orderly shutdown.
Before relying on this protocol, consider using Component Framework's orderly shutdown
pattern or component lifecycle hooks.
Added: 29

<br />

### RegisterTerminalStateWatcher

Registers a watcher to be notified when the system begins a transition to a terminal state
regardless of the trigger.

The [TerminalStateWatcher](https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#TerminalStateWatcher) is notified for all reboots, power-offs, and kernel-initiated
shutdowns. It does not provide reasons or options.

Once the watcher has been successfully registered with the server, then
the request will be completed and the ShutdownWatcherRegister
channel will be left open (though a client is free to close it at this
time).

If there is an error in registering the watcher, then the
ShutdownWatcherRegister channel will be closed without completing
the request.

The provided `watcher` channel will be used at most once to notify the
watcher of an impending shutdown and allow it the chance to respond.

Watchers can unregister by closing their `TerminalStateWatcher` channel.
Added: HEAD

#### Request

| Name | Type |
|---|---|
| `watcher` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#TerminalStateWatcher` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcherRegister_RegisterTerminalStateWatcher_Result` |

### RegisterWatcher

Registers a watcher to be notified when the `Admin.Shutdown` method is called.

Once the watcher has been successfully registered with the server, then
the request will be completed and the ShutdownWatcherRegister
channel will be left open (though a client is free to close it at this
time).

If there is an error in registering the watcher, then the
ShutdownWatcherRegister channel will be closed without completing
the request.

The provided `watcher` channel will be used at most once to notify the
watcher of an impending shutdown and allow it the chance to respond.

Watchers can unregister by closing their `ShutdownWatcher` channel.

#### Request

| Name | Type |
|---|---|
| `watcher` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcher` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcherRegister_RegisterWatcher_Result` |

## TerminalStateWatcher

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=272)*

Allows components to be notified when a transition to a terminal state begins.
Watchers will be given 'MAX_TERMINAL_STATE_WATCHER_RESPONSE_TIME_SECONDS' to return
before the system power state is changed. The channel will be used once to
send a notification to the watcher. Once the watcher responds or the timeout
expires, the channel will be closed by the client of TerminalStateWatcher.
Added: HEAD

<br />

### OnTerminalStateTransitionStarted

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#TerminalStateWatcher_OnTerminalStateTransitionStarted_Result` |

## **STRUCTS**

### Admin_Mexec_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=109)*

\<EMPTY\>

### Admin_PerformReboot_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=70)*

\<EMPTY\>

### Admin_PowerFullyOn_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=42)*

\<EMPTY\>

### Admin_Poweroff_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=96)*

\<EMPTY\>

### Admin_RebootToBootloader_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=79)*

\<EMPTY\>

### Admin_RebootToRecovery_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=88)*

\<EMPTY\>

### Admin_Shutdown_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=54)*

\<EMPTY\>

### Admin_SuspendToRam_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=119)*

\<EMPTY\>

### ShutdownWatcherRegister_RegisterTerminalStateWatcher_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=239)*

\<EMPTY\>

### ShutdownWatcherRegister_RegisterWatcher_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=215)*

\<EMPTY\>

### ShutdownWatcher_OnShutdown_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=263)*

\<EMPTY\>

### TerminalStateWatcher_OnTerminalStateTransitionStarted_Response

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=273)*

\<EMPTY\>

## **ENUMS**

### RebootReason2 [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.hardware.power.statecontrol/reboot_reason.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/reboot_reason.fidl;l=10)*

Why the system reboots.

Replaced by `ShutdownReason`.
Removed: 31 Deprecated: 29 Added: 26

<br />

| Name | Value | Description |
|---|---|---|
| ### USER_REQUEST | `1` | The device rebooted because the end user of the device initiated the reboot. DO NOT USE for any code path not directly related to an end user explicit reboot action. Use DEVELOPER_REQUEST below instead. |
| ### DEVELOPER_REQUEST | `13` | The device rebooted because a developer initiated the reboot, typically via a shell command or similar interface, including within an automated test. Added: 28 |
| ### SYSTEM_UPDATE | `2` | A new system update has been downloaded. |
| ### RETRY_SYSTEM_UPDATE | `8` | Applying the system update has failed. |
| ### HIGH_TEMPERATURE | `3` |   |
| ### FACTORY_DATA_RESET | `6` |   |
| ### SESSION_FAILURE | `4` | Sessionmgr has failed. |
| ### SYSMGR_FAILURE | `5` | sysmgr crashed. |
| ### CRITICAL_COMPONENT_FAILURE | `7` | A critical system component has failed. |
| ### ZBI_SWAP | `9` | A boot partition change was effected. |
| ### OUT_OF_MEMORY | `10` | The system hit a critical low threshold of available memory. |
| ### NETSTACK_MIGRATION | `11` | The Netstack component is changing versions. |
| ### ANDROID_UNEXPECTED_REASON | `12` | An Android-initiated reboot reason that Starnix doesn't recognize Added: 28 |
| ### ANDROID_RESCUE_PARTY | `14` | Android called for the "RescueParty". Added: 29 |
| ### ANDROID_CRITICAL_PROCESS_FAILURE | `15` | A critical Android process failed. Added: 29 |

### ShutdownAction [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=143)*
Added: 29

<br />

| Name | Value | Description |
|---|---|---|
| ### POWEROFF | `1` |   |
| ### REBOOT | `2` |   |
| ### REBOOT_TO_RECOVERY | `3` |   |
| ### REBOOT_TO_BOOTLOADER | `4` |   |

### ShutdownReason [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.hardware.power.statecontrol/shutdown_reason.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/shutdown_reason.fidl;l=9)*

Why the system is shutting down.
Added: 29

<br />

| Name | Value | Description |
|---|---|---|
| ### USER_REQUEST | `1` | The end user of the device initiated the shutdown. DO NOT USE for any code path not directly related to an end user explicit shutdown action. Use DEVELOPER_REQUEST below instead. |
| ### USER_REQUEST_DEVICE_STUCK | `16` | The end user of the device initiated the shutdown because the device was stuck. Added: 31 |
| ### DEVELOPER_REQUEST | `2` | The developer initiated the shutdown, typically via a shell command or similar interface, including within an automated test. |
| ### SYSTEM_UPDATE | `3` | A new system update has been downloaded. |
| ### RETRY_SYSTEM_UPDATE | `4` | Applying the system update has failed. |
| ### HIGH_TEMPERATURE | `5` | The device has crossed the high temperature threshold. |
| ### FACTORY_DATA_RESET | `6` | The device is about to perform an FDR. |
| ### SESSION_FAILURE | `7` | Sessionmgr has failed. |
| ### CRITICAL_COMPONENT_FAILURE | `8` | A critical system component has failed. |
| ### ZBI_SWAP | `9` | A boot partition change was effected. |
| ### OUT_OF_MEMORY | `10` | The system hit a critical low threshold of available memory. |
| ### NETSTACK_MIGRATION | `11` | The Netstack component is changing versions. Removed: 33 |
| ### ANDROID_UNEXPECTED_REASON | `12` | An Android-initiated shutdown reason that Starnix doesn't recognize. |
| ### STARNIX_CONTAINER_NO_REASON | `15` | A Starnix container initiated the shutdown but Starnix doesn't know why. Added: 30 |
| ### ANDROID_RESCUE_PARTY | `13` | Android called for the "RescueParty". |
| ### ANDROID_CRITICAL_PROCESS_FAILURE | `14` | A critical Android process failed. |
| ### BATTERY_DRAINED | `17` | The device battery is drained. Added: 31 |
| ### SUSPENSION_FAILURE | `18` | The system failed to suspend or resume within the expected time. Added: 32 |
| ### CRITICAL_DRIVER_FAILURE | `19` | A critical driver has failed. Added: HEAD |
| ### POWER_LEVEL_TRANSITION_STUCK | `20` | The system failed to transition between power levels within the expected time. Added: HEAD |

## **TABLES**

### RebootOptions

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=134)*

The options specified when a reboot is requested.
Removed: 31 Deprecated: 29 Added: 26

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `reasons` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#RebootReason2>:100` | The set of reboot reasons that are responsible for this reboot request. |

### ShutdownOptions

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=152)*

The options specified when a shutdown is requested.
Added: 29

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `action` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownAction` |   |
| ### 2 | `reasons` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownReason>:100` | The set of shutdown reasons that are responsible for this shutdown request. |

## **UNIONS**

### Admin_Mexec_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=109)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_Mexec_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_PerformReboot_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=70)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_PerformReboot_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_PowerFullyOn_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=42)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_PowerFullyOn_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_Poweroff_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=96)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_Poweroff_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_RebootToBootloader_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=79)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_RebootToBootloader_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_RebootToRecovery_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=88)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_RebootToRecovery_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_Shutdown_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=54)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_Shutdown_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### Admin_SuspendToRam_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=119)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#Admin_SuspendToRam_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |

<br />

### ShutdownWatcherRegister_RegisterTerminalStateWatcher_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=239)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcherRegister_RegisterTerminalStateWatcher_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### ShutdownWatcherRegister_RegisterWatcher_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=215)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcherRegister_RegisterWatcher_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### ShutdownWatcher_OnShutdown_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=263)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#ShutdownWatcher_OnShutdown_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### TerminalStateWatcher_OnTerminalStateTransitionStarted_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.hardware.power.statecontrol/admin.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=273)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.power.statecontrol#TerminalStateWatcher_OnTerminalStateTransitionStarted_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAX_REBOOT_REASONS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=125) | `100` | `uint8` | The maximum number of reboot reasons that can be attributed to a single reboot request. Removed: 31 Deprecated: 29 Added: 26 |
| [MAX_REBOOT_WATCHER_RESPONSE_TIME_SECONDS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=12) | `5` | `uint32` | The maxium number of seconds the server will wait for responses from all RebootMethodsWatchers before changing the system power state. Removed: 31 Deprecated: 29 |
| [MAX_SHUTDOWN_REASONS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=130) | `100` | `uint8` | The maximum number of shutdown reasons that can be attributed to a single shutdown request. Added: 29 |
| [MAX_SHUTDOWN_WATCHER_RESPONSE_TIME_SECONDS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=17) | `5` | `uint32` | The maximum number of seconds the server will wait for responses from all ShutdownWatchers before changing the system power state. Added: 29 |
| [MAX_TERMINAL_STATE_WATCHER_RESPONSE_TIME_SECONDS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.statecontrol/admin.fidl;l=22) | `5` | `uint32` | The maximum number of seconds the server will wait for responses from all TerminalStateWatchers before changing the system power state. Added: HEAD |