Products › lamco-dsi-tools › Interfaces › wl_output and xdg-output

wl_output and xdg-output: How Wayland describes each display

wl_output and xdg-output (zxdg_output_manager_v1) tell every Wayland client each display's mode, scale and logical size. How they work, and how to read them.

Wayland protocols wl_output, zxdg_output_manager_v1

wl_output and xdg-output (zxdg_output_manager_v1) are the two Wayland interfaces that tell every client what displays there are: Each output's mode, position, scale and logical size. Toolkits, screen sharing apps, remote desktop servers and status bars all size themselves from them. lamco-dsi-tools (DSI: Desktop session interfaces) records every event of both, sets them beside what the desktop's own display configuration interface says of the same output, and reports where the two disagree.

What it is

wl_output is part of the core Wayland protocol. The compositor advertises one wl_output global for each output, and a client that binds it is sent a burst of events that ends with done:

  • geometry: The position in the compositor's space, the physical size in millimeters, the subpixel layout, the make, the model and the transform.
  • mode: A width, a height and a refresh rate in millihertz, with flags for the current and the preferred mode.
  • scale (version 2): The scale factor as a whole number.
  • name and description (version 4): A stable name such as a connector name, and a description for people.

A whole-number scale is the interface's main limit. A display set to 1.5 can't be described by wl_output.scale, so a client that sizes itself from it alone gets a fractional output wrong. That's what xdg-output (xdg-output-unstable-v1) adds: zxdg_output_manager_v1.get_xdg_output takes a wl_output and returns a zxdg_output_v1, which sends logical_position and logical_size, the area the output covers in the compositor's logical coordinates after scale and transform. Its own name, description and done events are deprecated in favor of the wl_output ones. The fractional scale protocol is what carries the factor itself to a surface.

Both are read only. Nothing in them changes a display. A program that wants to change a mode or a scale needs the interface its desktop has for that: wlr-output-management on wlroots compositors, Mutter's DisplayConfig on GNOME, and kde_output_management_v2 on KWin. Those interfaces also describe the outputs, and in more detail.

Which desktops offered it

DesktopState
GNOME Shell 48.7 (Debian 13)working
GNOME Shell 51.0 (Fedora 45)working
KDE Plasma, KWin 6.5.6 (NixOS)working
KDE Plasma, KWin 6.8.2 (KDE neon)working
Sway 1.9working
Hyprland 0.56.2working
COSMIC, cosmic-comp 1.0.0working
labwc 0.20.3 (Budgie session, CachyOS)working
Cinnamon Wayland session (Linux Mint)working

Each cell is one version of that desktop on one virtual machine, captured on 2026-11-27 or 2026-11-28 with dsisee observe and no permission dialog answered. working here means the outputs were read through this route on every desktop in the set. The README's run record also lists output observe on Sway 1.9, on GNOME Shell 48.7 through Mutter's interface, and on KDE Plasma 6.8.2, where that run read wl_output only.

How to check it with lamco-dsi-tools

dsisee output observe                              # every output, through each interface that describes it
dsisee output observe --output DP-1                # describe one output; every output is still recorded
dsisee output observe --duration 30 --out out.json # keep recording wl_output events while something changes
dsitell health out.json                            # the outputs part of the health summary

dsisee output observe changes nothing. It records every wl_output event of every output and the xdg_output events where the compositor offers them, then the same outputs through each other interface the desktop has, and prints them side by side. With --duration it goes on recording, so a change made meanwhile, by a settings app or by dsido output set, is in the capture. The capture holds each event with its time, the refresh rate in millihertz and the logical size as sent. dsitell health lists the outputs function with its routes; this one is "wl_output and xdg-output".

The wl_output dissector is in a build with the outputs feature, which the release tarballs' portable and full sets include. Outputs are selected by the name wl_output gives, so an output advertised below version 4, which sends no name, can't be picked by name.

Findings

  • OUT-001: An output interface was read and described no output in use.
  • OUT-006: An output's scale is a fraction, and wl_output gives a whole number.

Related