A remote desktop is only finished when you can live in it. Demos hide what an eight-hour working day finds at once: sound that pops while you scroll, a clock in the top bar that is a minute behind, a session that gets slower and slower on hotel Wi-Fi.

So we did the obvious thing: we moved our own daily desktop onto the stack and wrote down everything that annoyed us. This series is the result, one post per problem.

The setup

 laptop (SDL3 client)                        Linux server
┌──────────────────────┐   RDP / TLS    ┌───────────────────────────────────────────┐
│ sdl-freerdp          │◀──────────────▶│ session manager (sesman)                  │
│  /multimon, sound    │                │  └─ headless GNOME session per user       │
└──────────────────────┘                │      └─ freerdp-shadow-cli, Mutter backend│
                                        │          ScreenCast + RemoteDesktop (EIS) │
                                        │          PipeWire: picture + sound        │
                                        └───────────────────────────────────────────┘
  • The server is FreeRDP’s shadow server with a new backend for GNOME’s compositor, Mutter. It asks Mutter for a virtual monitor (the ScreenCast RecordVirtual call) and gets the picture, the damage regions and the cursor through PipeWire. Input goes back through libei. The backend itself is in review upstream (#14006).
  • The session manager starts a headless GNOME session for each user who logs in, so there is no physical screen at all: GNOME draws only for us.
  • The client is FreeRDP’s SDL3 client, on Linux, macOS and Windows.

What broke, and where it is fixed

#What we sawCausePost
2sound crackles while the screen scrollsthe capture thread waited for every video encode while holding a lock the sound neededSound
3an old window title, a late clockMutter’s damage regions sometimes leave changed areas outGhosting
4lag that grows without end on a slow linkno flow control: frames were sent faster than the link could carry themFlow control
5one huge monitor instead of twothe server made one virtual monitor of the client’s bounding boxMulti-monitor
6the pointer is invisible, clicks still workMutter sends an empty cursor picture and never the real one againFix it or report it?

How we worked

Every problem went through the same steps:

  1. Read the live session, without touching it. Thread CPU times, the server’s own logs, the memory map. The session is someone’s working desktop; restarting it is a decision, not a debugging step.
  2. Reproduce it in a container. A headless GNOME 50 session, PipeWire, a test client and a scripted workload (a scrolling window, a 1 kHz tone, a window that opens and closes every 2 seconds). Each run is a script with a version number, and a broken script gets a new version beside the old one, so every number in these posts can be traced to a run.
  3. Measure before and after, in the same series. The host’s load changes during the day, so we only compare runs taken one after the other.
  4. Run it under AddressSanitizer and the unit tests before anything is installed.
  5. Install side by side, never over the running version, so going back is one line in a systemd drop-in.

The fixes are in our builds of FreeRDP, published by rdp-release-kit. Two of the problems are in GNOME, not in FreeRDP; the last post is about deciding what to do when the bug is someone else’s.