The power-control interface

The power-control interface allows the reading and setting of system power settings.

This interface is primarily intended to be used with Ubuntu Core.

Interface documentation:
See Interface management and Supported interfaces for further details on how interfaces are used.

Developer details

Auto-connect: no

This interface enables:

  • reading of all power settings:
  • setting wake-up events for supported devices:
  • configuring power management for supported devices at runtime:

Code examples

The test code can be found in the snapd repository:

The source code for the interface is in the snapd repository: