Displays, Resizing and Multiple Monitors
lamco-rdp-server shares the desktop you're already running, so what happens when a client resizes its window, or when the host has several monitors, depends on what the desktop allows. Where it can, the server changes the host output's mode to the client's size and puts it back when the client leaves. Where it can't, the desktop keeps its size and the client scales the picture.
Client resize, by desktop
| Desktop | What a client resize does |
|---|---|
| GNOME | A headless session's virtual monitor follows the client. A real monitor is mirrored at its own size, and the client scales it. |
| KDE Plasma 6 | Changes the output's mode where KWin allows a mode of that size, as on virtual GPUs: the server switches to an advertised mode of that size or adds a custom mode (KWin output management version 18 or later). Otherwise the client scales. The original mode and the user's custom-mode list come back when the client leaves. |
| COSMIC | Changes the output's mode on a COSMIC that carries pop-os/cosmic-comp#3085. Up to Pop!_OS 26.04's release COSMIC keeps a screen capture at the size it started with, so the server notices, puts the output back, says so once in the log, and leaves the size alone; the client scales. |
| Sway, Hyprland, niri, Wayfire, labwc 0.20 | Changes the output's mode, and puts it back when the client leaves. |
| labwc 0.8 (openSUSE Leap 16.0) | labwc 0.8.1 refuses every output mode change, so the desktop keeps the size it started with. |
| Budgie 10.10, LXQt | As the compositor underneath (labwc or Wayfire). |
On COSMIC, a resize can take six seconds now and then, long enough for the client to give up and reconnect. That's a fault in xdg-desktop-portal 1.21, fixed in 1.22.1; Known limits has the workaround.
A host with several monitors
Every output stays captured. display.monitors decides which of them a connection presents to its client:
"client", the default: As many outputs as the client announces monitors, the primary first. A client that announces none gets the primary alone."primary": The primary output alone, whatever the client has."all": Every output to every client, the behavior before 1.4.6.
Before 1.4.6 the server sized the picture to the box around every output, so a one-monitor client on a two-output host got a canvas twice its size, saw the left half, and never saw a window that opened on the second output. With "all", a client shown several outputs can point at all of them. The server doesn't act on a layout change that names more monitors later in a connection. Sway with two outputs was part of the 1.4.6 release test.
monitors = "client" # "client", "primary" or "all"
allow_resize = true
allowed_resolutions = [] # empty: any; e.g. ["1920x1080", "2560x1440"]
resize_drives_output_mode = true # change the host output's mode on a resize
dpi_aware = false # give the client's scale to a GNOME 50+ virtual monitor
Display scale
With display.dpi_aware = true, a headless GNOME session follows the client's display scale: The client's desktop scale becomes the virtual monitor's on GNOME 50 and later, at connection and when it changes. A real monitor keeps the local user's scale. A single monitor at any scale is right on GNOME; several scaled monitors on GNOME aren't tested.
Limits
- A monitor can be at most 3840x2400 pixels in area (9,216,000 pixels). A client's request for more is refused and the desktop keeps its size.
- The picture is always 32 bits per pixel. Set the client to 32-bit color.
- KWin's virtual output can deliver frames flipped and mirrored without saying so. With
display.frame_transform = "auto", the default, the server works out the orientation once and keeps the result under~/.local/share/lamco-rdp-server/calibration/. - HDR sources:
display.hdr_tone_mappingis off by default. Turn it on only if your compositor sends PQ or HLG pixels over the capture stream.