Linux desktop session measurement and diagnosis

lamco-dsi-tools

See what a Linux desktop really does when a program captures its screen, sends it input or reads its clipboard.

NEW · v0.4.2 Linux, Wayland, x86_64 and ARM64

Three command-line tools record it, time it and explain it. dsisee watches. dsido drives. dsitell analyzes.

Open source, MIT OR Apache-2.0. Linux, Wayland. From Lamco Development LLC.

lamco-dsi-tools 0.4.2 | dsisee, dsido, dsitell | Linux, Wayland, x86_64 and aarch64 | Rust | MIT OR Apache-2.0
WHAT IT IS

Wayland screen capture and input diagnostics, in one file

lamco-dsi-tools (DSI: Desktop session interfaces) is an open source command-line toolkit that records what a Linux desktop on Wayland offers and does when a program captures its screen, sends it input or reads its clipboard, times each step, and explains the result.

Every program that shares a screen, controls a desktop remotely, automates a user interface or moves a clipboard between machines depends on a set of interfaces the desktop provides: Capture protocols, the desktop portal, PipeWire, libei, virtual input devices, the clipboard protocols, the display configuration interfaces, the login session. On Wayland these differ from one desktop to the next, and from one version to the next. When something fails, the usual evidence is a log line and a guess.

lamco-dsi-tools replaces the guess with a record. It asks the desktop what it offers by every route it has, exercises the routes, and writes down what each one said and when. Then it tells you what that means.

  • →One command produces one file that holds everything the desktop said.
  • →A health summary reads that file and reports each function (capture, input, clipboard, outputs, session, audio) with the records it rests on, and findings with stable identifiers.
  • →The same file answers timing questions, compares one desktop with another, and can be redacted and attached to a bug report.

The launch post tells the story: Introducing lamco-dsi-tools, Wayland remote desktop and screen capture diagnostics for Linux.

INTERFACES COVERED

Every interface a program uses to see and control a Wayland desktop

Each interface is read in its own terms, with the time the instrument saw each record and any time the protocol itself gave. dsisee only reads and records. dsido acts, and records what it did. dsitell reads the captures of both.
Interface Kind dsisee records dsido does
Screen capture
ext-image-copy-capture-v1Wayland protocolEvery capture session and frame event, with the compositor's and the instrument's timesCaptures it as the second half of the closed loop
wlr-screencopyWayland protocolEvery frame's buffer description, flags, damage, ready or failed event, and each request madeCaptures it as the second half of the closed loop
ScreenCast portal (org.freedesktop.portal.ScreenCast)D-BusEach step of opening a session, each stream the portal answers with, restore tokens by length and hash, virtual monitorsShows marked frames (dsido screen animate) for a capture to find
PipeWire screen cast streamPipeWireFormat negotiation, state changes, and every buffer's times, data blocks and metadata, DMA-BUF and memory (full build)·
Input
libei through the RemoteDesktop portal (ConnectToEIS)D-Bus, libeiEach step of the connection and every libei eventSends key, text, click, move, scroll and touch
wlroots virtual keyboard and pointer (zwp_virtual_keyboard_manager_v1, zwlr_virtual_pointer_manager_v1)Wayland protocolsWhether the compositor advertises themSends key, text, click, move and scroll
Kernel uinput (/dev/uinput)KernelWhether the node exists, its owner and mode, and the input devices the kernel lists, without opening itSends key, text, click, move, scroll and touch through the dsido-uinput helper
InputCapture portalD-BusThe interface and its version, and an input capture sessionEnables an input capture session
Wayland seat (a window of its own)WaylandEvery keyboard, pointer and touch event delivered to its window, with both times·
Clipboard
ext-data-control-v1Wayland protocolEach offer and its mime types, the selection and primary selection, and content by length and SHA-256 onlySets marked content as the selection
wlr-data-controlWayland protocolThe same, through the wlroots protocolSets marked content as the selection
Clipboard portal (on a RemoteDesktop session)D-BusEach step of the session, whether the clipboard is enabled, and each selection changeSets marked content as the selection
Outputs and displays
wl_output and xdg-outputWayland protocolsEvery event of every output, as every client is told it·
wlr-output-managementWayland protocolEvery head and modeChanges a mode, scale or transform, holds it and puts it back
kde_output_device_v2 and kde_output_order_v1Wayland protocols (KWin)Every event of every output device, and the output order·
kde_output_management_v2Wayland protocol (KWin)·Changes a mode, scale or transform, holds it and puts it back
Mutter DisplayConfig (org.gnome.Mutter.DisplayConfig)D-Bus (GNOME)The current state, rawApplies a configuration, holds it and puts it back
KScreen (org.kde.kscreen.Backend)D-Bus (KDE)The configuration, raw, when the service is running·
Session
systemd-logind (org.freedesktop.login1)D-Bus system busEach login session's state, and lock and idle changes during a long runTakes the idle inhibitor for a long run
org.freedesktop.ScreenSaverD-Bus·Takes its idle inhibitor for a long run
org.freedesktop.RemoteDesktop1 (the June 2026 draft)D-BusWhether anything exports it, its members and properties·
Audio and the PipeWire graph
PipeWire graph (pw-dump, pw-profiler)PipeWireEvery object, the sinks, sources, streams, links and defaults, and profiler timestamps·
A sink's monitorPipeWireA capture stream that finds a marked sound in the samples (full build), and stores no soundPlays a short marked sound into a sink (full build)
The desktop itself
Wayland registryWaylandEvery global the compositor advertises, with its interface and version·
xdg-desktop-portalD-BusThe frontend, its interfaces and versions, and the backends by source·
libei and libeis installsSystemThe installed versions·

