Laggy RDP From Ubuntu VM when using XRDP but works flawlessly when using windows VM

Shahzad Ansari 0 Reputation points
2025-06-06T12:43:21.6+00:00

In Any Ubuntu Machine , When I follow Microsoft docs on how to setup rdp (using xrdp) the latency of the screen is absurd and working on 3d software has been almost impossible due to high latency , although when you use windows there is almost no latency at all. I had to reduce the screen size even though it didn't reduce the latency much. how can fix this , why rdp works so good in windows and why not in ubuntu?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alex Burlachenko 9,780 Reputation points
    2025-06-08T12:40:16.7633333+00:00

    hi Shahzad Ansari, thanks for dropping this question, its super relevant and i get why u're frustrated )) working with laggy rdp is like trying to run through molasses, especially when u need precision for 3d software. let's break this down and get u a smoother experience., really I dont kidding...

    So lets review what we can do for microsoft azure vm (ubuntu) first, xrdp defaults to a less optimized protocol. switch to xorg instead of xvnc for better performance. run these commands to reconfigure xrdp

    sudo sed -i 's/use_vnc=1/use_vnc=0/g' /etc/xrdp/xrdp.ini
    sudo systemctl restart xrdp
    

    this forces xrdp to use xorg, which handles graphics way better xrdp configuration docs.

    next, check if u're using the right graphics drivers. ubuntu sometimes defaults to basic ones (like it, do u?). install the proper drivers for your vm size (like nvidia if u have gpu acceleration) ubuntu vm drivers.

    general recommendations (works everywhere!) aha, now for the universal tricks )) rdp loves bandwidth, so crank up the connection quality. in your rdp client, go to display settings and lower the color depth to 16-bit. sounds small, but it cuts data transfer big time.

    check if network latency is the culprit. try pinging your vm from your local machine. if the response time jumps around, u might need a better network path. wired connections beat wifi here, no contest.

    windows vms often have "remote fx" or similar optimizations baked in. linux can catch up, but u gotta tweak it. oh, and disable desktop effects in ubuntu, they eat resources for breakfast.

    hope this helps shahzad! ps: microsoft keeps improving linux support, so keep an eye on updates. their docs are gold for this stuff.

    Best regards,

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    PPS That is my Answer and not a Comment
    

    https://ctrlaltdel.blog/

    1 person found this answer helpful.

  2. Obinna Ejidike 1,835 Reputation points
    2025-06-08T11:23:02.0733333+00:00

    Hi Shahzad Ansari

    Thanks for using the Q&A platform.

    This experience is expected as XRDP on Ubuntu tends to have higher latency than native RDP on Windows.

    Windows uses a highly optimized and proprietary RDP implementation. XRDP is an open-source reimplementation that wraps an X11 session, which adds overhead and reduces efficiency.
    User's image

    To improve performance, you can switch to a lightweight DE such as XFCE or X2Go.
    User's image

    Find Microsoft documentation: https://learn.microsoft.com/en-us/azure/lab-services/how-to-enable-remote-desktop-linux?utm_source=chatgpt.com#performance

    If the response was helpful, please feel free to mark it as “Accepted Answer” and consider giving it an upvote. This helps others in the community as well.Regards,

    Obinna.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.