xrdp is quite slow

30,716

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
Share:
30,716

Related videos on Youtube

Hölderlin
Author by

Hölderlin

Updated on September 18, 2022

Comments

  • Hölderlin
    Hölderlin over 1 year

    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
    
    • sancho.s ReinstateMonicaCellio
      sancho.s ReinstateMonicaCellio about 3 years
      Did you find any answer useful? Providing feedback is useful for the community.
    • Hölderlin
      Hölderlin about 3 years
      most of your links I came across before I start this post. My desktop env is gnome. If you use Xorg for connection, then server/client 32 bits per pixel are highest that is allowed.
    • sancho.s ReinstateMonicaCellio
      sancho.s ReinstateMonicaCellio about 3 years
      You already found many of the links... It would be useful if you posted what you tried from there, and the result. So others can focus in helping you better.
    • le hien
      le hien over 2 years
      Did you find any solution? I have same problem, win10 to win10 is smooth all day, but Ubuntu 20.04 to win10 is slow randomly, and very terrible in late afternoon.