AtlatestRepositorysigil-wm
1
<?xml version="1.0" encoding="UTF-8"?>2
<protocol name="wlr_output_power_management_unstable_v1">3
<copyright>4
Copyright © 2019 Purism SPC6
Permission is hereby granted, free of charge, to any person obtaining a7
copy of this software and associated documentation files (the "Software"),8
to deal in the Software without restriction, including without limitation9
the rights to use, copy, modify, merge, publish, distribute, sublicense,10
and/or sell copies of the Software, and to permit persons to whom the11
Software is furnished to do so, subject to the following conditions:13
The above copyright notice and this permission notice (including the next14
paragraph) shall be included in all copies or substantial portions of the15
Software.17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL20
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING22
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER23
DEALINGS IN THE SOFTWARE.24
</copyright>26
<description summary="Control power management modes of outputs">27
This protocol allows clients to control power management modes28
of outputs that are currently part of the compositor space. The29
intent is to allow special clients like desktop shells to power30
down outputs when the system is idle.32
To modify outputs not currently part of the compositor space see33
wlr-output-management.35
Warning! The protocol described in this file is experimental and36
backward incompatible changes may be made. Backward compatible changes37
may be added together with the corresponding interface version bump.38
Backward incompatible changes are done by bumping the version number in39
the protocol and interface names and resetting the interface version.40
Once the protocol is to be declared stable, the 'z' prefix and the41
version number in the protocol and interface names are removed and the42
interface version number is reset.43
</description>45
<interface name="zwlr_output_power_manager_v1" version="1">46
<description summary="manager to create per-output power management">47
This interface is a manager that allows creating per-output power48
management mode controls.49
</description>51
<request name="get_output_power">52
<description summary="get a power management for an output">53
Create a output power management mode control that can be used to54
adjust the power management mode for a given output.55
</description>56
<arg name="id" type="new_id" interface="zwlr_output_power_v1"/>57
<arg name="output" type="object" interface="wl_output"/>58
</request>60
<request name="destroy" type="destructor">61
<description summary="destroy the manager">62
All objects created by the manager will still remain valid, until their63
appropriate destroy request has been called.64
</description>65
</request>66
</interface>68
<interface name="zwlr_output_power_v1" version="1">69
<description summary="adjust power management mode for an output">70
This object offers requests to set the power management mode of71
an output.72
</description>74
<enum name="mode">75
<entry name="off" value="0"76
summary="Output is turned off."/>77
<entry name="on" value="1"78
summary="Output is turned on, no power saving"/>79
</enum>81
<enum name="error">82
<entry name="invalid_mode" value="1" summary="inexistent power save mode"/>83
</enum>85
<request name="set_mode">86
<description summary="Set an outputs power save mode">87
Set an output's power save mode to the given mode. The mode change88
is effective immediately. If the output does not support the given89
mode a failed event is sent.90
</description>91
<arg name="mode" type="uint" enum="mode" summary="the power save mode to set"/>92
</request>94
<event name="mode">95
<description summary="Report a power management mode change">96
Report the power management mode change of an output.98
The mode event is sent after an output changed its power99
management mode. The reason can be a client using set_mode or the100
compositor deciding to change an output's mode.101
This event is also sent immediately when the object is created102
so the client is informed about the current power management mode.103
</description>104
<arg name="mode" type="uint" enum="mode"105
summary="the output's new power management mode"/>106
</event>108
<event name="failed">109
<description summary="object no longer valid">110
This event indicates that the output power management mode control111
is no longer valid. This can happen for a number of reasons,112
including:113
- The output doesn't support power management114
- Another client already has exclusive power management mode control115
for this output116
- The output disappeared118
Upon receiving this event, the client should destroy this object.119
</description>120
</event>122
<request name="destroy" type="destructor">123
<description summary="destroy this power management">124
Destroys the output power management mode control object.125
</description>126
</request>127
</interface>128
</protocol>