Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

XRDP to Ubuntu Is Too Slow? How to Fix It

If XRDP to Ubuntu is too slow, first find out whether the delay comes from the network, the Ubuntu desktop, or the server itself; then reduce desktop effects and display size, and use a lightweight session such as XFCE if needed. These changes usually help more than random XRDP configuration edits, and they let you address the actual bottleneck without weakening security.

Work out what is slow

Notice when the lag happens. If typing is delayed, windows take a long time to open, or the whole session pauses, the server may be overloaded or the connection may have high latency. If typing is responsive but scrolling, animations, or video look choppy, the desktop may be sending more visual updates than the connection can handle. A slow login followed by a responsive desktop can instead point to session startup or profile problems.

Compare the same XRDP session from a second device or network, if possible. Also try connecting to the Ubuntu machine from the same local network. A connection that is smooth locally but slow over the internet points toward network distance, congestion, or packet loss rather than Ubuntu’s desktop configuration.

  • Check latency with ping to the Ubuntu host. Large or inconsistent response times can make remote control feel sluggish even when download speed looks good.
  • Watch CPU and memory use on Ubuntu while reproducing the lag with top or htop. A full CPU core or exhausted memory is a useful clue.
  • Compare a simple task, such as typing in a text editor, with a visually demanding one, such as scrolling a large page. The difference helps separate input delay from graphics updates.

Check Ubuntu’s load and available resources

XRDP creates a graphical session on the Ubuntu computer, so the machine must do more than accept a network connection. It has to run the desktop, applications, and session processes. On a small virtual machine, an older computer, or a host running other workloads, CPU contention and swapping can make every remote action slow. Check resource use during the slowdown, not only after disconnecting.

Use free -h to see whether memory is scarce and df -h to check that the filesystem is not full. A nearly full disk can cause general system problems, while insufficient RAM can make Ubuntu move data to swap and respond slowly. If CPU usage is high, identify the process responsible before changing XRDP settings. A browser with many tabs or a background update may be the real cause.

For a virtual machine, check its assigned vCPUs and RAM as well as the host’s load. Adding resources may help when the machine is genuinely constrained, but more CPU will not fix a poor Wi-Fi link or high network latency. Likewise, adding memory is not a substitute for reducing a desktop that is rendering unnecessary effects.

Try a lighter desktop session

Ubuntu’s standard GNOME desktop can use more resources than a lightweight desktop, especially on older hardware or a small virtual server. XFCE is a common choice for XRDP because it has a simpler interface and typically requires less processing for desktop effects. The best choice depends on what you need: a full GNOME environment may be worth keeping if it is responsive enough, while a remote administration session often does not need every visual feature.

On Ubuntu, you can install XFCE and the XRDP Xorg integration with:

sudo apt update
sudo apt install xrdp xorgxrdp xfce4

For a user who wants XFCE in their XRDP session, a common per-user setting is to put xfce4-session in ~/.xsession. For example, run printf '%s\n' xfce4-session > ~/.xsession as that user, then disconnect and start a fresh session. Session startup can vary with Ubuntu releases and local configuration, so back up any existing ~/.xsession file first. Do not overwrite a custom startup file without checking what it does.

The XRDP login screen commonly offers an Xorg session type, and the xorgxrdp package provides the Xorg components used for that kind of session. This is separate from choosing GNOME or XFCE as the desktop environment. If the session fails to start after changing the desktop, check the XRDP and session logs and restore the previous startup configuration rather than repeatedly reinstalling packages.

Reduce resolution and visual effects

A large remote desktop has more pixels to update. If you connect at 3840 × 2160, try a smaller resolution such as 1920 × 1080 or 1600 × 900. The improvement is most noticeable when scrolling, moving windows, or using applications that redraw frequently. A smaller window on the client may also help, depending on how the client negotiates its session size.

Turn off desktop animations, transparency, and compositing effects in the desktop’s settings when those options are available. These effects can consume server resources and create frequent screen changes that must be represented in the remote session. A static wallpaper is generally less demanding than an animated background. These adjustments trade appearance for responsiveness; they do not make the network itself faster.

Some XRDP versions and client combinations expose color-depth or image-quality controls. If your setup provides them, testing a lower color depth can reduce the amount of visual data, though it may make gradients and images look worse. XRDP configuration options differ between releases, so check the installed version’s configuration and documentation before changing a setting such as max_bpp. Make a backup of configuration files before editing, and change one option at a time so you can tell whether it helped.

Look for network latency, loss, and congestion

Remote desktop performance depends on responsiveness, not just advertised bandwidth. A high-latency or unstable connection can make every click feel late even if a speed test reports a high download rate. Wi-Fi interference, a busy home connection, a long route between countries, and packet loss can all affect the experience. If possible, test with wired Ethernet or move closer to the access point, and compare at a time when the network is less busy.

Also check the client side. A VPN may add a long route or processing overhead, but it may be necessary for safe access; test its effect rather than disabling it on an untrusted network. If the client offers graphics quality, compression, or bandwidth options, test its balanced or lower-bandwidth mode. Names and available controls differ among Windows, macOS, and Linux clients.

XRDP compression can help when the link is constrained, but compression also uses CPU. On a slow server, more compression may shift the bottleneck from the network to the processor. That is why a smaller resolution and simpler desktop are useful first tests: they reduce visual work without requiring assumptions about which compression settings your installed XRDP version supports.

Review XRDP configuration carefully

Ubuntu’s XRDP configuration is commonly stored under /etc/xrdp/, including xrdp.ini and session-related settings. The available options and their defaults can change across XRDP versions and packaging. Before editing, record the installed version, copy the file you plan to change, and consult the comments in that file or documentation for that version. Avoid pasting tuning snippets from an unrelated release.

After a configuration change, a service restart may interrupt connected sessions. If it is safe to do so, restart XRDP with sudo systemctl restart xrdp, then reconnect and compare the result. Check service status with systemctl status xrdp. Do not lower encryption or disable security features in an attempt to gain speed: those changes rarely solve the underlying problem and can expose credentials or session data.

Use logs when a change makes the session worse or prevents login. Depending on the installation, useful sources include sudo journalctl -u xrdp -u xrdp-sesman, files under /var/log/xrdp/, and Xorg session logs in the user’s home directory. Error messages about session startup, missing desktop commands, or Xorg modules point toward a different issue than a healthy session that merely redraws slowly.

Check common causes beyond graphics

Not every slow XRDP session is a rendering problem. A session that freezes during file transfers may be limited by disk speed or by client features such as drive redirection. Clipboard synchronization and audio redirection can add overhead or behave differently across clients. Disable optional redirection features one at a time as a diagnostic test, especially if the problem began after enabling them.

Check whether the remote session is starting extra applications, restoring a large desktop session, or running startup scripts that wait on unavailable network drives. A clean test account can help distinguish a user-profile problem from a system-wide one, but do not delete or reset the original profile as a first step. Also consider whether the Ubuntu host is using a desktop session that conflicts with another active local session; logging out and starting a fresh XRDP session can be a useful test, though it will close that user’s remote work.

Keep remote access secure while troubleshooting

XRDP commonly listens on TCP port 3389. Exposing that port directly to the public internet invites login attempts and is not a performance fix. Prefer access through a trusted VPN or another controlled network path, use strong account passwords, apply Ubuntu security updates, and restrict access with a firewall where practical. Do not weaken authentication or encryption to try to make the desktop feel faster.

When changing firewall or network rules, make sure you have another way to reach the server in case you lock yourself out. If it is a work or shared system, coordinate changes with its administrator. Performance tuning should preserve the protections around the account and the data visible in the remote session.

Frequently Asked Questions

Why is XRDP slow even though my internet speed is fast?
Speed tests measure throughput, but remote desktop also depends on latency, packet loss, server load, and how quickly the desktop redraws. Test the connection locally and check Ubuntu’s CPU and memory use to narrow down the cause.

Is XFCE faster than GNOME over XRDP?
XFCE is generally lighter and can feel more responsive on limited hardware, but results depend on the machine, applications, and session configuration. Try it in a separate or carefully backed-up user setup before deciding to replace your usual desktop.

Does lowering the screen resolution help XRDP?
Often, especially when the current session is large or the connection has limited capacity. A lower resolution means fewer pixels to update, though the visible image will be less detailed.

Should I disable encryption to speed up XRDP?
No. Disabling security is not a sensible general performance fix and can put login credentials and session data at risk. Reduce visual workload, check network quality, and diagnose server load instead.

Why does XRDP show a black screen or fail after I install XFCE?
The desktop startup configuration may be wrong, or the required session command or Xorg component may be missing. Check the XRDP and Xorg logs, verify the session command, and restore your saved configuration if necessary.

Do I need to restart XRDP after every change?
Only changes to service configuration may require a restart, and restarting can disconnect active sessions. Desktop settings and a user’s session startup changes usually need a new login; check the relevant setting’s documentation before restarting services.

XRDP to Ubuntu Is Too Slow? How to Fix It
Scroll to top