wlr-output-power-management-unstable-v1

Control power management modes of outputs

(index)

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.

zwlr_output_power_manager_v1

manager to create per-output power management

Interface
Version 1

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

zwlr_output_power_manager_v1.get_output_power

get a power management for an output

Request
Since Version 1

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

ArgumentTypeDescription
idnew_id<zwlr_output_power_v1>

outputobject<wl_output>

zwlr_output_power_manager_v1.destroy

destroy the manager

Destructor Request
Since Version 1

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

zwlr_output_power_v1

adjust power management mode for an output

Interface
Version 1

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

zwlr_output_power_v1.set_mode

Set an outputs power save mode

Request
Since Version 1

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.

ArgumentTypeDescription
modeuint<mode>

the power save mode to set

zwlr_output_power_v1.destroy

destroy this power management

Destructor Request
Since Version 1

Destroys the output power management mode control object.

zwlr_output_power_v1.mode

Report a power management mode change

Event
Since Version 1

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.

ArgumentTypeDescription
modeuint<mode>

the output's new power management mode

zwlr_output_power_v1.failed

object no longer valid

Event
Since Version 1

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.mode

Enum
Since Version 1
EntryValueSinceDescription
off01

Output is turned off.

on11

Output is turned on, no power saving

zwlr_output_power_v1.error

Enum
Since Version 1
EntryValueSinceDescription
invalid_mode11

nonexistent power save mode

Copyright