# Basic Usage

## Taking action on system suspend or resume

A component may want to take some action when the CPU suspends or resumes. The
component can use an [`SuspendBlocker`](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.power.system/system.fidl;l=177;drc=93234a67c1f82cada0d5509dac7b76b32cef598c) to observe these
transitions. The component registers by calling
[`fuchsia.power.system/ActivityGovernor.RegisterSuspendBlocker`](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.power.system/system.fidl;l=357;drc=93234a67c1f82cada0d5509dac7b76b32cef598c).
The system will not suspend until after all blockers reply to
[`SuspendBlocker.BeforeSuspend`](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.power.system/system.fidl;l=199;drc=93234a67c1f82cada0d5509dac7b76b32cef598c). On system resume, System
Activity Governor will not raise the level of its `ApplicationActivity` element
until all blockers reply to [`SuspendBlocker.AfterResume`](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.power.system/system.fidl;l=211;drc=93234a67c1f82cada0d5509dac7b76b32cef598c).
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/concepts/power/intro/basic_suspend_resume.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/concepts/power/intro/basic_suspend_resume.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/concepts/power/intro/basic_suspend_resume.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/concepts/power/intro/basic_suspend_resume.md "Edit the source code of this page")