Products › lamco-dsi-tools › Docs › dsisee reference
dsisee reference
Every dsisee command: The portal, PipeWire, Wayland, screen capture, input, the clipboard, outputs, the session and audio.
dsisee is the program of lamco-dsi-tools (DSI: Desktop session interfaces) that watches. It reads and records, and has no command that injects input or changes a setting. Every command takes a capture: --out <file> writes it to a file as JSON, and --json prints the same document on standard output. The text a command prints without --json is a summary for a person, and dsitell can't read it.
The man pages (dsisee(1) and one per command, under doc/man/ in the tarball) and dsisee help <command> hold the full text of each command. This page lists every command by group, with what it does and its key flags.
Flags every command takes
| Flag | Effect |
|---|---|
--json | The capture as JSON on standard output, in place of text. |
--out <file> | Also writes the capture to a file, with or without --json. |
--timeout <seconds> | A limit on the command's working time (default 30, 0 for none). It doesn't cover a --duration window or a wait for a permission dialog. |
--junit <file> | Writes a JUnit XML file with one test case, which fails when the command fails. |
-v, --verbose | Debug logging on standard error. |
-V, --version | Prints the version. |
The commands that open a permission dialog take --dialog-timeout <seconds> (default 120, 0 for none), which limits the wait for a person to answer. That wait is measured and reported, and kept out of the working time --timeout limits. Output and exit codes has the exit codes.
Portal
| Command | What it does | Key flags |
|---|---|---|
portal diagnose | Records whether the portal is on the session bus and who owns it, every interface it exports with its version, the backends found (from bus names and from .portal files, each marked with its source), and the properties of RemoteDesktop, ScreenCast and InputCapture, with the bits of the four bitmasks named beside the number. A portal that isn't running is reported as that, with a note that it's normally started on demand. No dialog. | --wake-portal has the command start the portal through D-Bus, and the capture says the instrument woke it and how long that took. --wake-services is the same flag under the name that covers every service started on demand. |
portal probe | Records the same, then watches portal and compositor bus names change owner for a set time, which shows a portal or backend restarting. | -d, --duration (default 15). --soak <duration> makes it a long run written to --out as it goes, with --soak-cap and --soak-progress. --wake-portal, --wake-services. |
PipeWire
| Command | What it does | Key flags |
|---|---|---|
pipewire diagnose | Runs pw-dump and records every object verbatim, plus the daemon's version as the core object reports it. Lists the nodes. It records formats and modifiers (they're in each object) and doesn't summarize them. | |
pipewire probe | Runs pw-profiler for a set time, records every object it prints with the daemon's own timestamps, and summarizes the cycle intervals of the driver with the most cycles as a distribution, with gaps. Its estimated cycle rate is a rate of the graph, not a frame rate. Needs a running graph. | -d, --duration (default 15) |
Compositor and Wayland protocols
| Command | What it does |
|---|---|
wayland diagnose | Records the compositor's identity: The session variables, the process that owns the Wayland socket, and the version from the compositor's own programs, each with its source. It prints no libei version and no support level. Those are in eis diagnose. |
wayland protocols | Reads the Wayland registry in-process and records every global as advertised, then sorts them by a built-in table, marked as an interpretation. The table ranks nothing and calls nothing missing: It says what each protocol is for and which family it belongs to. |
How each compositor's version is obtained:
| Compositor | Process name | Asks the running compositor | Answers for the installed program |
|---|---|---|---|
| GNOME (Mutter) | gnome-shell | gnome-shell --version | |
| KDE (KWin) | kwin_wayland, or its wrapper | kwin_wayland --version | |
| Sway | sway | swaymsg -t get_version | sway --version |
| Hyprland | Hyprland | hyprctl version -j | Hyprland --version |
| niri | niri | niri msg version | niri --version |
| Wayfire | wayfire | wayfire --version | |
| COSMIC | cosmic-comp | cosmic-comp --version | |
| labwc | labwc | labwc --version |
The process is the one the kernel names for the Wayland socket (SO_PEERCRED). When no process was identified, XDG_CURRENT_DESKTOP selects the commands and the record says so. The raw output is recorded whole, and no number is cut out of a line of text. Any other compositor gets no version.
Session
| Command | What it does |
|---|---|
session logind | Reads each login session's state from systemd-logind and records it as a snapshot. |
session remote-desktop | Reads what the session bus shows of org.freedesktop.RemoteDesktop1, the draft common interface for remote desktop servers: Whether its name has an owner, each interface the service's objects export with every member as the service's own introspection declares it, the properties as read, and the session files' X-RemoteDesktop1-Supported key. Calls no method of the interface and starts nothing. The summary compares what is exported with the draft as it was read on 2026-11-27, and says so. |
The draft remote desktop server interface
org.freedesktop.RemoteDesktop1 is a common D-Bus interface between a desktop and a remote desktop server that was proposed in June 2026. It's an open draft, not merged: The specification is xdg-specs merge request 115, and what exists of it in desktops is a merge request for Mutter and prototypes for KDE and wlroots. docs/reference/remote-desktop-interface.md lists each source with its address and revision.
The draft's text and its implementations disagree on the bus name, and the draft and Mutter's copy of the interface disagree on members. So the command, and the remote-desktop-interface dissector observe runs, take nothing from a table: Both names are looked up, and what a service exports is read from the service's own introspection document and its properties. It calls no method, since CreateSession creates a remote desktop session and may end another, and it never calls a name with no owner, since that would have the bus start a service.
The summary compares what is exported with the draft, member by member, and names the draft's address, commit and date with every comparison. A difference says which revision a service follows. It's no fault of the service and raises no finding. dsitell health has one line for the interface, under "Also looked for": Present, absent or not examined. Not examined by anything here: Whether a session can be created, and whether the libei socket and the PipeWire stream a session hands out work.
libei
| Command | What it does | Key flags |
|---|---|---|
eis diagnose | Records what of libei is installed (development package and runtime library, kept apart) and the compositor's identity, then prints a support level assumed from a built-in table and labeled as such. Nothing is tested. | -f, --format (default text) |
eis probe [dialog] | Opens a libei connection through the RemoteDesktop portal, keeps it for a set time, and reports its life from the records: Each step of opening it, how long the dialog took to be answered, the devices, and if it closed, how long after the handshake and after the last device event. It names no cause. Sends no input. A device announced at version 3 or later of ei_device is sent the ready request the protocol asks of a client, recorded as device_ready_sent. | -d, --duration (default 15, after the handshake). -f, --format. --dialog-timeout. --persist <none|transient|permanent> and --restore-token <file>. |
eis observe [dialog] | Opens the same connection and records every libei event, each step of opening it, and the ready it sends for a device at version 3 or later (device_ready_sent). Sends no input. | -d, --duration (default 5). --dialog-timeout. --persist and --restore-token. |
No command measures libei support except eis probe. The level eis diagnose prints is assumed from a built-in table keyed on the compositor's name, is labeled "assumed from a built-in table" wherever it appears, and has no basis that could be found in the repository's documents. The table's Mutter entry is withdrawn and assumes nothing. With --persist and --restore-token <file> the session asks for a restore token and sends the one the file holds, as the portal route of capture observe does.
Input
| Command | What it does | Key flags |
|---|---|---|
input routes | Says which input routes this desktop advertises, in both directions, from four dissectors: The uinput node and the kernel's device list, the registry (the two wlroots virtual device managers), the portal (RemoteDesktop and InputCapture) and what of libei is installed. It prints the input part of the health summary, and for each route that is there, what it has for touch. Sends and captures nothing. | |
input witness | Opens one window and records every keyboard, pointer and touch event the compositor delivers to it, each with the event's own time and the instrument's arrival time, and the frame it commits in answer. The watching half of the closed loop. Injects nothing. input feature. | -d, --duration (default 20). --markers answers each event with a frame that carries a screen marker, for dsitell glass. -o, --output <name> makes the window fill that output. --fullscreen. --max-events (default 5000). --wait-focus <duration>. --soak, --soak-cap, --soak-progress. |
input capture [dialog] | Opens an InputCapture portal session and records what the portal reports: The version, the capabilities granted, the zones, and its answer to a barrier on each edge of every zone. The session isn't enabled, so nothing is captured. eis feature. | -d, --duration. --capabilities (default keyboard,pointer; also touchscreen). --dialog-timeout. |
input witness records wl_touch where its seat has a touch device: touch_down, touch_motion and touch_up, each with the id the compositor gave the touch point, and touch_frame, touch_cancel, touch_shape and touch_orientation as they come. Since a seat has the touch capability only while there's a touch device, the witness asks for wl_touch each time the seat says it has one and gives it back when the seat says it has none. Its note under the runtime directory holds what the seat last said, which is what an injector run with --wait-witness reads.
Screen capture
| Command | What it does |
|---|---|
capture probe | Picks the capture route, says which one it took and why, captures frames and summarizes the records: Request-to-ready time and the interval between ready events as distributions, gaps in that interval, and damage. Through the ScreenCast portal, a build with the pipewire feature times the stream's buffers instead: The interval between them by arrival and by the producer's pts, gaps, damage, and the share of DMA-BUF and memory buffers. A build without the feature exits 1 there and says why, before any dialog. It reports no frame rate of the output. Its estimated capture rate is the rate the probe's own request loop reached. |
capture observe | Picks the route the same way, runs the capture and records every session and frame event and every request the instrument made, with the compositor's clock and the instrument's clock kept apart. Through the portal route it opens a ScreenCast session, records each step with its length, what was asked for and each stream the portal answered with, and (with the pipewire feature) reads the stream: The formats offered, the formats the node enumerates, the format chosen, each change of state, and each buffer with both of its times, its data blocks and its metadata. A build without the feature records the stream as not read. |
Both take these flags:
| Flag | Effect |
|---|---|
-d, --duration | How long to capture, in seconds (default 10 for probe, 2 for observe). |
-f, --frames | observe only: Stop after this many frames (default 5, and no limit with --soak). |
-o, --output <name> | The output to capture, as wl_output names it (default the first). An output advertised below version 4 of wl_output sends no name and can't be selected. Refused with the portal route, where the person who answers the dialog chooses the source. |
--route <auto|ext-image-copy|wlr-screencopy|portal> | The capture route. auto takes a Wayland capture protocol the compositor advertises, or the portal with --allow-dialogs. |
--allow-dialogs | Lets --route auto take the portal route, which shows a permission dialog. |
--dialog-timeout | Longest wait for the dialog (default 120). |
--source-types <monitor,window,virtual> | Portal route: The kinds of source the dialog may offer (default monitor). virtual asks the desktop for a virtual monitor. |
--cursor-mode <hidden|embedded|metadata> | Portal route: How the cursor appears in the stream (default embedded). With metadata the cursor comes beside the frames and what the buffers say of it is measured. |
--session <screen-cast|remote-desktop> | Portal route: remote-desktop opens the one RemoteDesktop session with devices and sources that a remote desktop server opens, in place of a ScreenCast session. |
--persist <none|transient|permanent>, --restore-token <file> | Portal session: Ask the portal to keep the permission and send the token the file holds. The token Start answers with is written to the file, mode 0600. A capture holds a token's length and SHA-256 and never its text. |
--read-markers | Reads each buffer's pixels and looks for a screen marker. Only the counter it decoded, where it found it and a confidence are stored, never a pixel. |
--memory-buffers | Portal route: Ask for buffers in shared memory and no DMA-BUF. |
--modifiers <auto|linear|all|LIST> | Portal route: The DRM format modifiers offered with the DMA-BUF formats. auto is the implicit and the linear one; all offers every one the stream's node lists; a list offers exactly those. |
--no-dmabuf-map | Portal route, with --read-markers: Map no DMA-BUF in the instrument's helper. |
--window [<app-id|title|identifier>] | ext-image-copy-capture: Capture a window in place of an output (with no value, the window of dsido screen animate), after recording every toplevel the compositor lists. |
--cursor | ext-image-copy-capture: Also capture the cursor's own session over the source. |
--soak <duration>, --soak-cap, --soak-progress | observe only: A long run, written to --out as a stream. See Long runs and load. |
--until-file <path> | observe only: End the capture when a file appears at the path. |
GNOME and KDE offer neither ext-image-copy-capture-v1 nor wlr-screencopy. Their route is the ScreenCast portal, which shows a permission dialog, so --route auto takes it only with --allow-dialogs. Without the flag the two capture commands exit 1 there, and name both protocols and the flag. A screen that doesn't change may produce one buffer and no more, since compositors send a buffer when the screen changes. dsido screen animate gives a capture something to time. The 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.
With the pipewire feature the stream is read and no pixel is, unless --read-markers asks: The stream is connected without MAP_BUFFERS, a buffer's description is copied, and the buffer goes straight back to the producer. The instrument offers BGRx, BGRA, RGBx and RGBA, each first as DMA-BUF and then as memory, so which one the compositor picks is an observation. A 10-bit or HDR cast isn't offered. A buffer's pts is the producer's own time and is never subtracted from the instrument's arrival time.
Clipboard
| Command | What it does | Key flags |
|---|---|---|
clipboard routes | Says which routes to the clipboard this desktop offers, from the registry (the two data-control managers), the portal (Clipboard and RemoteDesktop) and, with the clipboard feature, the two data-control dissectors. It prints the clipboard part of the health summary. No dialog, no content read, nothing set. | |
clipboard observe | Picks the clipboard route, says which and why, and records the selections through it: Each offer and its mime types, which offer is the selection and which the primary selection, and their changes. Offers already there when it bound are marked initial. With --read it reads each selection's content as one mime type and records its length, its SHA-256 and when it was asked for, when its first byte came and when it ended. The content is never stored unless --keep-content says how many bytes. clipboard feature. | -d, --duration (default 0, the present state). --read. --mime <type>. --max-bytes. --read-timeout (default 5). --keep-content <bytes> (default 0). --route <auto|ext-data-control|wlr-data-control|portal>. --allow-dialogs, --dialog-timeout. |
The route is ext-data-control-v1 or wlr-data-control where the compositor advertises one, and the portal's Clipboard interface on a RemoteDesktop session where it advertises neither (--route portal or --allow-dialogs, which show a dialog; the portal route also needs the eis feature). A read that never becomes readable within --read-timeout ends as timed_out, not as failed.
Outputs
| Command | What it does | Key flags |
|---|---|---|
output observe | Records every output through each interface that describes it and prints them side by side, then the outputs part of the health summary: wl_output with xdg-output, wlr-output-management and KWin's kde_output_device_v2 (outputs feature), and in every build Mutter's GetCurrentState and KScreen's getConfig on the session bus, each answer raw, each only when its bus name has an owner. Changes nothing. | -d, --duration (default 0) goes on recording wl_output and xdg_output events, so a change made meanwhile is in the capture. -o, --output <name> describes only that output. --wake-services. |
Audio
| Command | What it does | Key flags |
|---|---|---|
audio observe | Runs the PipeWire graph dissector and the profiler, and prints the audio part: Sinks, sources, the streams that play and record, the links between them, the default sink and source, each node's state and negotiated format, the profiler's xrun count, and the audio part of the health summary. Plays nothing and records no sound. | |
audio stream | Listens on a sink's monitor and records the stream: The format offered (32-bit float, 48 kHz, one channel) and the format settled on, each format every sink enumerates, each change of state, the link the session manager made, and every buffer with its arrival on the instrument's clock, the stream's own time report and how many frames it carried. No sound is stored: The samples pass through the detector of the marker dsido audio play plays and are let go, and each marker found is a record. In a build without the pipewire feature the command ends as not available, naming the feature. | -d, --duration (default 10). --node <id|name> names the sink (the default sink otherwise). --expect <count> makes hearing fewer markers a failure. --latency <frames> asks the graph for a buffer size. |
Combined observation
| Command | What it does | Key flags |
|---|---|---|
observe | Reads which transports the session has, runs every dissector that shows no dialog, needs no privilege and has no side effects, lists the ones it skipped and why, and emits one capture. The two capture protocols take three frames of every output the compositor advertises, one output after the other. It adds no interpretation: No classification and no assumed value. | --allow-dialogs also runs the three dissectors that show a dialog (the screen cast session, the libei connection and the portal clipboard session), one after the other. --wake-portal, --wake-services. --dialog-timeout. |
check | Takes the capture observe takes, then prints the health summary dsitell health gives of it. A convenience that calls the same code and adds no verdict of its own. | The same as observe. |
help [<command>] | Every command grouped, one group, or one command in full. |
observe and check exit 0 once the capture is written, whatever is in it. They write the capture even when --timeout runs out: What finished is in it, the dissector that was running is marked cut_short_by: command_time_limit, those not yet started are listed as timed_out, and the command exits 2.
The dissectors
observe runs these, in this order. Each single-purpose command above is the front of one or two of them.
| Dissector | Runs when | What it records |
|---|---|---|
compositor-identity | always | XDG_CURRENT_DESKTOP, XDG_SESSION_TYPE, WAYLAND_DISPLAY; the process on the Wayland socket; each version command tried, with its raw output |
libei-install | always | For libei and libeis: The development package version from pkg-config, and each runtime library file found by name |
kernel-input | always | /dev/uinput (whether it exists, its owner and mode; read with stat, never opened), who the instrument runs as, and each device of /proc/bus/input/devices with whether it's virtual |
logind | system bus | Each login session's state |
remote-desktop-interface | session bus | The draft interface org.freedesktop.RemoteDesktop1: Name ownership, each exported interface with its members, properties, and the session files' key |
wayland-registry | Wayland socket | One record per global: Name, interface, version |
portal | session bus | Frontend owner, exported interfaces and versions, backends by source, properties of the three session interfaces, and name-owner changes when given a duration |
pipewire-graph | pw-dump on PATH | One record per object, verbatim, and the daemon's version |
pipewire-profiler | pw-profiler on PATH | One record per profiler object, with its native timestamps |
ext-image-copy | Wayland socket, capture feature | Every capture session and frame event |
wlr-screencopy | Wayland socket, capture feature | Every frame's buffer description, flags, damage and ready or failed event, and every request the instrument made |
ext-data-control | Wayland socket, clipboard feature | The seat's selection and primary selection as ext-data-control-v1 sends them: Each offer and its mime types. No content |
wlr-data-control | Wayland socket, clipboard feature | The same through wlr-data-control |
wayland-outputs | Wayland socket, outputs feature | Every wl_output event of every output, and the xdg_output events where the compositor offers them |
wlr-output-management | Wayland socket, outputs feature | Every head and mode event up to the manager's done, with its serial. It creates no configuration |
kde-output-device | Wayland socket, outputs feature | Every event of every kde_output_device_v2 object, whether KWin offers one global per output or kde_output_device_registry_v2, and the output order from kde_output_order_v1. It binds and listens, sends no request, and never binds kde_output_management_v2 |
mutter-display-config | session bus | The answer of org.gnome.Mutter.DisplayConfig.GetCurrentState, raw, when the name has an owner; otherwise whether D-Bus can start it, and not available |
kscreen | session bus | The answer of org.kde.kscreen.Backend.getConfig, raw, when org.kde.KScreen has an owner; otherwise whether D-Bus can start it, and not available |
portal-screencast | session bus, capture feature, --allow-dialogs | Each step of opening a ScreenCast portal session, what was asked for, each stream the portal answered with, and the stream itself (with the pipewire feature) |
eis | session bus, eis feature, --allow-dialogs | Each step of opening the libei connection, and every libei event |
portal-clipboard | session bus, clipboard and eis features, --allow-dialogs | Each step of opening a RemoteDesktop session with the clipboard asked for, the interface versions, and whether the portal's answer says the clipboard is enabled |
input-witness and input-capture are each the back of one command and aren't run by observe. A command that a build was compiled without doesn't appear in that build's help: eis probe, eis observe and input capture need the eis feature, the two capture commands the capture feature, input witness the input feature and clipboard observe the clipboard feature. Building from source has the full table.
What these commands don't do
- A
dsiseecommand that only reads never starts the portal unless it's given--wake-portal. A desktop's display configuration service is treated the same way, and--wake-servicesstarts every such service, each start a record of its own with both its times. - A command whose job is to call the portal (
eis probe,eis observe, the portal route ofcapture, the session dissectors ofobserve --allow-dialogs) needs no flag: It records how it found the portal asfrontend_before, and when the portal wasn't running it has D-Bus start it as a step of its own,activate_portal.dsitell healththen raisesPORTAL-007. portal diagnosedoesn't work out which backend serves which interface, and doesn't callConnectToEIS.portal probewatches bus names only and creates no portal session.pipewire diagnose's list of video nodes is a filter onmedia.classand says nothing about a capture running.pipewire probedoesn't pick a stream.capture probecalls a gap an interval longer than three times the median. With fewer than two ready frames gaps aren't looked for, and the report says so.eis probenames no cause when a connection closes. It reports when it closed, from the handshake and from the last device event.- Unless
--persistor--restore-tokenis given, the portal session is opened with no restore token and asks for none, so the dialog is shown every time and its wait is measured apart from the steps the stack took. - With a restore token sent, whether a dialog was shown is judged from how long
Starttook: Under one second is read as no dialog. That threshold is an assumption of the tool and not a measurement, and it's said to be one wherever the judgment is printed (PORTAL-009andPORTAL-010). - A virtual monitor's appearance isn't in the portal's answer alone, so the capture also holds the
wl_outputglobals that came and went while the session lived.CAP-010is a virtual monitor asked for and none given.CAP-011is an output still there after the session closed. - A stream's properties are recorded for the six the interface defines (
id,position,size,source_type,mapping_id,pipewire_serial). A property outside those isn't seen.