-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using xrdp with NVidia drivers #1697
Comments
Hi, First I can report that standard xrdp runs great on jetson nano (arm64 / aarch64 cpu, lightdm with LXDE resp LXQt). I first build a new xorgxrdp with --enable-glamor option with no problems and tested it. However it didn't make use of the GPU, so there was no notable difference to the standard build. I checked with #1029 and then build the nvidia_hack with -enable-glamour etc. options, also with no problems (installed libgdm-dev as additional prerequisite). I removed the PCI-bus attribute from /etc/X11/xrdp/xorg_nvidia.conf because that is also not present in /etc/X11/xorg.conf. The test had a quite promising result as you can see from the xorgxrdp.log file below: nvidia driver was found and initialised. However xordxrdp crashed but only when loading the rdpmouse driver, so its got farther than one could expect! Any settings I could add here, either in /etc/X11/xrdp/xorg_nvidia.conf or elsewhere? Thanks for the good work! xorgxrdp.log with nvidia_hack: |
I've run into some interesting integration issues between this and #1422 -- It works with avc420, but there are graphical glitches. It looks like the color channel and the B&W channel are somehow not always aligned, maybe an even/odd thing, or a divisible by 4 thing? Anyway, to integrate this fully in the future, we should also think about using nvenc encoder and nvfbc where possible as well! Though x264 does do a pretty darn good job! |
Until we make further progress on using nvidia opengl support through xrdp, I can confirm that virtualgl (www.virtualgl.org, v 2.6.5) works with xrdp/xorgxrdp (0.9.15) on arm8 (nvidia jetson with aarch64 architecture, ubuntu 20.04, nvidia tegra gpu). Tested with the streaming and broadasting software OBS 26.1. All self build. |
Using here xrdp 0.9.12, Ubuntu 20.04, NVidia RTX 5000, NVidia RTX 3090. Is there some alternative similar like VMWare's SVGA3D which can be used without using a VM? |
This works: https://github.com/jsorg71/xorgxrdp/tree/nvidia_hack And make sure you download and install the Nvidia drivers from Nvidia's website directly and install them using the *.run file (DO NOT use the drivers that are bundled with your OS) Then do this:
|
I managed to get it work. Nice to see that Xrdp can leverage nvidia directly. Still, I haven't understood fully how things are working:
Xorg needs access to tty, and I am not sure what security implications this will have:
Build information:
|
I think, I can answer my own question now, From the dev branch I built the pre 3.0 Version (virtualgl_2.6.80_amd64.deb), Then I perform No Active VT is needed, or even another console non-root user can be logged in - And passing /dev/dri/* to LXC instances or even nested LXC containers is possible. Really nice!! |
@Nexarian could you maybe share your xorg_nvidia.conf? This would be awesome! |
Try this? #1422 (comment) |
Note: @jsorg71 deserves the credit here. I largely took his code, repackaged it, rebased it off of recent devel branches, and then sprinkled in my dynamic resolution knowledge, but the core innovation belongs to Jay :) |
@cur1ou5soul The
|
Hello, I rebased jsorg71's nvidia_hack on top of xorgxrdp v0.2.18 and configured the rest like #1697 (comment). Now glxgears indeed shows nvidia driver is in use. However, dynamic resolution is not working and the virtual rdp0 monitor is not shown in KDE settings. Is this expected? If not, how can I get working dynamic resolution with nvidia driver? Edit: I'm experiencing exactly the same issue with @Nexarian's It turns out that nvidia proprietary driver does not support virtual monitor according to https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Headless_(no_monitor)_resolution, is there any kind of workaround? |
Latest xrdp can use glamor to accelerate X drawing and make use of hardware 3D rendering but it only works well with Intel or AMD hardware.
Nouveau works with glamor but does not compare to NVidia drivers and does not allow access to CUDA, nvenc, etc.
The text was updated successfully, but these errors were encountered: