Configuration reference
All 202 keys in 33 sections of config.toml for lamco-rdp-server 1.4.6.
This page is generated from the release's own example-config.toml, which the project's tests check against the server's built-in defaults, so every key and default here is the one 1.4.6 uses. For what to set and why, start with the configuration guide.
The file lives at ~/.config/lamco-rdp-server/config.toml for a native user install, /etc/lamco-rdp-server/config.toml system-wide, and ~/.var/app/io.lamco.rdp-server/config/config.toml for the Flatpak; --config names another. A key the file leaves out takes its default. Commented out means the example ships the line as a comment: The value shown is the default or an example to copy. Not used marks keys this version reads but ignores, kept so older files still load.
Sections
Top level
| Key | Default or example | What it does |
|---|---|---|
| config_version | 2 commented out |
Configuration format version. Files without it are treated as version 1 and migrated on load. |
[server]
Server Settings
| Key | Default or example | What it does |
|---|---|---|
| listen_addr | "[::]:3389" | Listen address and port (format: IP:PORT). "[::]:3389" is the default and dual-stacks on Linux (net.ipv6.bindv6only=0): one socket accepts both IPv6 and IPv4 clients (IPv4 arrives as an IPv4-mapped address). Use "0.0.0.0:3389" to force IPv4-only. |
| max_connections | 10 | Not usedNOT USED. The server serves one session at a time, whatever this says; it is logged at startup and nothing else reads it. What a second connection does is decided by the authentication method. With auth_method = "none" the newcomer takes the desktop over, and the live client is told why it was disconnected. With NLA the newcomer takes over once it has authenticated; one that fails leaves the live session alone. With PAM the newcomer is refused at once and the live session is left alone. See GUI: Server tab, Maximum Connections. |
| session_timeout | 0 | Not usedSession timeout in seconds (0 = no timeout) Not used by this version of the server; a value set here is kept. |
| use_portals | true | Not usedUse XDG Desktop Portals for screen capture (recommended) Not used by this version of the server, which chooses portals or a direct protocol for each desktop itself; a value set here is kept. |
| view_only | false commented out |
View-only mode: video streaming only, no input injection or clipboard Useful for monitoring, presentations, or compositors without RemoteDesktop portal |
| desktop_session | "at-start" commented out |
When the server asks the desktop for its session, which is when a permission dialog can appear: "at-start" - as soon as the server starts (default) "on-connect" - when the first client has signed in; nothing is asked for or shared before anyone connects, and the session stays after that. Needs a sign-in (PAM or NLA) unless the server listens on localhost. Either way the server listens from the start, and a client sees a notice until the desktop is there. |
| release_when_idle | false commented out |
With desktop_session = "on-connect": let the desktop session go once no client has been connected for a minute, so the desktop shows no sharing indicator while nobody's connected, and ask again when the next one has signed in (silently, once the permission is remembered). Off by default: the session stays between connections, so a client that reconnects finds the desktop at once. |
| unlock_on_sign_in | true commented out |
When a client signs in while the desktop is locked, unlock it. GNOME stops sharing the screen while it's locked, so otherwise a lock, including the idle lock once nobody's connected, ends remote access until someone unlocks it at the computer. Only with a sign-in (PAM or an NLA password), and only at a sign-in: a client already connected when the screen locks is asked to reconnect and sign in. After "Switch user" a sign-in also switches back to this desktop from the login screen (never from another person's session, which keeps the screen until they switch back). While a client is connected the desktop doesn't idle or lock for idleness. |
| prefer_no_dialog | false commented out |
COSMIC only: use the route that never asks for permission (screen capture, virtual keyboard and a pointer through /dev/uinput) instead of COSMIC's RemoteDesktop portal and its dialog. Needs access to /dev/uinput; with several monitors COSMIC puts the pointer on the focused one. |
[security]
Security Configuration
| Key | Default or example | What it does |
|---|---|---|
| security_mode | "auto" | Security mode: "hybrid": NLA/CredSSP (Network Level Authentication) "tls": TLS only; credentials arrive in the Client Info PDU (PAM uses this) "auto": hybrid when credssp_credentials are configured and auth_method is not "pam", tls otherwise (default) "rdp" (alias "none"): Standard RDP Security, no TLS, no encryption. Required by Hyper-V Enhanced Session Mode (VMConnect speaks plaintext RDP). Only safe over hypervisor-isolated transports (vsock) or loopback. |
| cert_path | "/etc/lamco-rdp-server/cert.pem" | TLS certificate path (PEM format) Native (root): /etc/lamco-rdp-server/cert.pem Native (user): ~/.config/lamco-rdp-server/cert.pem Flatpak: ~/.var/app/io.lamco.rdp-server/config/config.toml |
| key_path | "/etc/lamco-rdp-server/key.pem" | TLS private key path (PEM format) Same directory as certificate |
| secret_portal | "auto" | Flatpak only: the Secret portal hands out a per-app secret, held by the desktop's keyring (GNOME Keyring, KDE Wallet), that restore tokens are encrypted with. "auto": ask and wait up to 5 s at startup; if the keyring is locked, start with the machine key and switch when it is unlocked (default) "always": ask and wait at startup until the keyring answers "never": don't ask (no unlock dialog); tokens use the machine key |
| enable_nla | false | Enable Network Level Authentication (requires auth_method = "pam") NLA authenticates before establishing the RDP session |
| auth_method | "pam" | Authentication method: "pam" - PAM authentication against system accounts (default) Only the desktop owner's account can sign in. A client that sends its password (e.g. xfreerdp /u /p) is signed in directly; one that sends none (mstsc without a saved password) gets a server-drawn login screen and sees nothing of the desktop until PAM accepts it. The login screen also handles extra PAM prompts such as one-time codes. Nothing is stored. Native installs only. The Flatpak and the Snap can't use PAM, so there "pam" means NLA: the desktop user's name and a password set in the GUI or with --set-nla-password. A native install with no PAM service file refuses to start. "none" - No authentication required Anyone who can reach the server can view your desktop. Appropriate for: personal use, trusted networks. |
| require_tls_13 | false | Require TLS 1.3 (more secure but may have compatibility issues) |
[security.credssp_credentials]
Pre-loaded CredSSP credentials (required for security_mode = "hybrid" without PAM). IronRDP's acceptor needs to know the expected password to run the NTLM challenge-response; without it the server errors out with "no credentials while doing credssp" and clients see an EOF mid-handshake. Leave this section out for tls-only operation. Only the username goes here. Store the password in the secret store (Secret Service, TPM, or machine-bound encrypted file) with: lamco-rdp-server --set-nla-password A password line here is still read, with a warning, but sits in plain text.
[video]
Video Configuration
| Key | Default or example | What it does |
|---|---|---|
| target_fps | 30 | Target frames per second |
| cursor_mode | "metadata" | How the capture carries the pointer: "metadata" (separate from the picture), "embedded" (drawn into it) or "hidden". [cursor] mode = "painted" or "hidden" decides this itself. Where the compositor doesn't offer the mode asked for, the server takes metadata, then embedded, then hidden. |
[audio]
Audio Configuration (RDPSND)
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable audio streaming to RDP client |
| codec | "auto" | Preferred codec: "opus", "pcm", "adpcm", "auto" - opus: High quality, low bandwidth (recommended) - pcm: Uncompressed, highest quality - adpcm: IMA ADPCM, about a quarter of PCM's bandwidth, for Windows clients without Opus; FreeRDP can't play it, so its clients get no sound with this - auto: Client chooses best supported codec |
| sample_rate | 48000 | Sample rate in Hz: 8000, 16000, 22050, 24000, 44100, 48000. The server offers this rate to the client beside 44100, so another rate works, but these are the usual ones. |
| channels | 2 | Channels: 1 (mono), 2 (stereo) |
| frame_ms | 20 | Frame duration in ms: 10, 20, 40, 60 (lower = less latency) |
| opus_bitrate | 64000 | OPUS bitrate in bps (32000-256000 typical) |
[audio_input]
Audio Input (Microphone Redirection, MS-RDPEAI)
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable microphone redirection from the RDP client to this session. The client still chooses whether to send its microphone. While it records, its microphone is the desktop's default microphone; your own default comes back when it stops, and a microphone you chose explicitly stays the default. |
| sample_rate | 48000 | Sample rate in Hz |
| channels | 1 | Channels: 1 (mono), 2 (stereo) |
| frame_ms | 20 | Frame duration in ms |
[capture]
Capture Protocol Configuration (portal-generic strategy)
These settings control which Wayland capture protocol is used when the server connects directly to the compositor (portal-generic strategy). They have no effect when using XDG Desktop Portal-based capture.
| Key | Default or example | What it does |
|---|---|---|
| protocol | "auto" | Capture protocol preference: "auto", "ext", "wlr" - "auto": Auto-detect best available (ext preferred, wlr fallback) - "ext": Prefer ext-image-copy-capture-v1 (staging standard) - "wlr": Prefer wlr-screencopy-unstable-v1 (wlroots) |
| allow_fallback | true | Allow fallback to alternative capture protocol if preferred is unavailable |
| gnome_record_mode | "auto" | How a monitor is recorded on GNOME: "auto", "area", or "monitor". Mutter stops recording a monitor stream entirely while a fullscreen or maximised surface is handed to direct scanout, so a video freezes the remote picture for its whole duration (GNOME/mutter#3903, fix in mutter!5276, not yet released). Recording an area of the stage instead re-paints rather than copying the scanout buffer, and keeps producing frames. "auto" records an area when the compositor gives us a rectangle and is driving a single monitor, and the monitor otherwise. An area's rectangle is fixed when the stream is created, so the server rebuilds the stream when the host's resolution, scale or layout changes. |
| gnome_virtual_is_platform | false | Mark a headless GNOME session's virtual monitor as part of the platform. Sets "is-platform" on Mutter's RecordVirtual, which Mutter documents as the output not being "interpreted as if the screen is shared, but more transparently as if it was a real monitor". For a headless server the virtual monitor genuinely is the session's only display, so that is the accurate description, and it suppresses the screen-sharing treatment GNOME otherwise applies. Off by default, which is the behaviour before this setting existed. It only affects headless sessions, since is-platform is a RecordVirtual property that monitor and area sessions never send. Mutter builds that predate the property ignore it rather than failing. |
| handshake_timeout_ms | 5000 | Ext-capture handshake timeout in milliseconds How long to wait for the compositor to deliver constraint events after requesting an ext-image-copy-capture session. Some compositors advertise the protocol but don't fully implement it (e.g., Hyprland 0.54+). Set to 0 to disable the timeout. |
[input]
Input Configuration
| Key | Default or example | What it does |
|---|---|---|
| input_protocol | "auto" | Input injection protocol: "auto" (compositor-preferred), "libei" (Wayland native), or "wlr" (wlr-virtual-pointer/keyboard, wlroots compositors only) |
| keyboard_layout | "auto" | Keyboard layout: "auto" (detect from client) or an XKB layout name, such as "us", "gb", "de", "fr", "es", "it", "pt", "nl", "pl", "ru", "jp", "kr" or "cn" |
| enable_touch | false | Enable touch input support |
[clipboard]
Clipboard Configuration
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable clipboard synchronization |
| max_size | 10485760 | Maximum clipboard size in bytes (10 MB default) |
| rate_limit_ms | 200 | Rate limit between clipboard operations in ms |
| allowed_types | [] | Kinds of content that cross the connection, in both directions, named by MIME type (empty = everything). Each entry admits its kind: text/plain for plain text, text/html, text/rtf, any image/ type for images (they go as a group, since the server converts between image formats) and text/uri-list for files. A kind with no entry doesn't cross. Example: ["text/plain", "text/html", "image/png"] |
| protocol | "auto" | Clipboard protocol preference: "auto", "ext", "wlr" - "auto": Auto-detect best available (ext preferred, wlr fallback) - "ext": Prefer ext-data-control-v1 (staging standard) - "wlr": Prefer wlr-data-control-v1 (wlroots) Only relevant for portal-generic strategy (direct Wayland access). |
| allow_fallback | true | Allow fallback to alternative clipboard protocol if preferred is unavailable |
| file_transfer_mode | "auto" commented out |
File transfer mode: "auto", "fuse", "staging", "portal" - "auto": FUSE in native mode, staging in Flatpak - "fuse": Force FUSE virtual filesystem (on-demand fetch, native only) - "staging": Force staging download (download all upfront, universal) |
| file_transfer_download_dir | "~/Downloads" commented out |
Download directory for staging file transfer |
| pasted_files | "session" | Where files pasted from the client are kept, in every package: "session": in memory, in your runtime directory (/run/user/<uid>), readable only by you and emptied at logout; nothing pasted reaches the disk (default) "disk": in your cache folder, so pasted files outlive a logout |
| pasted_file_hours | 24 | Hours a pasted file is kept (default 24). 0 keeps it until logout with "session", and with no time limit with "disk". Nothing is deleted when the client disconnects, when a new paste replaces the clipboard or when the server restarts. |
| strategy_override | "" commented out |
Strategy override (for development/testing): "portal", "mutter", "data_control", "wl_clipboard" |
| kde_syncselection_hint | false | [EXPERIMENTAL] Include x-kde-syncselection hint for Klipper When enabled on KDE Plasma, adds "application/x-kde-syncselection" to clipboard announcements. This causes Klipper to skip processing entirely, preventing takeover. WARNING: This MIME type is for Klipper's internal use. Using it may: - Prevent Klipper features (clipboard history, URL actions) - Interfere with KDE's clipboard synchronization - Break in future Plasma versions RECOMMENDED: Leave disabled (false) and use re-announce mitigation instead. Only enable for testing or if re-announce doesn't work. Default: false |
[multimon]
Multi-Monitor Configuration
Not used by this version of the server (display.monitors decides what a client gets); values set here are kept.
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable multi-monitor support |
| max_monitors | 4 | Maximum number of monitors to share |
[performance]
Performance Configuration
| Key | Default or example | What it does |
|---|---|---|
| encoder_threads | 0 | Encoder threads (0 = auto-detect) |
| network_threads | 0 | Not usedNetwork threads (0 = auto-detect) Not used by this version of the server; a value set here is kept. |
| buffer_pool_size | 16 | Not usedFrame buffer pool size Not used by this version of the server; a value set here is kept. |
| zero_copy | true | Let capture take DMA-BUF buffers from the compositor where the GPU supports it. false forces memory buffers (MemFd), for a GPU or driver whose DMA-BUF gives no or broken frames. |
| health_aware_backoff | true | Cap adaptive FPS to adaptive_fps.min_fps while live session health shows the platform is struggling (a sustained direct-scanout freeze or a frame-ack stall). Has no effect while healthy. A software-rendered compositor on its own does not cap the rate. |
| idle_capture_interval_ms | 100 | While a compositor that keeps sending frames shows a still desktop, take one captured frame per this many milliseconds instead of every frame, so the frames nothing changed in are never copied or compared. Capture returns to full rate at the first change and at any client input. 0 takes every frame. |
[performance.adaptive_fps]
Adaptive FPS - dynamically adjust framerate based on activity
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | See the section note and the neighboring keys. |
| min_fps | 5 | See the section note and the neighboring keys. |
| max_fps | 30 | See the section note and the neighboring keys. |
| high_activity_threshold | 0.3 | Activity thresholds (fraction of screen changed) |
| medium_activity_threshold | 0.1 | See the section note and the neighboring keys. |
| low_activity_threshold | 0.01 | See the section note and the neighboring keys. |
[performance.latency]
Latency tuning
| Key | Default or example | What it does |
|---|---|---|
| mode | "balanced" | Mode: "interactive" (gaming), "balanced", "quality" |
| interactive_max_delay_ms | 16 | Not usedThe five values below are not used by this version of the server, which uses fixed values per mode; values set here are kept. |
| balanced_max_delay_ms | 33 | See the section note and the neighboring keys. |
| quality_max_delay_ms | 100 | See the section note and the neighboring keys. |
| balanced_damage_threshold | 0.02 | See the section note and the neighboring keys. |
| quality_damage_threshold | 0.05 | See the section note and the neighboring keys. |
[logging]
Logging Configuration
| Key | Default or example | What it does |
|---|---|---|
| level | "info" | Log level: "trace", "debug", "info", "warn", "error" |
| log_dir | "/var/log/lamco-rdp-server" commented out |
Log directory (optional, logs to stderr if not set) Native (root): /var/log/lamco-rdp-server Native (user): ~/.local/share/lamco-rdp-server/logs Flatpak: ~/.var/app/io.lamco.rdp-server/data/logs |
| metrics | true | Not usedNot used by this version of the server; a value set here is kept. Enable metrics collection |
[egfx]
EGFX Configuration (Graphics Pipeline Extension)
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable EGFX channel for improved graphics |
| h264_level | "auto" | Not usedH.264 profile level: "auto", "4.1", "4.2", "5.0", "5.1" Not used by this version of the server; a value set here is kept. |
| h264_bitrate | 5000 | H.264 bitrate in kbps |
| zgfx_compression | "never" | ZGFX compression: "never", "auto", "always" |
| max_frames_in_flight | 3 | Maximum frames in flight before waiting for ACK |
| frame_ack_timeout | 5000 | Frame acknowledgement timeout in ms |
| periodic_idr_interval | 5 | IDR frame interval for recovery (seconds) |
| codec | "auto" | Codec selection: "avc420", "avc444", "auto" |
| h264_content_mode | "camera" | OpenH264 content tuning (software encoder only): "camera" - keeps AVC444's switches between the main and aux pictures as P-frames, so far fewer keyframes (default). "screen" - tuned for text and UI, but codes every such switch as a keyframe. |
| qp_min | 10 | Quality parameters (lower = better quality, larger files) |
| qp_max | 40 | See the section note and the neighboring keys. |
| qp_default | 23 | Not usedNot used by this version of the server; a value set here is kept. |
| avc444_enabled | true | AVC444 for full chroma (better color accuracy) |
| avc444_aux_bitrate_ratio | 0.5 | Not usedNot used by this version of the server. One encoder serves both AVC444 streams. A value set here is kept. |
| color_matrix | "auto" | See the section note and the neighboring keys. |
| color_range | "auto" | See the section note and the neighboring keys. |
| avc444_enable_aux_omission | true | Aux omission optimization |
| avc444_max_aux_interval | 30 | See the section note and the neighboring keys. |
| avc444_aux_change_threshold | 0.05 | Fraction of the frame (16x16 blocks) whose colour detail must change before the aux picture is sent early; smaller changes wait for avc444_max_aux_interval. |
| avc444_force_aux_idr_on_return | false | Must be false: forcing an IDR on aux-stream return only makes sense with a second encoder instance to force. A single encoder can't honor this. |
[egfx.encoding_adaptation]
Encoding adaptation: closed-loop QP adjustment from EGFX client feedback. When enabled, the server dynamically adjusts H.264 quality (QP) based on client decode queue depth. This prevents overwhelming slow clients while maximizing quality for fast clients.
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Adapt QP and bitrate to client feedback, round-trip time and bandwidth |
| base_qp | 22 | Base QP value (used when queue is normal, replaces hardcoded default) |
| min_qp | 18 | Minimum QP (highest quality) |
| max_qp | 42 | Maximum QP (lowest quality, used under severe backpressure) |
| evaluation_interval_ms | 500 | Minimum interval between adaptation evaluations (ms) Prevents rapid oscillation, lower values are more responsive but riskier |
| moderate_queue_threshold | 3 | Queue depth threshold for moderate backpressure (QP +4) |
| severe_queue_threshold | 6 | Queue depth threshold for severe backpressure (QP +10) |
| base_bitrate_kbps | 5000 | Starting bitrate before the first network measurement arrives (kbps) |
| min_bitrate_kbps | 1000 | Bitrate floor, the AIMD controller never adapts below this (kbps) |
| max_bitrate_kbps | 10000 | Bitrate ceiling, the AIMD controller never adapts above this (kbps) |
| bandwidth_window_samples | 8 | Measurement windows kept for the bandwidth ceiling (higher = more stable, slower to detect a real drop) |
| congestion_signal | "rtt" | What counts as congestion and cuts the bitrate: "rtt" - round trip stays above the floor and 1.5x the learned baseline for congestion_persistence evaluations in a row "client-bandwidth" - never cut on round trip; only the client's bandwidth estimate caps the bitrate |
| congestion_persistence | 3 | Evaluations in a row (each evaluation_interval_ms) the round trip must stay high before it counts as congestion |
| congestion_rtt_floor_ms | 20 | Round trips below this (ms) never count as congestion |
| bandwidth_min_samples | 4 | Bandwidth measurement windows needed before the client's bandwidth estimate is used at all. With congestion_signal = "rtt" the estimate only caps the bitrate while the link is congested, since it measures what was sent |
[egfx.multicodec]
Mixed-codec frames: text and flat UI go lossless (ClearCodec) while motion and photos go H.264, in the same frame. Needs a client at EGFX 10.4 or later (mstsc, Windows App, xfreerdp3 with /gfx:AVC444); others keep receiving H.264 only. When on, the H.264 part is AVC420 even if AVC444 is available. Default off while it is being validated.
| Key | Default or example | What it does |
|---|---|---|
| enabled | false | See the section note and the neighboring keys. |
| h264_enter_ms | 500 | A tile that keeps changing this long moves to H.264 ... |
| h264_leave_ms | 1000 | ... and returns to lossless after this long without changes. |
| large_change_percent | 25 | If at least this share of the screen changes at once (window switch, scrolling), the change goes out as H.264. |
| lossless_tile_max_bytes | 6144 | A changed 64x64 tile whose lossless encoding is larger than this goes to H.264 instead (photos, gradients). |
| refresh_kbps | 2000 | Bandwidth for replacing settled H.264 tiles with lossless ones, text first. |
| settle_ms | 200 | A tile must be unchanged this long (and at least two round trips) before it is refreshed. |
[damage_tracking]
Damage Tracking Configuration
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable damage tracking (highly recommended) |
| method | "hybrid" | Where damage regions come from: "hybrid": the compositor's damage hints, cross-checked every ~2 s against a pixel diff; hints that keep disagreeing are dropped for the rest of the connection "pipewire": always trust the compositor's hints (no cross-check) "diff": ignore compositor hints and pixel-diff every frame Frames that arrive without hints are pixel-diffed in every mode. |
| tile_size | 16 | Tile size for pixel-diff damage detection. 16 matches FreeRDP and catches single-character edits; 32 or 64 cut the diff cost on large screens at the price of coarser regions. |
| diff_threshold | 0.01 | Difference threshold to trigger update |
| pixel_threshold | 1 | Pixel threshold for change detection |
| merge_distance | 16 | Merge nearby damage regions within this distance |
| min_region_area | 64 | Minimum area to consider as damage |
| compositor_hint_distrust_threshold_pp | 15.0 | Percentage-point divergence between a compositor's damage-region hint and the periodic pixel-diff calibration probe above which one sample counts as "high divergence" |
| compositor_hint_distrust_consecutive_samples | 3 | Consecutive high-divergence samples before compositor damage hints are distrusted for the rest of the connection (falls back to pixel-diff) |
[hardware_encoding]
Hardware Encoding Configuration
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable hardware encoding (VA-API, NVENC, Vulkan Video). Falls back to software OpenH264 when no usable encoder is found. |
| vaapi_device | "auto" | VA-API device: "auto" uses the render node found with H.264 encode at startup, or give a path such as "/dev/dri/renderD129" |
| fallback_to_software | true | Fall back to software if hardware fails |
| quality_preset | "balanced" | Quality preset: "speed", "balanced", "quality" |
| prefer_nvenc | true | Legacy and ignored: backend_priority below decides the order |
| backend_priority | [] | Hardware backends in the order they are tried; the first that opens wins. Empty (the default) is automatic: the encoder of the GPU vendor found is tried first (NVIDIA nvenc, Intel vaapi, AMD vulkan-video), then the others. Give a list such as ["vaapi", "nvenc"] to pin an order. |
| vulkan_device | "auto" | Vulkan Video device: "auto" (first adapter that can encode), "discrete", "integrated", an index into the encode-capable adapters (listed in the debug log), or part of an adapter's name, e.g. "RTX 4060". A value that matches nothing fails Vulkan Video and the next backend in backend_priority is tried. |
[display]
Display Configuration
| Key | Default or example | What it does |
|---|---|---|
| allow_resize | true | Allow client to request resize |
| allowed_resolutions | [] | Allowed resolutions (empty = any) Example: ["1920x1080", "2560x1440", "3840x2160"] |
| dpi_aware | false | Give a client's display scale to the desktop it's viewing. Only a GNOME 50 or later virtual monitor (a headless session) can take one; on a real monitor the scale is the local user's and stays as it is. |
| frame_transform | "auto" | Frame transform applied to captured frames: "auto", "none", or an explicit rotation/flip (compositor-dependent) |
| color_management | true | Read per-output HDR/color state via wp-color-management (for HDR-aware encoding decisions). No effect if the compositor lacks the protocol. |
| output_management | true | Read wlroots output heads/modes via zwlr-output-management (wlroots compositors only). |
| resize_drives_output_mode | true | On a client resize, drive a real wlroots output-mode change so the source output physically switches resolution (needs output_management). If false, only the capture is re-created. |
| hdr_tone_mapping | false | Apply HDR->SDR tone mapping to captured frames when the source is HDR. Off by default: enable only if your compositor sends PQ/HLG pixels over the capture stream (many tone-map to SDR themselves, where this would wash the image out). |
| monitors | "client" | Which of the host's outputs a connection presents to its client. Every output stays captured either way. "client" (default): as many outputs as the client announces monitors, the primary first. A client that announces none gets the primary alone. A client given every output of a multi-output host would get a canvas twice its size, with the second output past its right edge. "primary": the primary output alone, whatever the client has. "all": every output to every client. |
[advanced_video]
Advanced Video Configuration
Not used by this version of the server; values set here are kept.
| Key | Default or example | What it does |
|---|---|---|
| enable_frame_skip | true | Enable frame skipping under load |
| scene_change_threshold | 0.7 | Scene change threshold for IDR frames |
| intra_refresh_interval | 300 | Intra refresh interval (frames) |
| enable_adaptive_quality | false | Enable adaptive quality based on network |
[cursor]
Cursor Configuration
| Key | Default or example | What it does |
|---|---|---|
| mode | "metadata" | How the pointer reaches the client: "metadata" (the client draws it), "painted" (the desktop draws it into the picture, the client shows none of its own), "hidden" or "predictive". Painted needs a capture that can draw the pointer; where it can't, the server sends it as metadata and says so. |
| auto_mode | false | Switch to predictive mode while latency exceeds the threshold below. Off by default: clients that draw the cursor themselves already show it where the user points, and predicted positions pull it back. |
| predictive_latency_threshold_ms | 100 | Latency threshold for predictive mode (ms) |
| cursor_update_fps | 60 | Cursor update rate (Hz) |
[cursor.predictor]
Cursor predictor settings (for predictive mode)
| Key | Default or example | What it does |
|---|---|---|
| history_size | 8 | See the section note and the neighboring keys. |
| lookahead_ms | 50.0 | See the section note and the neighboring keys. |
| velocity_smoothing | 0.4 | See the section note and the neighboring keys. |
| acceleration_smoothing | 0.2 | See the section note and the neighboring keys. |
| max_prediction_distance | 100 | See the section note and the neighboring keys. |
| min_velocity_threshold | 50.0 | See the section note and the neighboring keys. |
| stop_convergence_rate | 0.5 | See the section note and the neighboring keys. |
[video_pipeline.processor]
Video Pipeline Configuration (Advanced)
Not used by this version of the server; values set in these three sections are kept.
| Key | Default or example | What it does |
|---|---|---|
| target_fps | 30 | See the section note and the neighboring keys. |
| max_queue_depth | 30 | See the section note and the neighboring keys. |
| adaptive_quality | true | See the section note and the neighboring keys. |
| damage_threshold | 0.05 | See the section note and the neighboring keys. |
| drop_on_full_queue | true | See the section note and the neighboring keys. |
| enable_metrics | true | See the section note and the neighboring keys. |
[video_pipeline.dispatcher]
| Key | Default or example | What it does |
|---|---|---|
| channel_size | 30 | See the section note and the neighboring keys. |
| priority_dispatch | true | See the section note and the neighboring keys. |
| max_frame_age_ms | 150 | See the section note and the neighboring keys. |
| enable_backpressure | true | See the section note and the neighboring keys. |
| high_water_mark | 0.8 | See the section note and the neighboring keys. |
| low_water_mark | 0.5 | See the section note and the neighboring keys. |
| load_balancing | true | See the section note and the neighboring keys. |
[video_pipeline.converter]
| Key | Default or example | What it does |
|---|---|---|
| buffer_pool_size | 8 | See the section note and the neighboring keys. |
| enable_simd | true | See the section note and the neighboring keys. |
| damage_threshold | 0.75 | See the section note and the neighboring keys. |
| enable_statistics | true | See the section note and the neighboring keys. |
[udp_transport]
UDP Sideband Transport (MS-RDPEUDP/MS-RDPEMT multitransport)
| Key | Default or example | What it does |
|---|---|---|
| enabled | false | Advertise and accept the UDP sideband transport alongside the main TCP connection. Falls back to TCP-only if the client can't establish it. Only the picture (the graphics pipeline) moves to UDP; sound, keyboard, mouse and the clipboard stay on TCP. The log says "The picture now goes over the UDP side channel" when a session moves. A firewall must let UDP through on the same port as TCP. |
| bind_addr | "[::]:3389" commented out |
UDP bind address (format: IP:PORT). Defaults to the main server's listen address with the same port when unset. |
[notifications]
Notification Configuration (portal notifications, Snap and Flatpak only)
| Key | Default or example | What it does |
|---|---|---|
| on_error | true | Notify on server errors |
| on_cert_expiry | true | Not usedNotify on TLS certificate expiry warnings Not used by this version of the server; a value set here is kept. |
| on_connect | true | Notify when a client connects to this desktop and when it leaves |
[monitoring]
Monitoring and Metrics Configuration
| Key | Default or example | What it does |
|---|---|---|
| enabled | true | Enable performance snapshot collection and D-Bus PerformanceUpdated signals |
| snapshot_interval_secs | 5 | Interval for periodic performance snapshots to D-Bus subscribers (seconds) |
| metrics_endpoint | false | Serve Prometheus /metrics and a JSON /health over HTTP at metrics_bind. Anyone who can reach the address can read them, so keep it on loopback unless a scraper elsewhere needs it. |
| metrics_bind | "127.0.0.1:9100" | See the section note and the neighboring keys. |
[gui_state]
GUI State (Persisted between sessions)
These settings are managed by the GUI and persist UI preferences. You generally don't need to edit these manually.
| Key | Default or example | What it does |
|---|---|---|
| expert_mode | false | Enable expert mode (shows advanced options in all tabs) |
| egfx_expert_mode | false | EGFX expert mode (shows all EGFX parameters) |
| video_pipeline_expanded | false | Expanded section states (true = expanded, false = collapsed) |
| adaptive_fps_expanded | true | See the section note and the neighboring keys. |
| latency_expanded | true | See the section note and the neighboring keys. |
| damage_tracking_expanded | true | See the section note and the neighboring keys. |
| hardware_encoding_expanded | true | See the section note and the neighboring keys. |
| display_expanded | true | See the section note and the neighboring keys. |
| advanced_video_expanded | false | See the section note and the neighboring keys. |
| cursor_expanded | true | See the section note and the neighboring keys. |
| cursor_predictor_expanded | false | See the section note and the neighboring keys. |
| multimon_expanded | false | See the section note and the neighboring keys. |
| logging_expanded | false | See the section note and the neighboring keys. |
| log_auto_scroll | true | Log viewer preferences |
| log_filter_level | "info" | See the section note and the neighboring keys. |
| close_stops_server | true | Close behavior: true = closing GUI stops server (default) false = GUI closes but server keeps running (detach mode) |
| start_at_login | false | Whether the GUI has set the server to start at login (it arranges the start itself; changing this line alone starts nothing) |
[diagnostics]
Diagnostics (troubleshooting only, not exposed in the GUI)
These carry real cost: decode_self_test adds 10-20% CPU overhead and defeats adaptive FPS; dump_h264_to has no size cap and can fill a disk if left on. Enable only while actively debugging an encoder issue, then turn back off.
| Key | Default or example | What it does |
|---|---|---|
| decode_self_test | false | Verify encoder output by decoding every frame server-side |
| dump_h264_to | "/tmp/lamco-rdp-server-h264.dump" commented out |
Write the raw H.264 bitstream to this file for offline inspection (with AVC444, the second view goes to the same name with .aux added) |
[capabilities]
Capabilities, automated mitigations for detected capability risks
| Key | Default or example | What it does |
|---|---|---|
| auto_mitigate_gpu_mismatch | true | When capability probing detects the hardware encoding GPU differs from the desktop's display GPU (the "Hardware encoding GPU" degradation), automatically apply GSK_RENDERER=cairo -- the known workaround for the GTK4 crash risk that mismatch causes -- via an environment.d drop-in (future logins) and `systemctl --user set-environment` (current session). Disable if you manage GSK_RENDERER yourself. |