Skip to content

very slow with nvidia #3463

@UnderADome

Description

@UnderADome

I compiled the latest xrdp and xorgxrdp with physical card amd and vmware, all of them can run very fluent. So, I decided to do the same thing with nvidia card (the card is P2200). Since I have read many of the issues, I figured out that I should modify the xrdp-sesman.ini file, like this:

[Xorg]
param=/usr/lib/xorg/Xorg
;param=xrdp/xorg.conf  # this with amd or vm
param=xrdp/xorg_nvidia.conf   # this with nvidia

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
XRDP_USE_ACCEL_ASSIST=1
;XRDP_NVIDIA_GRID=1

xrdp.ini is basicly in default. xorg_nvidia.conf is like this:

Section "ServerLayout"
  Identifier "XRDP GPU Server"
  Screen 0 "dGPU"
  InputDevice "xrdpMouse" "CorePointer"
  InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
  # This line prevents "ServerLayout" sections in xorg.conf.d files
  # overriding the "XRDP GPU Server" layout (xrdp #1784)
  Option "DefaultServerLayout" "XRDP GPU Server"
  Option "DontVTSwitch" "on"
  Option "AutoAddDevices" "off"
  Option "AutoAddGPU" "off"
EndSection

# This section might be needed if the nvidia Xorg module is not installed
# in the default modules directory ie /usr/lib/xorg/modules
# example package on ubuntu xserver-xorg-video-nvidia-535
#Section "Files"
#    ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
#EndSection

Section "Module"
  Load "xorgxrdp"
EndSection

Section "InputDevice"
  Identifier "xrdpKeyboard"
  Driver "xrdpkeyb"
EndSection

Section "InputDevice"
  Identifier "xrdpMouse"
  Driver "xrdpmouse"
EndSection

Section "Screen"
  Identifier "dGPU"
  Device "dGPU"
  Option "DPI" "96 x 96"
  SubSection "Display"
    Virtual 1920 1080
  EndSubSection
EndSection

Section "Device"
  Identifier "dGPU"
  Driver "nvidia"
  Option "UseDisplayDevice" "none"
  Option "ConnectToAcpid" "false"
  BusID "PCI:101:0:0"
EndSection

Section "Monitor"
  Identifier "Monitor0"
  HorizSync 28.0-80.0
  VertRefresh 48.0-75.0
  Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection

About Compile

xrdp
 ./configure   --enable-pixman --enable-jpeg --enable-fuse --enable-xorgxrdp  --enable-rdpsound \
    --enable-debug --enable-x264 --enable-pixman --enable-devel-all --enable-devel-logging  --enable-glamor \
    --enable-nvenc --enable-assist --enable-rfxcodec  --enable-mp3lame --enable-sound --enable-opus --enable-fdkaac 

xorgxrdp
 ./configure  --enable-glamor --enable-lrandr --with-simd

After doing this, the remote desktop behavies very very slow (to show the desktop or open any software). The cpu only uses 3-5%, so I think the nvidia card is running .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions