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.
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.
dsisee, dsido, dsitell
|
Linux, Wayland, x86_64 and aarch64
|
Rust
|
MIT OR Apache-2.0
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.
Every interface a program uses to see and control a Wayland desktop
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-v1 | Wayland protocol | Every capture session and frame event, with the compositor's and the instrument's times | Captures it as the second half of the closed loop |
| wlr-screencopy | Wayland protocol | Every frame's buffer description, flags, damage, ready or failed event, and each request made | Captures it as the second half of the closed loop |
| ScreenCast portal (org.freedesktop.portal.ScreenCast) | D-Bus | Each step of opening a session, each stream the portal answers with, restore tokens by length and hash, virtual monitors | Shows marked frames (dsido screen animate) for a capture to find |
| PipeWire screen cast stream | PipeWire | Format 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, libei | Each step of the connection and every libei event | Sends key, text, click, move, scroll and touch |
| wlroots virtual keyboard and pointer (zwp_virtual_keyboard_manager_v1, zwlr_virtual_pointer_manager_v1) | Wayland protocols | Whether the compositor advertises them | Sends key, text, click, move and scroll |
| Kernel uinput (/dev/uinput) | Kernel | Whether the node exists, its owner and mode, and the input devices the kernel lists, without opening it | Sends key, text, click, move, scroll and touch through the dsido-uinput helper |
| InputCapture portal | D-Bus | The interface and its version, and an input capture session | Enables an input capture session |
| Wayland seat (a window of its own) | Wayland | Every keyboard, pointer and touch event delivered to its window, with both times | · |
| Clipboard | |||
| ext-data-control-v1 | Wayland protocol | Each offer and its mime types, the selection and primary selection, and content by length and SHA-256 only | Sets marked content as the selection |
| wlr-data-control | Wayland protocol | The same, through the wlroots protocol | Sets marked content as the selection |
| Clipboard portal (on a RemoteDesktop session) | D-Bus | Each step of the session, whether the clipboard is enabled, and each selection change | Sets marked content as the selection |
| Outputs and displays | |||
| wl_output and xdg-output | Wayland protocols | Every event of every output, as every client is told it | · |
| wlr-output-management | Wayland protocol | Every head and mode | Changes a mode, scale or transform, holds it and puts it back |
| kde_output_device_v2 and kde_output_order_v1 | Wayland protocols (KWin) | Every event of every output device, and the output order | · |
| kde_output_management_v2 | Wayland 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, raw | Applies 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 bus | Each login session's state, and lock and idle changes during a long run | Takes the idle inhibitor for a long run |
| org.freedesktop.ScreenSaver | D-Bus | · | Takes its idle inhibitor for a long run |
| org.freedesktop.RemoteDesktop1 (the June 2026 draft) | D-Bus | Whether anything exports it, its members and properties | · |
| Audio and the PipeWire graph | |||
| PipeWire graph (pw-dump, pw-profiler) | PipeWire | Every object, the sinks, sources, streams, links and defaults, and profiler timestamps | · |
| A sink's monitor | PipeWire | A capture stream that finds a marked sound in the samples (full build), and stores no sound | Plays a short marked sound into a sink (full build) |
| The desktop itself | |||
| Wayland registry | Wayland | Every global the compositor advertises, with its interface and version | · |
| xdg-desktop-portal | D-Bus | The frontend, its interfaces and versions, and the backends by source | · |
| libei and libeis installs | System | The 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.
Split by what each may do to your machine
| Program | What it may do | When you run it |
|---|---|---|
| dsisee | Read and record. It has no command that injects input or changes a setting. | Any time, on any machine, including for a bug report. |
| dsido | Change 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. |
| dsitell | Read 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.
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.
# 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.
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,scrollandtouch, 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.
# 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.
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 whatdsidosent with whatdsiseesaw: 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.compareandmatrix: One desktop against another, or several side by side, with the differences that count as regressions listed apart and a JUnit report for CI.bundleandscrub: A redacted copy of a capture, or of a whole set, for posting.findings: The catalog.
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.
dsido
Sends a key, and records when it asked and when the request went out.
The desktop
Delivers the key to a window.
dsisee input witness
The window records the event it received, and draws its next frame with a marker in it.
dsisee capture
A capture route returns the frame, and the marker in it is read.
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.
Four questions it answers
A bug report that carries its evidence
Run one command, and attach one redacted file. The maintainer sees what your desktop offers and what it answered, instead of asking you for a version string.
Does my software work on this desktop?
It's for people who write remote desktop, streaming, screen sharing, software KVM and automation tools. It shows which capture and input routes exist here, and which of them actually deliver.
Did this release change anything?
It's for people who build and test desktops and distributions. Capture before and after, compare the two, and fail the build on a regression.
How long does it take?
It times a key to the event, a frame drawn to the frame captured, and a sound played to the sound heard, as distributions with the worst cases shown.
Which screen capture and input routes nine Wayland desktops offer
dsitell matrix over nine captures, one for each desktop, taken with dsisee observe and no permission dialog answered.| Route | GNOME 48.7 | GNOME 51.0 | KWin 6.5.6 | KWin 6.8.2 | Sway 1.9 | Hyprland 0.56.2 | cosmic-comp 1.0.0 | labwc 0.20.3 | Cinnamon (Wayland) |
|---|---|---|---|---|---|---|---|---|---|
| Screen capture | |||||||||
| ext-image-copy-capture-v1 | absent | absent | absent | absent | absent | working | working | working | absent |
| ScreenCast portal and PipeWire | present | present | present | present | not examined | present | present | present | absent |
| wlr-screencopy | absent | absent | absent | absent | working | working | absent | working | absent |
| Input | |||||||||
| libei through the RemoteDesktop portal | present | present | present | present | not examined | absent | present | absent | absent |
| wlroots virtual keyboard and pointer | absent | absent | absent | absent | present | present | present | present | absent |
| Clipboard | |||||||||
| ext-data-control-v1 | absent | absent | working | working | absent | working | working | working | absent |
| wlr-data-control | absent | absent | absent | absent | working | working | working | working | absent |
- 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.
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.
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.
Three commands
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.
Signed tarballs, or cargo install
| 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_64 | glibc 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 Linux | Nothing |
| lamco-dsi-tools-0.4.2-aarch64-unknown-linux-gnu.tar.gz S421a9aa654af882c1f7a793979ae2bc99950fbcd1060399367360c2f7a135044A-256 421a9aa654af882c1f7a793979ae2bc99950fbcd1060399367360c2f7a135044 | Everything, for 64-bit ARM | glibc 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 Linux | Nothing |
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.
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.
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.
Open source toolkits from Lamco Development LLC
| Toolkit | Layer | Programs | State |
|---|---|---|---|
| lamco-rdp-tools | The RDP protocol, from the client's side | rdpsee, rdpdo | Shipped |
| lamco-dsi-tools | The desktop session's interfaces: Capture, input, clipboard, outputs, session, audio | dsisee, dsido, dsitell | Shipped, v0.4.2 |
| lamco-dbus-tools | D-Bus, the message bus under the Linux desktop and system | dbussee, dbusdo, dbustell, dbuskeep | Shipped, 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.