It identifies the compositor by the process on the Wayland socket and records its version for GNOME (Mutter), KDE (KWin), Sway, Hyprland, niri, Wayfire, COSMIC and labwc. A route behind a permission dialog (the ScreenCast session, libei, the portal clipboard, input capture) runs only when you ask for it with --allow-dialogs or its own command. Each interface has a page of its own: What it is, which desktops offered it, and the commands that check it. Which of these have been run on which desktop is in the record, and the dsisee reference lists every dissector.

WHY THREE PROGRAMS

Split by what each may do to your machine

So you always know what you're running.
Program What it may do When you run it
dsiseeRead and record. It has no command that injects input or changes a setting.Any time, on any machine, including for a bug report.
dsidoChange the machine: Send input, set the clipboard, change a display mode, show a window, play a sound. Every act is recorded.Deliberately, on a machine you mean to test.
dsitellRead capture files. It connects to nothing.Anywhere, including a machine with no desktop at all.

A fourth, small program, dsido-uinput, is the helper dsido starts for kernel-level input. It's the only one that opens /dev/uinput.

WATCH

dsisee: Record the portal, PipeWire and every screen capture route

It reads one interface at a time, in that interface's own terms.

  • The portal: Its interfaces, versions and backends, and which of them answer.
  • Screen capture: Through ext-image-copy-capture-v1, wlr-screencopy or the ScreenCast portal with its PipeWire stream, with every frame's times.
  • Input: Which routes the desktop advertises (libei through the portal, the wlroots virtual keyboard and pointer, a kernel uinput device, the InputCapture portal), and a window that records every key, pointer and touch event delivered to it.
  • The clipboard: Through ext-data-control-v1, wlr-data-control or the portal. Content is recorded by length and fingerprint only, unless you ask for it.
  • Outputs: Every screen as each interface describes it: wl_output, xdg-output, wlr-output-management, KWin's own protocol, and the D-Bus interfaces of GNOME and KDE.
  • The session: Its state from logind, including when it locks or goes idle during a long run.
  • Audio: The audio part of the PipeWire graph, and a stream on a sink's monitor.
dsisee
# Everything that needs no permission dialog, in one file, with the health summary
dsisee check --out capture.json

# The same, including the screen cast and libei sessions (a person answers each dialog)
dsisee check --allow-dialogs --out capture.json

# Which input routes does this desktop have, in both directions?
dsisee input routes

# Capture the screen for ten seconds and summarize the frame timing
dsisee capture probe --duration 10

The full command list is in the dsisee reference.

DRIVE

