Products › lamco-dsi-tools › Interfaces › wlr-screencopy

wlr-screencopy: Which Wayland compositors support it, and how to check

wlr-screencopy (zwlr_screencopy_manager_v1) is the wlroots protocol for copying the screen into a client buffer: Which compositors offered it, and how to check.

Wayland protocol zwlr_screencopy_manager_v1

wlr-screencopy, the Wayland protocol zwlr_screencopy_manager_v1, lets a client ask a wlroots-style compositor to copy an output, or a region of one, into a buffer the client provides. Screenshot tools, screen recorders and screen sharing backends on wlroots compositors use it, with no portal and no permission dialog in between. lamco-dsi-tools (DSI: Desktop session interfaces) reads whether the compositor advertises it, captures frames through it, and records each frame's buffer description, flags, damage and result.

What it is

The protocol comes from the wlr-protocols repository and is unstable, which is what the z in its name says. Its own text now marks it deprecated and points to ext-image-copy-capture-v1, which Hyprland 0.56.2 and labwc 0.20.3 offered beside it in the captures below.

The client binds the manager and calls capture_output, with the output and whether to draw the cursor into the frame, or capture_output_region for a rectangle of it. Each call creates a zwlr_screencopy_frame_v1, one object per frame. The frame first describes the buffers it accepts: A buffer event for shared memory with its format, size and stride, a linux_dmabuf event for DMA-BUF from version 3, and buffer_done when the list is complete. The client then sends copy with a buffer, or copy_with_damage, which waits until the screen has changed since the last copy. The compositor answers with flags, such as a vertical flip, the damage regions, and ready with a timestamp, or with failed, which carries no reason. The client destroys the frame and asks for the next.

There's no session object and no permission dialog: Which clients may bind the manager is the compositor's decision. Against ext-image-copy-capture-v1, wlr-screencopy captures outputs only, not single windows, and describes buffers per frame rather than per session.

The toolkit's wlr-screencopy dissector copies into a shared-memory buffer only. It records the DMA-BUF format a compositor offers and doesn't capture through it. It asks for the first frame with copy and the rest with copy_with_damage, so on a screen where nothing changes only the first frame arrives, and the capture says so.

Which desktops offered it

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

The cells come from one capture of one version of each desktop on one virtual machine, taken on 2026-11-27 or 2026-11-28 with dsisee observe, which needs no dialog for this route and reads working where frames arrived. Sway 1.9 advertises wlr-screencopy and not ext-image-copy-capture-v1, Hyprland 0.56.2 and labwc 0.20.3 advertise both, and cosmic-comp 1.0.0 advertises only the newer one. GNOME and KDE capture through the ScreenCast portal instead.

The README's run record lists capture probe and capture observe over wlr-screencopy on Sway 1.9 (Ubuntu) with a portable build, and the input to pixels measurement on Sway 1.9 through wlr-screencopy.

The project's record of runs, reconciled on 2026-12-04, adds:

  • Long runs (--soak), ten minutes each, on Sway 1.9 on 2026-11-28: One run idle and one with four processors loaded, 36,408 intervals idle and 36,401 loaded, and 1 presented frame missed idle and 0 loaded. A capture that was killed outright was read back and flagged as not closed.
  • A long run paired with an animation that ended with it, on Sway 1.9 on 2026-11-28: No false stalls at the end, and no frames missed.

How to check it with lamco-dsi-tools

dsisee wayland protocols                                         # every global, zwlr_screencopy_manager_v1 among them
dsisee capture probe --route wlr-screencopy --duration 10 --out probe.json   # capture frames and summarize them
dsisee capture observe --route wlr-screencopy --out frames.json  # each frame's buffer, flags, damage and result
dsitell health frames.json                                       # the capture function and its routes
dsitell timing frames.json                                       # every duration the capture supports

capture probe says which route it took and why, then summarizes the frames: Request-to-ready time and the interval between ready events as distributions, gaps in that interval, and damage. Its estimated rate is the rate its own request loop reached, not the output's refresh. capture observe records every request the instrument made and every event, with the compositor's clock and the instrument's kept apart. -o selects an output by the name wl_output gives, which an output advertised below version 4 of wl_output doesn't send. In dsitell health the route is read from the registry and becomes working only when frames arrived.

Driving it with dsido

dsido screen animate --duration 10 --out animate.json &                # a window with a marker in each frame
dsisee capture probe --read-markers --duration 8 --out capture.json    # capture it, and read each marker
dsitell glass animate.json capture.json                                # frames presented and not captured

The marker is a small block of cells in the window's corner that encodes the frame's number. The capture keeps only the number it read, where it found it, and a confidence, never a pixel.

Findings

  • CAP-001: No screen capture route was found.
  • CAP-003: A capture through wlr-screencopy produced no frame.
  • CAP-007: Marked frames are missing from what a capture route delivered.
  • CAP-008: A screen marker was found in a captured buffer and couldn't be decoded.

Related