20

using xrdp with the Xorg window system to connect from win10 to ubuntu 20.04 in my local network. The connection is terrible slow. Compare to that a standard rdp connection (win10 to win10) via vpn through the internet is much faster then my local xrdp.

/etc/xrdp/xrdp.ini
max_bpp=32

After login via xrdp my desktop environment is:

~$ echo $XDG_CURRENT_DESKTOP
GNOME
Murmulodi
  • 727

6 Answers6

14

Make sure to choose your connection speed in your RDP client experience tab. Set it to "LAN (10Mbits or higher)". This enables the RFX codec.

Please see https://github.com/neutrinolabs/xrdp/discussions/2136

7

Assuming you use Xfce4, try disabling compositing with

$ xfconf-query --channel=xfwm4 --property=/general/use_compositing --type=bool --set=false --create

You could make this setting permanent in xorg.conf with

Section "Extensions"
    Option "Composite" "Disable"
EndSection

You can also work this out via GUI (install it if need be)

$ xfwm4-tweaks-settings

If yo use KDE, try disabling compositor as well, Settings -> Display and Monitor -> Compositor.

Also, try using a lower number of colors in the configuration of the client (16 bits instead of 32 bits).

Also, try these options in /etc/xrdp/xrdp.ini.

Related:

  1. https://unix.stackexchange.com/questions/22077/xfce-or-pure-x11-commands-toggle-compositing-immediately-without-restarting-x
  2. https://unix.stackexchange.com/questions/4282/disable-composite-without-restarting-x
  3. https://superuser.com/questions/1539900/slow-ubuntu-remote-desktop-using-xrdp
  4. https://owendavies.net/articles/install-desktop-gui-on-ubuntu-server/
  5. https://github.com/neutrinolabs/xrdp/issues/1600
  6. xrdp and xfce4 Ubuntu > 18.04 Unusable
  7. https://github.com/neutrinolabs/xrdp/issues/501#issuecomment-262905321
4

After doing a lot of research, I got good performance with these settings:

  • xfce4
  • xorgxrdp-glamor

In /etc/xrdp/sesman.ini and /etc/xrdp/xrdp.ini:

  • Policy=UBDI
  • max_bpp=16
  • xserverbpp=16
  • use_compression = yes
  • crypt_level=none
  • KillDisconnected=true
  • DisconnectedTimeLimit=0
  • tcp_send_buffer_bytes=4194304

Tweak for TCP (2x request buffer size):

  • sudo sysctl -w net.core.wmem_max=8388608

see https://github.com/neutrinolabs/xrdp/issues/1483

Disable compositor:

  • xfconf-query -c xfwm4 -p /general/use_compositing -t bool -s false
MarcosD
  • 56
2

Setting "LAN (10Mbits or higher)" in the RDP Experience Tab solved the problem of slowness. Thank you.

0

For XRDP you will want to turn off Gnome's Animations:

Method 1 : Console

From console run the following as your current user:

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

Method 2 : Gnome Tweaks

Install the Gnome Tweaks tool:

sudo apt install gnome-tweak-tool

Run the Tweaks application which was installed.

  • Now use the hourglass at the top-left of Tweaks app and search for: animations
  • Switch Animations to off

See also: https://www.makeuseof.com/tag/speed-up-gnome-desktop/

Bastion
  • 231
  • 1
  • 2
  • 9
0

These are the settings I changed which increased the speed and responsiveness for me:

  1. Open Remote Desktop in Windows
  2. Go to Display
    1. Display Configuration: 1280 x 1024
    2. Colors: High Color (15 bit)

RDP Display Settings

  1. Go to Local Resources

    a. Uncheck Printers

Local Resources

b. Click More in the above and Uncheck Everything

Local Resources > More

  1. In Experience > Choose Connection Speed: Modem 56 kbps

Experience Connection Speed

  1. Login to your Remote Desktop

  2. Open Terminal

Open Terminal

  1. Paste the following:
gsettings set org.gnome.settings-daemon.plugins.remote-display active false
gsettings set org.gnome.desktop.interface enable-animations false
sudo sed -i 's/max_bpp=32/max_bpp=16/g' /etc/xrdp/xrdp.ini && sudo reboot

Terminal Commands

Your remote desktop should be more responsive and less laggy now.