wlr-output-power-management-unstable-v1.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="wlr_output_power_management_unstable_v1">
  3. <copyright>
  4. Copyright © 2019 Purism SPC
  5. Permission is hereby granted, free of charge, to any person obtaining a
  6. copy of this software and associated documentation files (the "Software"),
  7. to deal in the Software without restriction, including without limitation
  8. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. and/or sell copies of the Software, and to permit persons to whom the
  10. Software is furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice (including the next
  12. paragraph) shall be included in all copies or substantial portions of the
  13. Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. DEALINGS IN THE SOFTWARE.
  21. </copyright>
  22. <description summary="Control power management modes of outputs">
  23. This protocol allows clients to control power management modes
  24. of outputs that are currently part of the compositor space. The
  25. intent is to allow special clients like desktop shells to power
  26. down outputs when the system is idle.
  27. To modify outputs not currently part of the compositor space see
  28. wlr-output-management.
  29. Warning! The protocol described in this file is experimental and
  30. backward incompatible changes may be made. Backward compatible changes
  31. may be added together with the corresponding interface version bump.
  32. Backward incompatible changes are done by bumping the version number in
  33. the protocol and interface names and resetting the interface version.
  34. Once the protocol is to be declared stable, the 'z' prefix and the
  35. version number in the protocol and interface names are removed and the
  36. interface version number is reset.
  37. </description>
  38. <interface name="zwlr_output_power_manager_v1" version="1">
  39. <description summary="manager to create per-output power management">
  40. This interface is a manager that allows creating per-output power
  41. management mode controls.
  42. </description>
  43. <request name="get_output_power">
  44. <description summary="get a power management for an output">
  45. Create a output power management mode control that can be used to
  46. adjust the power management mode for a given output.
  47. </description>
  48. <arg name="id" type="new_id" interface="zwlr_output_power_v1"/>
  49. <arg name="output" type="object" interface="wl_output"/>
  50. </request>
  51. <request name="destroy" type="destructor">
  52. <description summary="destroy the manager">
  53. All objects created by the manager will still remain valid, until their
  54. appropriate destroy request has been called.
  55. </description>
  56. </request>
  57. </interface>
  58. <interface name="zwlr_output_power_v1" version="1">
  59. <description summary="adjust power management mode for an output">
  60. This object offers requests to set the power management mode of
  61. an output.
  62. </description>
  63. <enum name="mode">
  64. <entry name="off" value="0"
  65. summary="Output is turned off."/>
  66. <entry name="on" value="1"
  67. summary="Output is turned on, no power saving"/>
  68. </enum>
  69. <enum name="error">
  70. <entry name="invalid_mode" value="1" summary="inexistent power save mode"/>
  71. </enum>
  72. <request name="set_mode">
  73. <description summary="Set an outputs power save mode">
  74. Set an output's power save mode to the given mode. The mode change
  75. is effective immediately. If the output does not support the given
  76. mode a failed event is sent.
  77. </description>
  78. <arg name="mode" type="uint" enum="mode" summary="the power save mode to set"/>
  79. </request>
  80. <event name="mode">
  81. <description summary="Report a power management mode change">
  82. Report the power management mode change of an output.
  83. The mode event is sent after an output changed its power
  84. management mode. The reason can be a client using set_mode or the
  85. compositor deciding to change an output's mode.
  86. This event is also sent immediately when the object is created
  87. so the client is informed about the current power management mode.
  88. </description>
  89. <arg name="mode" type="uint" enum="mode"
  90. summary="the output's new power management mode"/>
  91. </event>
  92. <event name="failed">
  93. <description summary="object no longer valid">
  94. This event indicates that the output power management mode control
  95. is no longer valid. This can happen for a number of reasons,
  96. including:
  97. - The output doesn't support power management
  98. - Another client already has exclusive power management mode control
  99. for this output
  100. - The output disappeared
  101. Upon receiving this event, the client should destroy this object.
  102. </description>
  103. </event>
  104. <request name="destroy" type="destructor">
  105. <description summary="destroy this power management">
  106. Destroys the output power management mode control object.
  107. </description>
  108. </request>
  109. </interface>
  110. </protocol>