Products › lamco-dsi-tools › Docs › The three programs

The three programs

What dsisee, dsido and dsitell may each do to your machine, and why they are separate.

lamco-dsi-tools (DSI: Desktop session interfaces) builds three programs from one package, and with the kernel feature a fourth, small one. They're separate because of what each is allowed to do. You can run dsisee on a machine you're diagnosing without it changing anything, keep dsido for a machine you mean to drive, and read the results with dsitell anywhere.

What each may do

ProgramWhat it doesWhat it may do
dsiseeWatchesReads and records. It has no command that injects input or changes a setting, so it's safe to run on any machine, including one being diagnosed for a bug report.
dsidoDrivesChanges the machine. It injects input into the live desktop over three routes, enables an input capture session, replaces what the clipboard holds, changes an output's mode or scale and puts it back, presents marked frames on the screen at a rate of its own, and plays a marked sound into a sink. Every command writes a capture of what it did.
dsitellInterpretsReads capture files and says something about them: Health, findings, timing, the loops that pair two or three captures, what differs between two, a matrix of several, a capture read again, the redacted bundle and the publishable set. It connects to no bus, no compositor and no PipeWire, and needs no graphical session.

dsitell is built only from the parts that read captures. A test walks its imports and fails if it reaches a transport, a dissector or anything else that touches the system. It calls no program and connects to nothing.

The helper, dsido-uinput

dsido-uinput is the helper dsido kernel inject starts. It's the only program here that opens /dev/uinput, and so the only one that may need more rights than the user has. It takes no arguments, reads one bounded request, refuses to run set-user-ID, and changes no permission. dsido never raises its own rights: --elevate-with <program> names the program that starts the helper (for example sudo), and that program asks whatever it asks. The dsido reference describes the helper and its limits.

A capture is a file

What dsisee records is a capture, and a capture is a file. dsido writes one too, of what it did. dsitell reads captures and nothing else: The health summary, the findings, the timing report and the redacted bundle are all readings of a file, so they can be made later, on another machine, and again when the reading improves.

Every dsisee command prints from records. A dissector reads one protocol and records what it saw in that protocol's own terms, with the time the instrument read it and any time the protocol itself gave. Anything a command works out from the records (a count, a distribution, a classification) is printed beside them as a summary and never in their place. A fact that couldn't be read is recorded as not read, with the reason. See The capture file.

Help

Every program has the same three help surfaces:

dsisee --help                  # flags, and the command table
dsisee help                    # every command, grouped, with its syntax
dsisee help portal diagnose    # one command in full: arguments, examples, notes, needs and gates
dsisee help portal             # the commands of one group

The tarball also holds a man page for each program and each of its commands under doc/man/.

The gates

The detailed help for a command states three gates. The listings tag a gated command with the gate's name:

TagMeaning
[dialog]The desktop asks a person for permission before the command can continue.
[privileged]The command needs more rights than the user has.
[side effects]The command changes the machine's state.

In dsisee the only gate is [dialog]: eis probe, eis observe and input capture carry it, and the portal routes of the capture and clipboard commands show a dialog when asked for. Every other dsisee command runs unattended. dsisee observe runs only the dissectors that show no dialog, need no privilege and have no side effects, and lists the others as skipped.

Every dsido command carries [side effects]. eis inject, eis replay and input-capture enable also carry [dialog], and kernel inject and kernel replay carry [privileged].

Where to go next