输出 DPMS 管理器

DPMS 管理器允许为给定的 wl_output 获取 org_kde_kwin_dpms。 org_kde_kwin_dpms 提供当前使用的 VESA Display Power Management Signaling(显示电源管理信号)状态(参见 https://en.wikipedia.org/wiki/VESA_Display_Power_Management_Signaling)。 此外,它还允许请求状态变更。compositor 没有义务遵从请求,通常会自动切换回开启状态。

警告!此文件中描述的协议是桌面环境的实现细节。普通客户端不应使用此协议。 可能会添加不兼容的更改,而无需递增扩展的主版本号。

get(id: new_id<org_kde_kwin_dpms>, output: object<wl_output>)
参数
类型
描述
idnew_id<org_kde_kwin_dpms>
outputobject<wl_output>
为 wl_output 获取 org_kde_kwin_dpms

工厂请求,为给定的 wl_output 获取 org_kde_kwin_dpms。


wl_output 的 DPMS

此接口提供关于 wl_output 的 VESA DPMS 状态信息。 它通过 org_kde_kwin_dpms_manager 接口的 get 请求创建。

创建资源时,服务器将推送该输出是否支持 DPMS、当前使用的 DPMS 状态,并在所有状态推送完毕后通过 done 事件通知客户端。每当状态发生变化时,变更集会通过 done 事件提交。

set(mode: uint)
参数
类型
描述
modeuint
Requested mode
请求更改 wl_output 的 DPMS 状态

请求 compositor 将 wl_output 切换到指定模式。compositor 没有义务更改状态。此外,compositor 可以在认为合适时随时离开该模式。例如,compositor 可能会在用户输入时返回开启状态。

客户端不应假设请求新模式后模式已更改。相反,客户端应监听 mode 事件。

release
类型: destructor
release()
释放 DPMS 对象
supported(supported: uint)
参数
类型
描述
supporteduint
Boolean value whether DPMS is supported (1) for the wl_output or not (0)
指示 wl_output 是否支持 DPMS 的事件

此事件在绑定资源时推送,指示该 wl_output 是否支持 DPMS。在某些 Wayland 服务器运行模式下 DPMS 可能没有意义(例如嵌套 compositor)。

mode(mode: uint)
参数
类型
描述
modeuint
The new currently used mode
指示当前使用 DPMS 模式的事件

此模式在绑定资源时推送,提供当前使用的 DPMS 模式。如果 wl_output 不支持 DPMS,也会推送此事件,此时值为 On。

当状态发生变化时也会推送此事件。

done()
所有变更已推送

此事件在绑定资源时,当所有其他状态推送完毕后推送。

此外,每当状态发生变化时也会推送此事件,以告知客户端所有状态变更已推送完毕。


合成器支持

Cage
Cage
0.2.0
COSMIC
COSMIC
1.0.0~beta.8
GameScope
GameScope
3.15.14
Hyprland
Hyprland
0.52.1
Jay
1.12.0
KWin
KWin
6.6
Labwc
Labwc
0.9.2
Louvre
Louvre
2.14.1
Mir
Mir
2.26
Muffin
Muffin
6.6.0
Mutter
Mutter
49.2
niri
niri
25.11
phoc
phoc
0.52
river
river
0.3.13
Sway
Sway
1.11
Treeland
Treeland
0.8.0
Wayfire
Wayfire
0.9.0
Weston
Weston
14.0.2
org_kde_kwin_dpms_manager
x
x
x
x
x
1
x
x
x
x
x
x
x
x
x
x
x
x

SPDX-FileCopyrightText: 2015 Martin Gräßlin

SPDX-License-Identifier: LGPL-2.1-or-later

Footer

© 2026 Wayland Explorer

本网站与 Wayland 官方项目无任何关联。网站所有内容均根据 Wayland 协议 XML 文件自动生成。

本网站使用的 Visual Studio Code - Codicons 遵循 CC BY 4.0 许可。