If I look around the internet, pages like this one sort-of describe how to get NVidia drivers to work with xrdp, but the information is scattered and difficult to follow what exactly should be done.
So, it would be nice if there was a simple step-by-step solution to this problem - I want to get rviz accelerated. Things I have tried:
Initial steps
- On Linux install
virtualgl 2.6.5in Docker - On Windows, start up Remote Desktop and log onto
lightdmon display:10.
Working but far from ideal
- On Linux in a standard terminal or from inside
VSCode, load Docker and runDISPLAY=:10 vglrun rviz
This starts up rviz in the xrdp session, and checking nvidia-smi and htop, the GPU appears to be being used.
Not working properly
- On Windows in
PuTTYor from insideVSCodeor from a terminal insidexrdp, load Docker and runDISPLAY=:10 vglrun -d :10 rviz
This starts up rviz in the xrdp session, but checking nvidia-smi and htop, the GPU is not being used. The sample executable glxspheres64 displays similar behaviour, so it's not just an rviz issue.
Has anyone here had success getting this to work?