dsido: Send input by every route Wayland has

It acts on the desktop, and writes a capture of exactly what it did.

Every step carries two times: When it asked, and when the request had gone out.

  • Input by every route, with one vocabulary: key, text, click, move, scroll and touch, the same words whether the route is libei, the wlroots virtual devices or the kernel.
  • Displays: Change a mode, scale or transform, hold it, and always put it back.
  • The clipboard: Make marked content the selection and record who reads it.
  • Marked frames and marked sound: A window that shows a frame counter at a set rate, and a short sound with a marker in it, so that capture and audio have something exact to find.
  • Load and idle: Put a recorded load on the machine, or hold the idle inhibitors so a long run isn't locked away.
dsido
# Type text through the wlroots virtual keyboard, and record each step
dsido wlr inject text "hello" --out inject.json

# Ask the desktop whether a scale change would work, and change nothing
dsido output set --scale 1.5 --test-only

# Apply it, hold it for five seconds, and always put it back
dsido output set --scale 1.5 --hold 5 --out change.json

The full command list, the shared vocabulary and the kernel route are in the dsido reference.

ANALYZE

dsitell: A health summary, timing and comparison from the capture

It reads capture files and nothing else.

  • health: Each function's state, the records it rests on, and the findings.
  • timing: Every duration a capture supports, as a distribution, with the clock each time is on.
  • loop, glass, clipboard, audio: The closed loops. They pair what dsido sent with what dsisee saw: A key to the event a window received, a marked frame to the captured buffer that shows it, a selection set to the same selection read back, a sound played to the same sound heard.
  • compare and matrix: One desktop against another, or several side by side, with the differences that count as regressions listed apart and a JUnit report for CI.
  • bundle and scrub: A redacted copy of a capture, or of a whole set, for posting.
  • findings: The catalog.
dsitell
dsitell health capture.json                                        # what works, what is there, what is not
dsitell timing capture.json                                        # every duration the capture supports
dsitell compare before.json after.json --fail-on health,findings   # what an upgrade changed; 1 on a regression
dsitell matrix sway.json gnome.json kde.json --markdown            # one column per desktop
dsitell bundle capture.json --out bundle.json                      # a redacted copy for a bug report

The full command list is in the dsitell reference.

The closed loop

From an injected key to the captured frame

Every point is recorded with its own clock, and the time between two points is taken only when the tool has verified they're on one clock. What's measured is what a remote desktop server sees: Input to captured frame, in software. It doesn't measure light leaving a monitor.

  1. dsido

    Sends a key, and records when it asked and when the request went out.

  2. The desktop

    Delivers the key to a window.

  3. dsisee input witness

    The window records the event it received, and draws its next frame with a marker in it.

  4. dsisee capture

    A capture route returns the frame, and the marker in it is read.

  5. dsitell

    Pairs the records and gives the time between each point, as a distribution.

To run it, see Time a key press to the captured frame and the Measuring guide.

FROM REAL CAPTURES

Which screen capture and input routes nine Wayland desktops offer

The output of dsitell matrix over nine captures, one for each desktop, taken with dsisee observe and no permission dialog answered.
RouteGNOME 48.7GNOME 51.0KWin 6.5.6KWin 6.8.2Sway 1.9Hyprland 0.56.2cosmic-comp 1.0.0labwc 0.20.3Cinnamon (Wayland)
Screen capture
ext-image-copy-capture-v1absentabsentabsentabsentabsentworkingworkingworkingabsent
ScreenCast portal and PipeWirepresentpresentpresentpresentnot examinedpresentpresentpresentabsent
wlr-screencopyabsentabsentabsentabsentworkingworkingabsentworkingabsent
Input
libei through the RemoteDesktop portalpresentpresentpresentpresentnot examinedabsentpresentabsentabsent
wlroots virtual keyboard and pointerabsentabsentabsentabsentpresentpresentpresentpresentabsent
Clipboard
ext-data-control-v1absentabsentworkingworkingabsentworkingworkingworkingabsent
wlr-data-controlabsentabsentabsentabsentworkingworkingworkingworkingabsent
  • working means an observation shows it working. present means the pieces are there and nothing exercised them: A route behind a permission dialog, such as the ScreenCast portal, is offered here and wasn't tested, since no dialog was answered. not examined means no dissector looked: Sway's portal wasn't running, and the capture was taken without the flag that starts it.
  • Each column is one version of that desktop, on one virtual machine, captured on 2026-11-27 or 2026-11-28. A cell says nothing of another version, another distribution's build or real hardware.
  • On these versions, GNOME and KDE Plasma advertise neither Wayland capture protocol, so their screen is captured through the ScreenCast portal and PipeWire only.
WHAT IT RESTS ON

It tells you what it rests on

  • ✓Every statement in a health summary names the records under it. What wasn't looked at is reported as not examined, never as a pass.
  • ✓Every time is labeled with its clock, and two times on different clocks are never subtracted unless the tool has verified they're one clock.
  • ✓The README lists which commands have been run on which desktop and when, and which have never been run. So does What has been run.

It has been run on GNOME, KDE Plasma, Sway, Hyprland, COSMIC, labwc and Cinnamon's Wayland session, on distributions that include Debian, Ubuntu, NixOS and KDE neon. Which command ran on which of them, and when, is in the record.

QUESTIONS

Wayland screen sharing and remote input, answered

Why is screen sharing not working on my Wayland desktop?

Run dsisee check --out capture.json. Under Capture, the health summary gives each route (ext-image-copy-capture-v1, wlr-screencopy, and the ScreenCast portal with PipeWire) as working, present, absent or not examined, with the records it rests on. Add --allow-dialogs and answer the dialog, and it also opens a screen cast session through the portal and, in the full build, reads its PipeWire stream. If the portal isn't running, the summary says so and names --wake-portal, which starts it.

Which screen capture protocols does my Wayland compositor support?

dsisee check reports every capture route with its state: ext-image-copy-capture-v1, wlr-screencopy, and the ScreenCast portal with PipeWire. Where the compositor advertises a Wayland capture protocol, it takes frames through it, so that route reads as working only when frames became ready. dsisee capture probe captures through one route for longer and records every frame's times.

How do I find out which input injection methods my Wayland desktop has?

dsisee input routes lists them in both directions: libei through the RemoteDesktop portal, the wlroots virtual keyboard and pointer, a kernel uinput device, and the InputCapture portal. dsido then sends input by a route while a dsisee window records what arrives.

What should I attach to a Wayland screen sharing bug report?

A redacted capture. dsisee check --out capture.json records what the desktop offers and answered, and dsitell bundle capture.json --out bundle.json writes a copy with the host name, login name and identifiers replaced. Read the bundle before you attach it.

Is there a tool to diagnose remote desktop problems on Wayland?

lamco-dsi-tools covers the desktop side a remote desktop server depends on: The portal's ScreenCast and RemoteDesktop interfaces, PipeWire, the capture protocols, input injection, the clipboard, outputs and the login session. It's the toolkit Lamco RDP Server is tested with. For the RDP protocol itself, the sibling toolkit lamco-rdp-tools inspects and drives a server.

Before you share a capture

A capture holds details of the machine: The host name, the login name, identifiers. dsitell bundle writes a copy with those replaced by stand-ins. Read a bundle before you post it. The security policy says exactly what's replaced and what's kept, and so does Sharing a capture.

QUICK START

Three commands

Quick start
tar -xzf lamco-dsi-tools-0.4.2-x86_64-unknown-linux-gnu.tar.gz
cd lamco-dsi-tools-0.4.2-x86_64-unknown-linux-gnu

./dsisee check --out capture.json                  # watch, and print the health summary
./dsitell health capture.json                      # the same summary, read from the file
./dsitell bundle capture.json --out bundle.json    # a redacted copy for a report

dsisee check reads and records only: It injects nothing, changes no setting and shows no dialog. Getting started goes step by step.

GET THE TOOLS

Signed tarballs, or cargo install

The release has builds for x86_64 and for 64-bit ARM (aarch64). The same programs can be built from crates.io.
Tarball What it is What it needs
lamco-dsi-tools-0.4.2-x86_64-unknown-linux-gnu.tar.gz
Saf5c8268ee56d2ea6cf56fe8baf570e10b5e3bf5baf4138e9d971ad56ffc6100A-256 af5c8268ee56d2ea6cf56fe8baf570e10b5e3bf5baf4138e9d971ad56ffc6100
Everything, for x86_64glibc 2.34 or later and libpipewire-0.3
lamco-dsi-tools-0.4.2-x86_64-unknown-linux-musl.tar.gz
S8c1facd0d511ef587645fbae64a91bae2f4045ee5dec491c7c1a465897a82019A-256 8c1facd0d511ef587645fbae64a91bae2f4045ee5dec491c7c1a465897a82019
Static programs that run on any x86_64 LinuxNothing
lamco-dsi-tools-0.4.2-aarch64-unknown-linux-gnu.tar.gz
S421a9aa654af882c1f7a793979ae2bc99950fbcd1060399367360c2f7a135044A-256 421a9aa654af882c1f7a793979ae2bc99950fbcd1060399367360c2f7a135044
Everything, for 64-bit ARMglibc 2.34 or later and libpipewire-0.3
lamco-dsi-tools-0.4.2-aarch64-unknown-linux-musl.tar.gz
Scbd31f751349234d730f830f40c426d1b7d3527159d2d7933b0318cc9ceea9c5A-256 cbd31f751349234d730f830f40c426d1b7d3527159d2d7933b0318cc9ceea9c5
Static programs that run on any 64-bit ARM LinuxNothing

The two builds for each architecture differ in one thing. A static program can't link libpipewire, so the static build doesn't read a screen cast's stream, which is how the screen is captured on GNOME and KDE, and its two audio commands end as not available. On GNOME or KDE, take the gnu tarball for your architecture.

All four are signed with the release key of Lamco Development LLC, fingerprint CA11F781516743D5D9A1A12F17B95B68A50CD3A7 (signing subkey 405CB1E36258DA1DA406A852A236DDB84E0EC96E). SHA256SUMS and SHA256SUMS.asc are on the release.

Verify a download
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys CA11F781516743D5D9A1A12F17B95B68A50CD3A7
gpg --verify SHA256SUMS.asc SHA256SUMS            # the list is the one that was signed
sha256sum --check --ignore-missing SHA256SUMS     # the tarball you have is the one in the list

From crates.io

The tarballs need no compiler. cargo install builds the four programs from source instead, and needs Rust 1.89 or later.

Install from crates.io
cargo install lamco-dsi-tools --features portable

Keep --features portable: Without it only the default feature is built, which leaves several commands out. --features full adds the PipeWire client, and then needs libpipewire's development files, pkg-config and libclang. The crate is lamco-dsi-tools on crates.io.

Building from source needs Rust 1.89 or later, and the README has the feature sets.

PART OF A FAMILY

Open source toolkits from Lamco Development LLC

Lamco Development LLC builds its products on the plumbing of the Linux desktop: The remote desktop protocol, the interfaces a program uses to see and control a session, and the message bus underneath both. For each layer it publishes the instruments it built to understand that layer. They're the instruments its own products are built and tested with, so anyone who works on the same ground can check a desktop the same way, and check the company's claims about its own products.
Toolkit Layer Programs State
lamco-rdp-toolsThe RDP protocol, from the client's siderdpsee, rdpdoShipped
lamco-dsi-toolsThe desktop session's interfaces: Capture, input, clipboard, outputs, session, audiodsisee, dsido, dsitellShipped, v0.4.2
lamco-dbus-toolsD-Bus, the message bus under the Linux desktop and systemdbussee, dbusdo, dbustell, dbuskeepShipped, v0.4.1

Each toolkit separates the program that only watches from the program that acts, records what a protocol actually said before it draws a conclusion, labels every time with its clock, and lists what it has and hasn't been run on. lamco-dsi-tools is also the instrument Lamco RDP Server is tested with.

Version, license, ownership

lamco-dsi-tools 0.4.2 was released on 2026-12-04. It's written in Rust and licensed MIT OR Apache-2.0. Copyright Lamco Development LLC.

Links