Go to index / Go to protocols

wlr_output_power_management_unstable_v1 ↗

Control power management modes of outputs

This protocol allows clients to control power management modes of outputs that are currently part of the compositor space. The intent is to allow special clients like desktop shells to power down outputs when the system is idle.

To modify outputs not currently part of the compositor space see wlr-output-management.

Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes are done by bumping the version number in the protocol and interface names and resetting the interface version. Once the protocol is to be declared stable, the 'z' prefix and the version number in the protocol and interface names are removed and the interface version number is reset.

wlr_output_power_management_unstable_v1
zwlr_output_power_manager_v1

Version 1
Compositor Support
Version 1
cosmic 1.0.0
hyprland 0.52.1
labwc 0.20.2
phoc 0.55
river 0.3.13
sway 1.11
treeland 0.8.0
wayfire 0.9.0

manager to create per-output power management

This interface is a manager that allows creating per-output power management mode controls.

zwlr_output_power_manager_v1
request get_output_power(
    id: new_id<zwlr_output_power_v1>,
    output: object<wl_output>,
)

    get a power management for an output

    Create an output power management mode control that can be used to adjust the power management mode for a given output.

    zwlr_output_power_manager_v1
    request destroy()
    Destructor

      destroy the manager

      All objects created by the manager will still remain valid, until their appropriate destroy request has been called.

      wlr_output_power_management_unstable_v1
      zwlr_output_power_v1

      Version 1

      adjust power management mode for an output

      This object offers requests to set the power management mode of an output.

      zwlr_output_power_v1
      enum mode {
          off = 0,
          on = 1,
      }
      • off — Output is turned off.
      • on — Output is turned on, no power saving
      zwlr_output_power_v1
      enum error {
          invalid_mode = 1,
      }
      • invalid_mode — nonexistent power save mode
      zwlr_output_power_v1
      request set_mode(
          mode: uint<mode>,
      )
      • mode — the power save mode to set

      Set an outputs power save mode

      Set an output's power save mode to the given mode. The mode change is effective immediately. If the output does not support the given mode a failed event is sent.

      zwlr_output_power_v1
      event mode(
          mode: uint<mode>,
      )
      • mode — the output's new power management mode

      Report a power management mode change

      Report the power management mode change of an output.

      The mode event is sent after an output changed its power management mode. The reason can be a client using set_mode or the compositor deciding to change an output's mode. This event is also sent immediately when the object is created so the client is informed about the current power management mode.

      zwlr_output_power_v1
      event failed()

        object no longer valid

        This event indicates that the output power management mode control is no longer valid. This can happen for a number of reasons, including:

        • The output doesn't support power management

        • Another client already has exclusive power management mode control for this output

        • The output disappeared

        Upon receiving this event, the client should destroy this object.

        zwlr_output_power_v1
        request destroy()
        Destructor

          destroy this power management

          Destroys the output power management mode control object.