Skip to content

nvidia GPU xorgxrdpDamageDestroy on login (nvidia mx150) #386

@utrobinmv

Description

@utrobinmv

I am using rdp on my laptop and I need nvidia GPU acceleration in xrdp.

Specifically for this, I compiled the xrdp and xorgrdp builds from the devel branch.

But at the same time, I can't log in as a user via xrdp.

xrdp -v

xrdp 0.10.80
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2025 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --with-systemdsystemunitdir=/usr/lib/systemd/system
      --enable-ibus
      --enable-ipv6
      --enable-jpeg
      --enable-fuse
      --enable-mp3lame
      --enable-fdkaac
      --enable-opus
      --enable-rfxcodec
      --enable-painter
      --enable-pixman
      --enable-utmp
      -with-imlib2
      --with-freetype2
      --enable-tests
      --enable-x264
      --enable-openh264
      --enable-vsock
      --enable-nvenc
      --enable-glamor
      --enable-assist

  Compiled with OpenSSL 3.0.2 15 Mar 2022

my system

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

nvidia GPU:

nvidia-smi

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.42.06              Driver Version: 555.42.06      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce MX150           Off |   00000000:01:00.0 Off |                  N/A |
| N/A   46C    P0             N/A / ERR!  |     350MiB /   2048MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1544      G   /usr/lib/xorg/Xorg                            226MiB |
|    0   N/A  N/A      2478      G   xfwm4                                           1MiB |
|    0   N/A  N/A      2538      G   /usr/bin/nextcloud                              5MiB |
|    0   N/A  N/A      3703      G   ...55,262144 --variations-seed-version        114MiB |
+-----------------------------------------------------------------------------------------+

I copied the /etc/X11/xrdp/xorg_nvidia.conf file from xorgxrdp and replaced the param line in sesman.ini

cat /etc/X11/xrdp/xorg_nvidia.conf

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"
EndSection

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

Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log

X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: Linux jfpc 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-60-generic root=UUID=301bcd8e-4ac4-43c5-b9fe-308de3a48f99 ro quiet splash vt.handoff=7
xorg-server 2:21.1.4-2ubuntu1.7~22.04.14 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: ".xorgxrdp.10.log", Time: Fri Jun  6 01:00:10 2025
(++) Using config file: "/etc/X11/xrdp/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xorgxrdpSetup:
xrdpdevSetup:
rdpmousePlug:
rdpkeybPlug:
rdpIdentify:
rdpDriverFunc: op 10
rdpProbe:
rdpPreInit:
rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
rdpScreenInit: pfbMemory bytes 1920000
rdpScreenInit: pfbMemory 0x7ade3808f010
rdpSimdInit: assigning yuv functions
rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000806ea bx 0x00100800 cx 0x7ffafbbf dx 0xbfebfbff
rdpSimdInit: sse2 amd64 yuv functions assigned
rdpClientConInit: disconnect idle session after [0] sec
rdpClientConInit: kill disconnected [0] timeout [0] sec
rdpXvInit: depth 24
rdpScreenInit: out
rdpCreateScreenResources:
rdpmousePreInit: drv 0x5821157f5520 info 0x582115adfba0, flags 0x0
rdpmouseControl: what 0
rdpmouseDeviceInit:
rdpmouseCtrl:
rdpRegisterInputCallback: type 1 proc 0x7ade39136950
rdpmouseControl: what 1
rdpmouseDeviceOn:
rdpkeybPreInit: drv 0x5821157f4f00 info 0x582115ae3790, flags 0x0
rdpkeybControl: what 0
rdpLoadLayout: rules="evdev" model="pc104" variant=""layout="us" options=""
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpRegisterInputCallback: type 0 proc 0x7ade39131970
rdpkeybControl: what 1
rdpkeybDeviceOn:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpDeferredRandR:
rdpResizeSession: width 1024 height 768
  calling RRScreenSizeSet
rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
rdpRRGetInfo:
  screen resized to 1024x768
rdpRRScreenSetSize: screenInfo x 0 y 0 width 800 height 600
  RRScreenSizeSet ok 1
rdpRRSetRdpOutputs: numCrtcs 0 numOutputs 0 monitorCount 0
rdpRRSetRdpOutputs: update output 0 left 0 top 0 width 1024 height 768
rdpRRConnectOutput:
rdpInDeferredRepeatCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpInDeferredRepeatCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off
rdpInDeferredRepeatCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off

cat .xorgxrdp.10.log

[   604.693] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   604.693] Current Operating System: Linux jfpc 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64
[   604.693] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-60-generic root=UUID=301bcd8e-4ac4-43c5-b9fe-308de3a48f99 ro quiet splash vt.handoff=7
[   604.693] xorg-server 2:21.1.4-2ubuntu1.7~22.04.14 (For technical support please see http://www.ubuntu.com/support) 
[   604.693] Current version of pixman: 0.40.0
[   604.693] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   604.693] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   604.693] (++) Log file: ".xorgxrdp.10.log", Time: Fri Jun  6 00:43:37 2025
[   604.693] (++) Using config file: "/etc/X11/xrdp/xorg_nvidia.conf"
[   604.693] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   604.694] (**) Option "defaultserverlayout" "XRDP GPU Server"
[   604.694] (**) ServerLayout "XRDP GPU Server"
[   604.694] (**) |-->Screen "dGPU" (0)
[   604.694] (**) |   |-->Monitor "<default monitor>"
[   604.694] (**) |   |-->Device "dGPU"
[   604.694] (==) No monitor specified for screen "dGPU".
	Using a default monitor configuration.
[   604.694] (**) |-->Input Device "xrdpMouse"
[   604.694] (**) |-->Input Device "xrdpKeyboard"
[   604.694] (**) Option "DontVTSwitch" "on"
[   604.694] (**) Option "AutoAddDevices" "off"
[   604.694] (**) Option "AutoAddGPU" "off"
[   604.694] (**) Not automatically adding devices
[   604.694] (==) Automatically enabling devices
[   604.694] (**) Not automatically adding GPU devices
[   604.694] (==) Automatically binding GPU devices
[   604.694] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   604.694] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   604.694] 	Entry deleted from font path.
[   604.694] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   604.694] 	Entry deleted from font path.
[   604.694] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   604.694] 	Entry deleted from font path.
[   604.694] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   604.694] 	Entry deleted from font path.
[   604.694] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   604.694] 	Entry deleted from font path.
[   604.694] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[   604.694] (**) ModulePath set to "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
[   604.694] (II) Loader magic: 0x585285e86020
[   604.694] (II) Module ABI versions:
[   604.694] 	X.Org ANSI C Emulation: 0.4
[   604.694] 	X.Org Video Driver: 25.2
[   604.694] 	X.Org XInput driver : 24.4
[   604.694] 	X.Org Server Extension : 10.0
[   604.695] (--) using VT number 2

[   604.695] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   604.697] (II) xfree86: Adding drm device (/dev/dri/card1)
[   604.697] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card1
[   604.698] (II) xfree86: Adding drm device (/dev/dri/card2)
[   604.698] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/drm/card2
[   604.700] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
[   604.700] (**) OutputClass "Nvidia Prime" ModulePath extended to "/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules"
[   604.700] (**) OutputClass "Nvidia Prime" setting /dev/dri/card2 as PrimaryGPU
[   604.701] (--) PCI: (0@0:2:0) 8086:5917:17aa:225e rev 7, Mem @ 0xe7000000/16777216, 0xc0000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/131072
[   604.701] (--) PCI:*(1@0:0:0) 10de:1d10:17aa:225e rev 161, Mem @ 0xe8000000/16777216, 0x70000000/268435456, 0x80000000/33554432, I/O @ 0x0000d000/128
[   604.701] (II) "glx" will be loaded by default.
[   604.701] (II) LoadModule: "xorgxrdp"
[   604.702] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[   604.702] (II) Module XORGXRDP: vendor="X.Org Foundation"
[   604.702] 	compiled for 1.21.1.4, module version = 0.10.80
[   604.702] 	ABI class: X.Org Video Driver, version 25.2
[   604.702] xorgxrdpSetup:
[   604.702] (II) LoadModule: "glx"
[   604.702] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   604.703] (II) Module glx: vendor="X.Org Foundation"
[   604.703] 	compiled for 1.21.1.4, module version = 1.0.0
[   604.703] 	ABI class: X.Org Server Extension, version 10.0
[   604.703] (II) LoadModule: "nvidia"
[   604.703] (II) Loading /lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
[   604.704] (II) Module nvidia: vendor="NVIDIA Corporation"
[   604.704] 	compiled for 1.6.99.901, module version = 1.0.0
[   604.704] 	Module class: X.Org Video Driver
[   604.704] (II) LoadModule: "xrdpmouse"
[   604.704] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[   604.705] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[   604.705] 	compiled for 1.21.1.4, module version = 0.10.80
[   604.705] 	Module class: X.Org XInput Driver
[   604.705] 	ABI class: X.Org XInput driver, version 24.4
[   604.705] rdpmousePlug:
[   604.705] (II) LoadModule: "xrdpkeyb"
[   604.705] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[   604.705] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[   604.705] 	compiled for 1.21.1.4, module version = 0.10.80
[   604.705] 	Module class: X.Org XInput Driver
[   604.705] 	ABI class: X.Org XInput driver, version 24.4
[   604.705] rdpkeybPlug:
[   604.705] xorgxrdpCheckWrap: NVIDIA driver found
[   604.705] (II) NVIDIA dlloader X Driver  555.42.06  Tue Jun  4 00:30:49 UTC 2024
[   604.705] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   604.705] xorgxrdpDriverFunc:
[   604.705] xorgxrdpPlatformProbe:
[   604.705] (II) Loading sub module "fb"
[   604.705] (II) LoadModule: "fb"
[   604.705] (II) Module "fb" already built-in
[   604.705] (II) Loading sub module "wfb"
[   604.705] (II) LoadModule: "wfb"
[   604.705] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   604.706] (II) Module wfb: vendor="X.Org Foundation"
[   604.706] 	compiled for 1.21.1.4, module version = 1.0.0
[   604.706] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   604.706] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   604.706] xorgxrdpPreInit:
[   604.706] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"dGPU" for depth/fbbpp 24/32
[   604.706] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   604.706] (==) NVIDIA(0): RGB weight 888
[   604.706] (==) NVIDIA(0): Default visual is TrueColor
[   604.706] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   604.706] (II) Applying OutputClass "nvidia" options to /dev/dri/card2
[   604.706] (II) Applying OutputClass "Nvidia Prime" options to /dev/dri/card2
[   604.706] (**) NVIDIA(0): Option "DPI" "96 x 96"
[   604.706] (**) NVIDIA(0): Option "ConnectToAcpid" "false"
[   604.706] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   604.706] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[   604.706] (**) NVIDIA(0): Enabling 2D acceleration
[   604.706] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[   604.706] (**) NVIDIA(0):     mode
[   604.706] (II) Loading sub module "glxserver_nvidia"
[   604.706] (II) LoadModule: "glxserver_nvidia"
[   604.707] (II) Loading /lib/x86_64-linux-gnu/nvidia/xorg/libglxserver_nvidia.so
[   604.723] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[   604.723] 	compiled for 1.6.99.901, module version = 1.0.0
[   604.723] 	Module class: X.Org Server Extension
[   604.723] (II) NVIDIA GLX Module  555.42.06  Tue Jun  4 00:35:24 UTC 2024
[   604.723] (II) NVIDIA: The X server supports PRIME Render Offload.
[   604.724] (WW) NVIDIA: No DRM device: Direct render devices found but access was
[   604.724] (WW) NVIDIA:     denied.
[   604.724] (II) NVIDIA(0): NVIDIA GPU NVIDIA GeForce MX150 (GP108-A) at PCI:1:0:0
[   604.724] (II) NVIDIA(0):     (GPU-0)
[   604.724] (--) NVIDIA(0): Memory: 2097152 kBytes
[   604.724] (--) NVIDIA(0): VideoBIOS: 86.08.3b.00.38
[   604.724] (II) NVIDIA(0): Detected PCI Express Link width: 4X
[   604.724] (II) NVIDIA(0): Validated MetaModes:
[   604.724] (II) NVIDIA(0):     "NULL"
[   604.724] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[   604.724] (**) NVIDIA(0): DPI set to (96, 96); computed from "DPI" X config option
[   604.724] xorgxrdpScreenInit:
[   604.725] (WW) NVIDIA: Failed to bind sideband socket to
[   604.725] (WW) NVIDIA:     '/var/run/nvidia-xdriver-118062d2' Permission denied
[   604.725] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[   604.725] (II) NVIDIA:     access.
[   604.754] (II) NVIDIA(0): Setting mode "NULL"
[   604.758] (==) NVIDIA(0): Disabling shared memory pixmaps
[   604.758] (==) NVIDIA(0): Backing store enabled
[   604.758] (==) NVIDIA(0): Silken mouse enabled
[   604.758] (==) NVIDIA(0): DPMS enabled
[   604.759] (WW) NVIDIA(0): Option "IgnoreDisplayDevices" is not used
[   604.759] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[   604.759] (II) Loading sub module "dri2"
[   604.759] (II) LoadModule: "dri2"
[   604.759] (II) Module "dri2" already built-in
[   604.759] (II) NVIDIA(0): [DRI2] Setup complete
[   604.759] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   604.759] xorgxrdpScreenInit: nvidia_grid 0
[   604.759] xorgxrdpScreenInit: width 640 height 480
[   604.759] rdpClientConInit: disconnect idle session after [0] sec
[   604.759] rdpClientConInit: kill disconnected [0] timeout [0] sec
[   604.759] rdpSimdInit: assigning yuv functions
[   604.759] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000806ea bx 0x03100800 cx 0x7ffafbbf dx 0xbfebfbff
[   604.759] rdpSimdInit: sse2 amd64 yuv functions assigned
[   604.759] (II) Initializing extension Generic Event Extension
[   604.759] (II) Initializing extension SHAPE
[   604.759] (II) Initializing extension MIT-SHM
[   604.759] (II) Initializing extension XInputExtension
[   604.759] (II) Initializing extension XTEST
[   604.759] (II) Initializing extension BIG-REQUESTS
[   604.760] (II) Initializing extension SYNC
[   604.760] (II) Initializing extension XKEYBOARD
[   604.760] (II) Initializing extension XC-MISC
[   604.760] (II) Initializing extension SECURITY
[   604.760] (II) Initializing extension XFIXES
[   604.760] (II) Initializing extension RENDER
[   604.760] (II) Initializing extension RANDR
[   604.760] (II) Initializing extension COMPOSITE
[   604.761] (II) Initializing extension DAMAGE
[   604.761] (II) Initializing extension MIT-SCREEN-SAVER
[   604.761] (II) Initializing extension DOUBLE-BUFFER
[   604.761] (II) Initializing extension RECORD
[   604.761] (II) Initializing extension DPMS
[   604.761] (II) Initializing extension Present
[   604.761] (II) Initializing extension DRI3
[   604.761] (II) Initializing extension X-Resource
[   604.761] (II) Initializing extension XVideo
[   604.761] (II) Initializing extension XVideo-MotionCompensation
[   604.761] (II) Initializing extension SELinux
[   604.761] (II) SELinux: Disabled on system
[   604.761] (II) Initializing extension GLX
[   604.762] (II) Initializing extension GLX
[   604.762] (II) Indirect GLX disabled.
[   604.762] (II) GLX: Another vendor is already registered for screen 0
[   604.762] (II) Initializing extension XFree86-VidModeExtension
[   604.762] (II) Initializing extension XFree86-DGA
[   604.762] (II) Initializing extension XFree86-DRI
[   604.762] (II) Initializing extension DRI2
[   604.762] (II) Initializing extension NV-GLX
[   604.762] (II) Initializing extension NV-CONTROL
[   604.762] rdpCreateScreenResources:
[   604.803] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[   604.803] (**) Option "CorePointer"
[   604.803] (**) xrdpMouse: always reports core events
[   604.803] rdpmousePreInit: drv 0x5852b015e090 info 0x5852b0710a30, flags 0x0
[   604.803] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[   604.803] rdpmouseControl: what 0
[   604.803] rdpmouseDeviceInit:
[   604.803] rdpmouseCtrl:
[   604.803] rdpRegisterInputCallback: type 1 proc 0x7be8ad3e4950
[   604.803] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[   604.803] (**) xrdpMouse: (accel) acceleration profile 0
[   604.803] (**) xrdpMouse: (accel) acceleration factor: 2.000
[   604.803] (**) xrdpMouse: (accel) acceleration threshold: 4
[   604.803] rdpmouseControl: what 1
[   604.803] rdpmouseDeviceOn:
[   604.803] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[   604.803] (**) Option "CoreKeyboard"
[   604.803] (**) xrdpKeyboard: always reports core events
[   604.803] rdpkeybPreInit: drv 0x5852b015da70 info 0x5852b089b690, flags 0x0
[   604.803] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[   604.804] rdpkeybControl: what 0
[   604.804] rdpLoadLayout: rules="evdev" model="pc104" variant=""layout="us" options=""
[   604.826] rdpkeybChangeKeyboardControl:
[   604.826] rdpkeybChangeKeyboardControl: autoRepeat on
[   604.826] rdpkeybChangeKeyboardControl:
[   604.826] rdpkeybChangeKeyboardControl: autoRepeat on
[   604.827] rdpRegisterInputCallback: type 0 proc 0x7be8ad3df970
[   604.827] rdpkeybControl: what 1
[   604.827] rdpkeybDeviceOn:
[   604.827] rdpkeybChangeKeyboardControl:
[   604.827] rdpkeybChangeKeyboardControl: autoRepeat on
[   604.847] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   604.847] (II) AutoAddDevices is off - not adding device.
[   604.848] (II) config/udev: Adding input device Video Bus (/dev/input/event12)
[   604.848] (II) AutoAddDevices is off - not adding device.
[   604.849] (II) config/udev: Adding input device Video Bus (/dev/input/event13)
[   604.849] (II) AutoAddDevices is off - not adding device.
[   604.849] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[   604.849] (II) AutoAddDevices is off - not adding device.
[   604.850] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[   604.850] (II) AutoAddDevices is off - not adding device.
[   604.851] (II) config/udev: Adding input device Raydium Corporation Raydium Touch System (/dev/input/event9)
[   604.851] (II) AutoAddDevices is off - not adding device.
[   604.852] (II) config/udev: Adding input device Raydium Corporation Raydium Touch System (/dev/input/mouse0)
[   604.852] (II) AutoAddDevices is off - not adding device.
[   604.853] (II) config/udev: Adding input device Conexant CONEXANT USB AUDIO (/dev/input/event8)
[   604.853] (II) AutoAddDevices is off - not adding device.
[   604.854] (II) config/udev: Adding input device LITEON Technology USB Multimedia Keyboard (/dev/input/event6)
[   604.854] (II) AutoAddDevices is off - not adding device.
[   604.856] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/event7)
[   604.856] (II) AutoAddDevices is off - not adding device.
[   604.857] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse1)
[   604.857] (II) AutoAddDevices is off - not adding device.
[   604.858] (II) config/udev: Adding input device GeneralPlus USB Audio Device (/dev/input/event5)
[   604.858] (II) AutoAddDevices is off - not adding device.
[   604.858] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event14)
[   604.858] (II) AutoAddDevices is off - not adding device.
[   604.859] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event15)
[   604.859] (II) AutoAddDevices is off - not adding device.
[   604.859] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event16)
[   604.859] (II) AutoAddDevices is off - not adding device.
[   604.860] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event17)
[   604.860] (II) AutoAddDevices is off - not adding device.
[   604.860] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event18)
[   604.860] (II) AutoAddDevices is off - not adding device.
[   604.861] (II) config/udev: Adding input device Synaptics TM3276-022 (/dev/input/event10)
[   604.861] (II) AutoAddDevices is off - not adding device.
[   604.862] (II) config/udev: Adding input device Synaptics TM3276-022 (/dev/input/mouse2)
[   604.862] (II) AutoAddDevices is off - not adding device.
[   604.862] (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/event11)
[   604.862] (II) AutoAddDevices is off - not adding device.
[   604.863] (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/mouse3)
[   604.863] (II) AutoAddDevices is off - not adding device.
[   604.864] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[   604.864] (II) AutoAddDevices is off - not adding device.
[   604.868] (II) config/udev: Adding input device ThinkPad Extra Buttons (/dev/input/event4)
[   604.868] (II) AutoAddDevices is off - not adding device.
[   604.873] xorgxrdpDeferredStartup:
[   604.873] xorgxrdpSetupDamage: DamageRegister ok
[   604.927] rdpInDeferredRepeatCallback:
[   604.927] rdpkeybChangeKeyboardControl:
[   604.927] rdpkeybChangeKeyboardControl: autoRepeat off
[   604.927] rdpInDeferredRepeatCallback:
[   604.927] rdpkeybChangeKeyboardControl:
[   604.927] rdpkeybChangeKeyboardControl: autoRepeat off
[   604.927] rdpInDeferredRepeatCallback:
[   604.927] rdpkeybChangeKeyboardControl:
[   604.927] rdpkeybChangeKeyboardControl: autoRepeat off
[   615.707] rdpmouseControl: what 2
[   615.707] rdpmouseDeviceOff:
[   615.708] rdpkeybControl: what 2
[   615.708] rdpkeybDeviceOff:
[   615.710] xorgxrdpDamageDestroy:
[   615.713] rdpkeybControl: what 3
[   615.713] rdpkeybUnInit: drv 0x5852b015da70 info 0x5852b089b690, flags 0x0
[   615.713] rdpUnregisterInputCallback: proc 0x7be8ad3df970
[   615.713] rdpmouseControl: what 3
[   615.713] rdpmouseUnInit: drv 0x5852b015e090 info 0x5852b0710a30, flags 0x0
[   615.713] rdpUnregisterInputCallback: proc 0x7be8ad3e4950
[   615.713] rdpCloseScreen:
[   615.732] (II) NVIDIA(GPU-0): Deleting GPU-0
[   615.732] xorgxrdpDownDown:
[   615.732] xorgxrdpDownDown: 1
[   615.732] rdpClientConDeinit:
[   615.732] rdpClientConDeinit: deleting file /var/run/xrdp/1001/xrdp_display_10
[   615.732] rdpClientConDeinit: deleting file /var/run/xrdp/1001/xrdp_disconnect_display_10
[   615.733] (II) Server terminated successfully (0). Closing log file.

cat /var/log/xrdp.log

[2025-06-06T01:03:19.334+0300] [ERROR] SSL_read: Failure in SSL library (protocol error?)
[2025-06-06T01:03:19.337+0300] [ERROR] SSL: error:0A000126:SSL routines::unexpected eof while reading
[2025-06-06T01:03:19.339+0300] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[2025-06-06T01:03:19.341+0300] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[2025-06-06T01:03:19.342+0300] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[2025-06-06T01:03:19.343+0300] [ERROR] xrdp_mcs_send: xrdp_iso_send failed
[2025-06-06T01:03:19.345+0300] [ERROR] xrdp_sec_send: xrdp_mcs_send failed
[2025-06-06T01:03:19.346+0300] [ERROR] xrdp_channel_send: xrdp_sec_send failed
[2025-06-06T01:03:19.347+0300] [ERROR] xrdp_channel_drdynvc_data: xrdp_channel_send failed
[2025-06-06T01:03:21.110+0300] [INFO ] Socket 14: connection accepted from [::ffff:192.168.45.15]:58064
[2025-06-06T01:03:21.115+0300] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[2025-06-06T01:03:21.116+0300] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[2025-06-06T01:03:21.118+0300] [INFO ] Client requested security types (RDP assumed) : SSL|HYBRID
[2025-06-06T01:03:21.119+0300] [INFO ] Selected TLS security
[2025-06-06T01:03:21.131+0300] [INFO ] Connected client computer name: jfpc
[2025-06-06T01:03:21.132+0300] [INFO ] client supports gfx protocol
[2025-06-06T01:03:21.133+0300] [WARN ] Physical desktop dimensions (0x0) are invalid
[2025-06-06T01:03:21.134+0300] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[2025-06-06T01:03:21.136+0300] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[2025-06-06T01:03:21.231+0300] [INFO ] TLS connection established from [::ffff:192.168.45.15]:58064 TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[2025-06-06T01:03:22.372+0300] [INFO ] Client supports multi-screen resizes by xrdp
[2025-06-06T01:03:22.422+0300] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[2025-06-06T01:03:22.446+0300] [INFO ] Client supports Unicode input
[2025-06-06T01:03:22.467+0300] [INFO ] xrdp_caps_process_codecs: RemoteFX(76772F12-BD72-4463-AFB3-B73C9C6F7886), codec id [3], properties len [49]
[2025-06-06T01:03:22.486+0300] [INFO ] Client Capability: LARGE_POINTER_FLAG_96x96 supported
[2025-06-06T01:03:22.607+0300] [INFO ] Loading keymap file /etc/xrdp/km-00000409.toml
[2025-06-06T01:03:22.633+0300] [INFO ] TConfig: Loading GFX config file /etc/xrdp/gfx.toml
[2025-06-06T01:03:22.652+0300] [WARN ] No information is available to determine login screen DPI
[2025-06-06T01:03:22.667+0300] [WARN ] No DPI value is available to find login font
[2025-06-06T01:03:22.682+0300] [WARN ] Using the default_dpi of 96
[2025-06-06T01:03:22.184+0300] [INFO ] xrdp_egfx_create: error 0 channel_id 1
[2025-06-06T01:03:22.189+0300] [INFO ] User has disabled dynamic resizing.
[2025-06-06T01:03:22.204+0300] [INFO ] xrdp_mm_egfx_caps_advertise:
[2025-06-06T01:03:22.206+0300] [INFO ]   version 0x00080004 flags 0x00000001 (index: 0)
[2025-06-06T01:03:22.207+0300] [INFO ]   version 0x00080105 flags 0x00000001 (index: 1)
[2025-06-06T01:03:22.209+0300] [INFO ]   version 0x000a0002 flags 0x00000020 (index: 2)
[2025-06-06T01:03:22.210+0300] [INFO ]   version 0x000a0200 flags 0x00000020 (index: 3)
[2025-06-06T01:03:22.212+0300] [INFO ]   version 0x000a0301 flags 0x00000020 (index: 4)
[2025-06-06T01:03:22.213+0300] [INFO ]   version 0x000a0400 flags 0x00000020 (index: 5)
[2025-06-06T01:03:22.214+0300] [INFO ]   version 0x000a0502 flags 0x00000020 (index: 6)
[2025-06-06T01:03:22.216+0300] [INFO ]   version 0x000a0600 flags 0x00000020 (index: 7)
[2025-06-06T01:03:22.217+0300] [INFO ] Codec search order is H264, RFX
[2025-06-06T01:03:22.218+0300] [INFO ] Matched RFX mode
[2025-06-06T01:03:22.220+0300] [INFO ]   replying version 0x000a0600 flags 0x00000020
[2025-06-06T01:03:22.221+0300] [INFO ] xrdp_mm_egfx_caps_advertise: xrdp_egfx_send_capsconfirm error 0 best_index 7
[2025-06-06T01:03:22.222+0300] [INFO ] xrdp_egfx_reset_graphics:
[2025-06-06T01:03:22.224+0300] [INFO ] xrdp_egfx_reset_graphics: width 640 height 480 monitorcount 1
[2025-06-06T01:03:22.225+0300] [INFO ] xrdp_mm_egfx_caps_advertise: xrdp_egfx_send_reset_graphics error 0 monitorCount 0
[2025-06-06T01:03:22.227+0300] [INFO ] xrdp_mm_egfx_create_surfaces: map surface_id 0 left 0 top 0 width 640 height 480
[2025-06-06T01:03:22.228+0300] [INFO ] xrdp_encoder_create: starting gfx rfx pro codec session
[2025-06-06T01:03:22.229+0300] [INFO ] TConfig: Loading GFX config file /etc/xrdp/gfx.toml
[2025-06-06T01:03:22.231+0300] [INFO ] xrdp_encoder_create: using x264 for software encoder
[2025-06-06T01:03:22.232+0300] [INFO ] xrdp_mm_egfx_invalidate_wm_screen:
[2025-06-06T01:03:22.233+0300] [INFO ] xrdp_mm_egfx_caps_advertise: egfx created.
[2025-06-06T01:03:22.235+0300] [WARN ] Ignoring obsolete SCP port value '3350'
[2025-06-06T01:03:22.236+0300] [INFO ] xrdp_wm_log_msg: sesman connect ok
[2025-06-06T01:03:22.238+0300] [INFO ] xrdp_wm_log_msg: Performing login request for user1
[2025-06-06T01:03:22.314+0300] [INFO ] xrdp_wm_log_msg: login was successful - creating session
[2025-06-06T01:03:33.668+0300] [INFO ] xrdp_wm_log_msg: Can't create session for user user1 - X server could not be started

cat /var/log/xrdp-sesman.log

2025-06-06T01:07:03.884+0300] [INFO ] Socket 13: connection accepted from AF_UNIX
[2025-06-06T01:07:03.887+0300] [INFO ] Received system login request from xrdp for user: user1 IP: ::ffff:192.168.45.15
[2025-06-06T01:07:03.890+0300] [DEBUG] Closed socket 13 (AF_UNIX)
[2025-06-06T01:07:03.890+0300] [DEBUG] Calling exec (excutable: /usr/local/libexec/xrdp/xrdp-sesexec, arguments: xrdp-sesexec)
[2025-06-06T01:07:03.902+0300] [INFO ] starting xrdp-sesexec with pid 5879
[2025-06-06T01:07:03.965+0300] [INFO ] User user1 is in TerminalServerUsers group tsusers. Access granted
[2025-06-06T01:07:03.969+0300] [INFO ] Access permitted for user: user1
[2025-06-06T01:07:03.971+0300] [DEBUG] Closed socket 9 (AF_UNIX)
[2025-06-06T01:07:03.971+0300] [INFO ] Received sys login status for user1 : logged in
[2025-06-06T01:07:03.973+0300] [INFO ] Received request from xrdp to create a session for user user1
[2025-06-06T01:07:03.975+0300] [DEBUG] session_list_get_bydata: search policy=UB type=Xorg U=1001 B=24 D=(640x480) I=::ffff:192.168.45.15
[2025-06-06T01:07:03.976+0300] [DEBUG] session_list_get_bydata: No matches found
[2025-06-06T01:07:03.978+0300] [INFO ] Found X server running at /tmp/.X11-unix/X10
[2025-06-06T01:07:03.979+0300] [DEBUG] Did not find a running X server at /tmp/.X11-unix/X11
[2025-06-06T01:07:03.980+0300] [DEBUG] Did not find a running X server at /tmp/.X11-lock
[2025-06-06T01:07:03.982+0300] [DEBUG] Closed socket 15 ([::]:5911)
[2025-06-06T01:07:03.983+0300] [DEBUG] Did not find a running X server at 5911
[2025-06-06T01:07:03.984+0300] [DEBUG] Closed socket 15 ([::]:6011)
[2025-06-06T01:07:03.986+0300] [DEBUG] Did not find a running X server at 6011
[2025-06-06T01:07:03.988+0300] [DEBUG] Closed socket 15 ([::]:6211)
[2025-06-06T01:07:03.990+0300] [DEBUG] Closed socket 13 (AF_UNIX)
[2025-06-06T01:07:03.994+0300] [INFO ] PAM: Last login: Fri Jun  6 01:03:22 MSK 2025 from ::ffff:192.168.45.15 on :11
[2025-06-06T01:07:04.312+0300] [DEBUG] Waiting for X server to start on display :11
[2025-06-06T01:07:04.313+0300] [DEBUG] Calling exec (excutable: /usr/local/libexec/xrdp/waitforx, arguments: /usr/local/libexec/xrdp/waitforx -d :11)
[2025-06-06T01:07:04.316+0300] [INFO ] Starting X server on display 11: /usr/lib/xorg/Xorg :11 -auth .Xauthority -config xrdp/xorg_nvidia.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log 
[2025-06-06T01:07:04.319+0300] [DEBUG] Calling exec (excutable: /usr/lib/xorg/Xorg, arguments: /usr/lib/xorg/Xorg :11 -auth .Xauthority -config xrdp/xorg_nvidia.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log)
[2025-06-06T01:07:04.321+0300] [DEBUG] waitforx: Opening socket /tmp/.X11-unix/X11. Attempt 1 of 10
[2025-06-06T01:07:04.322+0300] [DEBUG] waitforx: Socket '/tmp/.X11-unix/X11' open failed [No such file or directory].
[2025-06-06T01:07:05.321+0300] [DEBUG] waitforx: Opening socket /tmp/.X11-unix/X11. Attempt 2 of 10
[2025-06-06T01:07:05.326+0300] [DEBUG] waitforx: Socket '/tmp/.X11-unix/X11' open succeeded.
[2025-06-06T01:07:05.328+0300] [DEBUG] waitforx: Opening display ':11'. Attempt 1 of 9
[2025-06-06T01:07:05.330+0300] [DEBUG] waitforx: Opened display :11
[2025-06-06T01:07:05.331+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 1 of 10
[2025-06-06T01:07:06.326+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 2 of 10
[2025-06-06T01:07:07.326+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 3 of 10
[2025-06-06T01:07:08.327+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 4 of 10
[2025-06-06T01:07:09.327+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 5 of 10
[2025-06-06T01:07:10.328+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 6 of 10
[2025-06-06T01:07:11.328+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 7 of 10
[2025-06-06T01:07:12.329+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 8 of 10
[2025-06-06T01:07:13.329+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 9 of 10
[2025-06-06T01:07:14.330+0300] [DEBUG] waitforx: Waiting for outputs. Attempt 10 of 10
[2025-06-06T01:07:15.330+0300] [ERROR] waitforx: Unable to find any RandR outputs
[2025-06-06T01:07:15.335+0300] [DEBUG] waiting for pid 5905 to exit
[2025-06-06T01:07:15.337+0300] [ERROR] An error occurred waiting for the X server
[2025-06-06T01:07:15.352+0300] [DEBUG] Closed socket 9 (AF_UNIX)
[2025-06-06T01:07:15.352+0300] [INFO ] sesman: Session on display :11 has finished.
[2025-06-06T01:07:15.353+0300] [DEBUG] Closed socket 14 (AF_UNIX)
[2025-06-06T01:07:15.353+0300] [ERROR] sesexec_main_loop: trans_check_wait_objs failed for ECP transport
[2025-06-06T01:07:15.355+0300] [DEBUG] Closed socket 15 (AF_UNIX)

Help me solve the problem

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