-
-
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
connect to rdp but black screen #2379
Comments
Thanks for the logs @rapirent From xrdp-sesman.log, it looks like the X server isn't starting. You should also have a file Thanks. |
oh...so that I should start x server first, I just supposed xrdp will open a x for me thank you! |
I can now have a screen with rdp client, but only for xvnc, I can't use xorg option to login rdp successful... $ ps aux | grep X
root 6040 0.0 0.0 4168 1320 tty1 S+ 09:59 0:00 xinit /root/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.EtaNreKq6j
root 6041 0.1 0.1 2348392 161992 tty1 S<l 09:59 0:00 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.EtaNreKq6j
tony 6819 0.0 0.0 236724 127916 ? S 10:01 0:00 Xvnc :11 -auth .Xauthority -geometry 1920x1080 -depth 32 -rfbauth /home/tony/.vnc/sesman_passwd-tony@tony-arch:11 -bs -nolisten tcp -localhost -dpi 96
tony 7072 0.0 0.0 6680 2552 pts/2 S+ 10:05 0:00 grep --color=auto X if I try to xorg option to open a xrdp session, it will create .xorgxrdp.12.log Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X12-lock
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [DEBUG] Did not find a running X server at /tmp/.X12-lock
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X11-unix/X12
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [DEBUG] Did not find a running X server at /tmp/.X11-unix/X12
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X12-lock
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [DEBUG] Did not find a running X server at /tmp/.X12-lock
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [WARN ] Timed out waiting for X server on display 12 to startup
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [INFO ] Session started successfully for user tony on display 12
Sep 26 10:07:08 tony-arch xrdp-sesman[7356]: [INFO ] Starting the xrdp channel server for display 12
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [INFO ] Session in progress on display 12, waiting until the window manager (pid 7319) exits to>
Sep 26 10:07:08 tony-arch xrdp-sesman[7356]: [DEBUG] Calling exec (excutable: /usr/bin/xrdp-chansrv, arguments: /usr/bin/xrdp-chansrv)
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [DEBUG] waiting for pid 7319 to exit
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X11-unix/X12
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X12-lock
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [WARN ] Timed out waiting for X server on display 12 to startup
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X11-unix/X12
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [DEBUG] Did not find a running X server at /tmp/.X12-lock
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [ERROR] There is no X server active on display 12
Sep 26 10:07:08 tony-arch xrdp-sesman[7319]: [ERROR] A fatal error has occured attempting to start the window manager on display 12, abortin>
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [WARN ] Window manager (pid 7319, display 12) exited quickly (0 secs). This could indicate a wi>
Sep 26 10:07:08 tony-arch xrdp-sesman[7318]: [INFO ] Calling auth_stop_session and auth_end from pid 7318 the content of the .xorgxrdp.12.log is $ cat .xorgxrdp.12.log
[[244356.029]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[244356.029] Current Operating System: Linux tony-arch 5.18.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 02 Jul 2022 21:03:06 +0000 x86_64
[244356.029] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=362716ed-45b1-4997-b6b6-3db909374510 rw loglevel=3 quiet
[244356.029]
[244356.029] Current version of pixman: 0.40.0
[244356.029] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[244356.029] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[244356.029] (++) Log file: ".xorgxrdp.12.log", Time: Mon Sep 26 10:06:58 2022
[244356.029] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[244356.029] (==) Using config directory: "/etc/X11/xorg.conf.d"
[244356.029] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[244356.029] (**) Option "defaultserverlayout" "X11 Server"
[244356.029] (**) ServerLayout "X11 Server"
[244356.029] (**) |-->Screen "Screen (xrdpdev)" (0)
[244356.029] (**) | |-->Monitor "Monitor"
[244356.029] (**) | |-->Device "Video Card (xrdpdev)"
[244356.029] (**) | |-->GPUDevice "Intel Graphics"
[244356.029] (**) | |-->GPUDevice "Intel"
[244356.029] (**) |-->Input Device "xrdpMouse"
[244356.029] (**) |-->Input Device "xrdpKeyboard"
[244356.029] (**) Option "DontVTSwitch" "on"
[244356.029] (**) Option "AutoAddDevices" "off"
[244356.029] (**) Not automatically adding devices
[244356.029] (==) Automatically enabling devices
[244356.029] (==) Automatically adding GPU devices
[244356.029] (==) Automatically binding GPU devices
[244356.029] (==) Max clients allowed: 256, resource mask: 0x1fffff
[244356.029] (WW) The directory "/usr/share/fonts/misc" does not exist.
[244356.029] Entry deleted from font path.
[244356.029] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[244356.029] Entry deleted from font path.
[244356.029] (Run 'mkfontdir' on "/usr/share/fonts/TTF").
[244356.029] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[244356.029] Entry deleted from font path.
[244356.029] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[244356.029] Entry deleted from font path.
[244356.029] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[244356.029] Entry deleted from font path.
[244356.029] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[244356.029] Entry deleted from font path.
[244356.029] (==) FontPath set to:
[244356.029] (==) ModulePath set to "/usr/lib/xorg/modules"
[244356.029] (II) Module ABI versions:
[244356.029] X.Org ANSI C Emulation: 0.4
[244356.029] X.Org Video Driver: 25.2
[244356.029] X.Org XInput driver : 24.4
[244356.029] X.Org Server Extension : 10.0
[244356.029] (--) using VT number 2
[244356.029] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[244356.030] (II) xfree86: Adding drm device (/dev/dri/card0)
[244356.030] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
[244356.030] (II) xfree86: Adding drm device (/dev/dri/card1)
[244356.030] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0/drm/card1
[244356.030] (II) xfree86: Adding drm device (/dev/dri/card2)
[244356.030] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card2
[244356.031] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[244356.031] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[244356.031] (--) PCI:*(0@0:2:0) 8086:3e98:1043:8782 rev 2, Mem @ 0x6032000000/16777216, 0x4000000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[244356.031] (--) PCI: (1@0:0:0) 10de:1c31:10de:131b rev 161, Mem @ 0x72000000/16777216, 0x6020000000/268435456, 0x6030000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288
[244356.031] (--) PCI: (2@0:0:0) 10de:1c31:10de:131b rev 161, Mem @ 0x70000000/16777216, 0x6000000000/268435456, 0x6010000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[244356.031] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[244356.031] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[244356.031] (II) LoadModule: "dbe"
[244356.031] (II) Module "dbe" already built-in
[244356.031] (II) LoadModule: "ddc"
[244356.031] (II) Module "ddc" already built-in
[244356.031] (II) LoadModule: "extmod"
[244356.031] (II) Module "extmod" already built-in
[244356.031] (II) LoadModule: "glx"
[244356.031] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[244356.032] (II) Module glx: vendor="X.Org Foundation"
[244356.032] compiled for 1.21.1.3, module version = 1.0.0
[244356.032] ABI class: X.Org Server Extension, version 10.0
[244356.032] (II) LoadModule: "int10"
[244356.032] (II) Loading /usr/lib/xorg/modules/libint10.so
[244356.032] (II) Module int10: vendor="X.Org Foundation"
[244356.032] compiled for 1.21.1.3, module version = 1.0.0
[244356.032] ABI class: X.Org Video Driver, version 25.2
[244356.032] (II) LoadModule: "record"
[244356.032] (II) Module "record" already built-in
[244356.032] (II) LoadModule: "vbe"
[244356.032] (II) Loading /usr/lib/xorg/modules/libint10.so
[244356.032] (II) Module int10: vendor="X.Org Foundation"
[244356.032] compiled for 1.21.1.3, module version = 1.0.0
[244356.032] ABI class: X.Org Video Driver, version 25.2
[244356.032] (II) LoadModule: "xorgxrdp"
[244356.032] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[244356.032] (II) Module XORGXRDP: vendor="X.Org Foundation"
[244356.032] compiled for 1.21.1.4, module version = 0.9.19
[244356.032] ABI class: X.Org Video Driver, version 25.2
[244356.032] xorgxrdpSetup:
[244356.032] (II) LoadModule: "fb"
[244356.032] (II) Module "fb" already built-in
[244356.032] (II) LoadModule: "xrdpdev"
[244356.032] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[244356.032] (II) Module XRDPDEV: vendor="X.Org Foundation"
[244356.032] compiled for 1.21.1.4, module version = 0.9.19
[244356.032] ABI class: X.Org Video Driver, version 25.2
[244356.032] xrdpdevSetup:
[244356.032] (II) LoadModule: "intel"
[244356.032] (WW) Warning, couldn't open module intel
[244356.032] (EE) Failed to load module "intel" (module does not exist, 0)
[244356.032] (II) LoadModule: "modesetting"
[244356.032] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[244356.033] (II) Module modesetting: vendor="X.Org Foundation"
[244356.033] compiled for 1.21.1.3, module version = 1.21.1
[244356.033] Module class: X.Org Video Driver
[244356.033] ABI class: X.Org Video Driver, version 25.2
[244356.033] (II) LoadModule: "xrdpmouse"
[244356.033] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[244356.033] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[244356.033] compiled for 1.21.1.4, module version = 0.9.19
[244356.033] Module class: X.Org XInput Driver
[244356.033] ABI class: X.Org XInput driver, version 24.4
[244356.033] rdpmousePlug:
[244356.033] (II) LoadModule: "xrdpkeyb"
[244356.033] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[244356.033] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[244356.033] compiled for 1.21.1.4, module version = 0.9.19
[244356.033] Module class: X.Org XInput Driver
[244356.033] ABI class: X.Org XInput driver, version 24.4
[244356.033] rdpkeybPlug:
[244356.033] rdpIdentify:
[244356.033] (II) XRDPDEV: driver for xrdp: XRDPDEV
[244356.033] rdpDriverFunc: op 10
[244356.033] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[244356.033] (EE)
Fatal server error:
[244356.033] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
[244356.033] (EE)
[244356.033] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[244356.033] (EE) Please also check the log file at ".xorgxrdp.12.log" for additional information.
[244356.033] (EE)
[244356.033] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[244356.033] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[244356.033] (EE) Server terminated with error (1). Closing log file. |
I had a similar issue lately. Something is loading the "modesetting" driver. I think as a workaround adding |
Thanks @akarl10 - that could be it. We've seen something similar in #2253. @rapirent - could you possibly try adding the line in bold below to your Section "ServerFlags" # This line prevents "ServerLayout" sections in xorg.conf.d files # overriding the "X11 Server" layout (xrdp #1784) Option "DefaultServerLayout" "X11 Server" Option "DontVTSwitch" "on" Option "AutoAddDevices" "off" Option "AutoAddGPU" "off" EndSection If that doesn't work, please post the contents of the latest ~/.xorgxrdp.*.log here. |
I would like to add something: On a other system (intel gpu) I added something to /etc/X11/xorg.conf.d/ to force the modesetting driver for my gpu on the physical display (something similar/quite the same is on https://wiki.archlinux.org/title/intel_graphics)
The only way to make this driver not load was |
Hi @akarl10 As you say, the xorg.conf rules are pretty complex, and I certainly don't fully understand them. It would be great to hear back from @rapirent or @mustafa58 before we put a PR together. I'll give them a few days to comment. |
I had the same XRDP issue on Ubuntu 20.04.5 LTS with default conguration, after I entered my user & pass, I saw a black screen and the error popup "...login successful for display 11...connection problem, giving up, .... some problem" as the image Imgur My /var/log/xrdp.log
My .xorgxrdp.11.log
How should I do to fix the problem? Thanks for your support, |
@phongtnit :-
install the xorgxrdp package. |
@akarl10 @matt335672 sorry for the late replying there are my ~/.xorgxrdp.10.log my xorg.conf my /etc/X11/xorg.conf.d/* 20-intel.conf.txt anyway, thank you all.. :) |
I think you need to add You should probably revert the changes you have done in the files in xorg.conf.d I think this xorg.conf file should work for you
|
@akarl10 thanks!!! it works |
I ran xorgxrdp and xrdp in my archlinux (kernel: 5.18.9-arch1-1) as a RDP server
but I can't connect to the RDP server from my mac with Microsoft remote desktop (an RDP client in macOS), and it also failed when I tried to use xfreerdp to connect to the xrdp server itself.
(precisely it did connect to the xrdp server but showed all black screen)
I typed in
xfreerdp /v:[ip address of my rdp server] /u:tony /p:[mypassword] /size:800x600 /sound:latency:100
and xfreerdp (also the microsoft remote desktop) show thatI use no display manager but only window manager (dwm)
the attachments are my settings for xrdp, xrdp-sesman, xorg, start-script, syslog
there are other info i think would be helpful...
$ /usr/bin/xrdp --version xrdp 0.9.19 A Remote Desktop Protocol Server. Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors. See https://github.com/neutrinolabs/xrdp for more information. Configure options: --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin --with-systemdsystemunitdir=/usr/lib/systemd/system --enable-jpeg --enable-tjpeg --enable-fuse --enable-fdkaac --enable-opus --enable-rfxcodec --enable-mp3lame --enable-pixman --enable-painter --enable-vsock --enable-ipv6 --enable-pam-config=arch --enable-rdpsndaudin --with-imlib2 CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now Compiled with OpenSSL 1.1.1p 21 Jun 2022
any suggestion is helpful...
thank for your patient for reading my issue
xrdp-sesman-xfreerdp.log
xrdp-xfreerdp.log
xrdp-sesman.log
xrdp.log
xrdpini.txt
sesmanini.txt
xrdpinitrc.txt
xrdp.log
xrdp-sesman.log
xrdp-xfreerdp.log
xrdp-sesman-xfreerdp.log
startwm.txt
The text was updated successfully, but these errors were encountered: