---
title: "Speed Up xrdp on Ubuntu 20.04 With Xorg: Tips That Work"
description: "Make xrdp on Ubuntu 20.04 with Xorg faster: turn off compositing and animations, pick the right colour depth and connection speed, and test each change."
url: https://devicetests.com/speeding-up-xrdp-ubuntu-20-04-xorg-tips-tricks
language: en
---

# Speeding Up xrdp on Ubuntu 20.04 with Xorg: Tips and Tricks

By Eric Buchanan · Updated November 4, 2026 · First published July 27, 2023

Short answer

Turn off **desktop compositing** and **animations**, then match the client to your network. On a fast local network, choose the **LAN** connection speed with 32-bit colour, so xrdp can use its faster RemoteFX codec. On a slow link, choose a slower speed and **16-bit colour**. Test after each change.

## Fast local network

RemoteFX

Connection speed **LAN (10 Mbps or higher)** and 32-bit colour. xrdp can then use RemoteFX, which is usually much smoother.

## Slow or distant link

Less data

A slower connection speed and **High Color (16 bit)**. Try both settings and compare: lower colour isn’t always faster.

> Ubuntu 20.04 is out of standard support
>
> Standard support for Ubuntu 20.04 ended on 31 May 2025. Ubuntu Pro extends security updates to 2030, free for personal use on up to five machines. A newer Ubuntu LTS also brings a newer xrdp. The tips below still apply.
>
> On **26.04**, the Ubuntu desktop runs only on Wayland, so use Xfce with xrdp there. A black screen after login has [its own fixes](https://devicetests.com/fixing-xrdp-black-screen-issue-ubuntu).

## Turn off compositing

Compositing adds effects such as transparency and shadows, which make every screen update heavier over RDP. In Xfce, run this in the remote session:

```
xfconf-query -c xfwm4 -p /general/use_compositing -s false
```

Some desktops, including GNOME Shell, need compositing, so use this with lighter desktops such as Xfce.

## Turn off GNOME animations

```
gsettings set org.gnome.desktop.interface enable-animations false
```

## Choose the connection speed and colour depth

In the Windows **Remote Desktop Connection** app:

1. Select **Show Options**.
2. On the **Display** tab, pick the colour depth: **Highest Quality (32 bit)** on a fast network, **High Color (16 bit)** on a slow one.
3. On the **Experience** tab, pick the connection speed: **LAN (10 Mbps or higher)** on a fast network.
4. Connect and compare.

xrdp starts RemoteFX only when three things are true: the connection type is LAN, the colour depth is 24-bit or more, and the client supports it. That’s why 16-bit colour and RemoteFX don’t go together. To cap the colour depth for everyone on the server, set `max_bpp=16` in `/etc/xrdp/xrdp.ini`.

## Raise the TCP send buffer (for experts)

xrdp’s sample config marks this setting “for experts”, and newer xrdp versions say it can hurt speed or waste memory. Try it only if the steps above aren’t enough, and keep it only if it helps.

1. Open the config: `sudo nano /etc/xrdp/xrdp.ini`
2. In the `[Globals]` section, remove the `#` before `tcp_send_buffer_bytes` and set a larger value, for example `tcp_send_buffer_bytes=4194304`.
3. Linux caps a program’s send buffer at `net.core.wmem_max`. Raise it: `sudo sysctl -w net.core.wmem_max=8388608`. To keep it after a restart, add `net.core.wmem_max=8388608` to `/etc/sysctl.conf`.
4. Restart xrdp: `sudo systemctl restart xrdp`

Don’t turn off encryption to gain speed: anyone on the network could then read the session.

## Still slow?

- **Latency** matters more than bandwidth for remote desktops. Run `ping` with the server’s address from your computer: steady low numbers are what you want.
- Check the server’s CPU and memory with `top` while you work.
- A lighter desktop such as Xfce is usually much faster over xrdp than GNOME.

## Sources

- [xrdp: xrdp.ini sample for v0.9.12 (Ubuntu 20.04)](https://github.com/neutrinolabs/xrdp/blob/v0.9.12/xrdp/xrdp.ini.in)
- [xrdp: xrdp.ini sample, current development branch](https://github.com/neutrinolabs/xrdp/blob/devel/xrdp/xrdp.ini.in)
- [Ubuntu manpage: xrdp.ini(5), Ubuntu 20.04](https://manpages.ubuntu.com/manpages/focal/man5/xrdp.ini.5.html)
- [xrdp: encoder source v0.9.12 (when RemoteFX is used)](https://github.com/neutrinolabs/xrdp/blob/v0.9.12/xrdp/xrdp_encoder.c)
- [Linux man-pages: socket(7), send buffer limit](https://man7.org/linux/man-pages/man7/socket.7.html)
- [Xfce: xfwm4 default settings](https://gitlab.xfce.org/xfce/xfwm4/-/raw/master/defaults/defaults)
- [Canonical: Ubuntu release cycle](https://ubuntu.com/about/release-cycle)
- [Ubuntu 26.04 release notes: Ubuntu Desktop runs only on Wayland](https://documentation.ubuntu.com/release-notes/26.04/summary-for-lts-users/)

## Test it yourself

Check your own device with a free test. It runs in your web browser.

- [My device](https://devicetests.com/my-device): See your system, browser, screen, graphics and memory in plain words, and copy them as one report.
- [Printer test page](https://devicetests.com/printer-test-page): Print a colour, black and white, grey or alignment page, or save it as a PDF, and read what it shows.
- [GPU test](https://devicetests.com/gpu-test): See which graphics chip your browser uses, what it supports, and how fast it draws.
