Find the cause of a problem

Capture diagnostics

tessera start --log-file /tmp/tessera.log --log-level debug

Choose the log file when starting the session you want to investigate. Each start opens that file for writing. Without a file, Tessera diagnostics go to standard error; native wlroots output keeps its original streams. Levels are trace, debug, info, warn, error, and fatal, with info the default. Look for TESSERA_PROBLEM and POLICY_ERROR lines. In a running session, tessera eval '(problems)' returns reported problems oldest first.

Investigate latency

Debug enables correlated focus and overlay timing. Run the repository's scripts/analyze-latency on the saved log for CSV ordered by action and time. TESSERA_TRACE records use monotonic nanoseconds, shared action IDs, stages, objects, output commit sequence, and cumulative dropped records.

Stage 0 is native input and stage 20 is IPC receipt. Handler start/end, device changes and readback, layout, decoration drawing, scene application, buffer commit, and physical presentation show where the time went. A later first-observed stage means the timeline is partial. Missing stages aren't zero-duration work, and an action can produce no visual change. Multiple outputs can present one action.

The analyzer reports dropped records on standard error. Treat affected timelines as incomplete. Debug logging adds work and file I/O, so turn it off when comparing normal idle CPU. Save the original log alongside any report so another person can inspect the same events.

Check an output after resume

An external monitor can remain dark after resume. Keep a working monitor or VT available, then use tessera outputs to identify it. Cycling the affected connector off and on is the current workaround:

tessera outputs DP-2 off
tessera outputs DP-2 on

Use your actual connector name. These commands preserve its configured placement and scale. Successful admission means the native change was queued; check the display and output report afterward.