Closed Perkelatorz closed 3 months ago
See neutrinolabs/xorgxrdp#241
Try making the changes in neutrinolabs/xorgxrdp@b7002eee91b104dee8d9b9479e306419eaff5b8d to /etc/X11/xrdp/xorg.conf
and report back.
Did not seem to have fix it
Also did try commenting out Option "DRMDevice" ""
/etc/X11/xrdp/xorg.conf
Section "ServerLayout"
Identifier "X11 Server"
Screen "Screen (xrdpdev)"
InputDevice "xrdpMouse" "CorePointer"
InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection
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
Section "Module"
Load "dbe"
Load "ddc"
Load "extmod"
Load "glx"
Load "int10"
Load "record"
Load "vbe"
Load "glamoregl"
Load "xorgxrdp"
Load "fb"
EndSection
Section "InputDevice"
Identifier "xrdpKeyboard"
Driver "xrdpkeyb"
EndSection
Section "InputDevice"
Identifier "xrdpMouse"
Driver "xrdpmouse"
EndSection
Section "Monitor"
Identifier "Monitor"
Option "DPMS"
HorizSync 30-80
VertRefresh 60-75
ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection
Section "Device"
Identifier "Video Card (xrdpdev)"
Driver "xrdpdev"
#Option "DRMDevice" "/dev/dri/renderD128"
Option "DRMDevice" ""
Option "DRI3" "1"
EndSection
Section "Screen"
Identifier "Screen (xrdpdev)"
Device "Video Card (xrdpdev)"
Monitor "Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
EndSubSection
EndSection
Could you provide .xorgxrdp.10.log
after making the changes?
.xorgxrdp.10.log
[ 39.759]
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[ 39.760] Current Operating System: Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64
[ 39.760] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=9907bc31-02 rootfstype=ext4 fsck.repair=yes rootwait
[ 39.760] xorg-server 2:21.1.7-3+rpt2+deb12u7 (https://www.debian.org/support)
[ 39.760] Current version of pixman: 0.42.2
[ 39.760] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 39.760] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 39.760] (++) Log file: ".xorgxrdp.10.log", Time: Tue Aug 13 20:18:16 2024
[ 39.762] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[ 39.762] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 39.762] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 39.763] (**) Option "defaultserverlayout" "X11 Server"
[ 39.763] (**) ServerLayout "X11 Server"
[ 39.763] (**) |-->Screen "Screen (xrdpdev)" (0)
[ 39.763] (**) | |-->Monitor "Monitor"
[ 39.764] (**) | |-->Device "Video Card (xrdpdev)"
[ 39.764] (**) | |-->GPUDevice "kms"
[ 39.764] (**) |-->Input Device "xrdpMouse"
[ 39.764] (**) |-->Input Device "xrdpKeyboard"
[ 39.764] (**) Option "DontVTSwitch" "on"
[ 39.764] (**) Option "AutoAddDevices" "off"
[ 39.764] (**) Option "AutoAddGPU" "off"
[ 39.764] (**) Not automatically adding devices
[ 39.764] (==) Automatically enabling devices
[ 39.764] (**) Not automatically adding GPU devices
[ 39.764] (==) Automatically binding GPU devices
[ 39.764] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 39.765] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 39.765] Entry deleted from font path.
[ 39.765] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 39.765] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 39.765] (II) Loader magic: 0x556f2e0ef0
[ 39.765] (II) Module ABI versions:
[ 39.765] X.Org ANSI C Emulation: 0.4
[ 39.765] X.Org Video Driver: 25.2
[ 39.765] X.Org XInput driver : 24.4
[ 39.765] X.Org Server Extension : 10.0
[ 39.768] (--) using VT number 2
[ 39.768] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 39.771] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 39.771] (II) Platform probe for /sys/devices/platform/soc/soc:gpu/drm/card0
[ 39.771] (II) no primary bus or device found
[ 39.771] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 39.771] (II) LoadModule: "dbe"
[ 39.772] (II) Module "dbe" already built-in
[ 39.772] (II) LoadModule: "ddc"
[ 39.772] (II) Module "ddc" already built-in
[ 39.772] (II) LoadModule: "extmod"
[ 39.772] (II) Module "extmod" already built-in
[ 39.772] (II) LoadModule: "glx"
[ 39.775] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 39.779] (II) Module glx: vendor="X.Org Foundation"
[ 39.780] compiled for 1.21.1.7, module version = 1.0.0
[ 39.780] ABI class: X.Org Server Extension, version 10.0
[ 39.780] (II) LoadModule: "int10"
[ 39.780] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 39.793] (II) Module int10: vendor="X.Org Foundation"
[ 39.793] compiled for 1.21.1.7, module version = 1.0.0
[ 39.793] ABI class: X.Org Video Driver, version 25.2
[ 39.793] (II) LoadModule: "record"
[ 39.793] (II) Module "record" already built-in
[ 39.793] (II) LoadModule: "vbe"
[ 39.793] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 39.793] (II) Module int10: vendor="X.Org Foundation"
[ 39.793] compiled for 1.21.1.7, module version = 1.0.0
[ 39.793] ABI class: X.Org Video Driver, version 25.2
[ 39.793] (II) LoadModule: "glamoregl"
[ 39.794] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 39.830] (II) Module glamoregl: vendor="X.Org Foundation"
[ 39.831] compiled for 1.21.1.7, module version = 1.0.1
[ 39.831] ABI class: X.Org ANSI C Emulation, version 0.4
[ 39.831] (II) LoadModule: "xorgxrdp"
[ 39.831] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[ 39.840] (II) Module XORGXRDP: vendor="X.Org Foundation"
[ 39.840] compiled for 1.21.1.5, module version = 0.9.19
[ 39.840] ABI class: X.Org Video Driver, version 25.2
[ 39.840] xorgxrdpSetup:
[ 39.840] (II) LoadModule: "fb"
[ 39.840] (II) Module "fb" already built-in
[ 39.840] (II) LoadModule: "xrdpdev"
[ 39.840] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[ 39.845] (II) Module XRDPDEV: vendor="X.Org Foundation"
[ 39.845] compiled for 1.21.1.5, module version = 0.9.19
[ 39.845] ABI class: X.Org Video Driver, version 25.2
[ 39.845] xrdpdevSetup:
[ 39.845] (II) LoadModule: "modesetting"
[ 39.845] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 39.846] (II) Module modesetting: vendor="X.Org Foundation"
[ 39.846] compiled for 1.21.1.7, module version = 1.21.1
[ 39.846] Module class: X.Org Video Driver
[ 39.846] ABI class: X.Org Video Driver, version 25.2
[ 39.846] (II) LoadModule: "xrdpmouse"
[ 39.846] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[ 39.851] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[ 39.851] compiled for 1.21.1.5, module version = 0.9.19
[ 39.851] Module class: X.Org XInput Driver
[ 39.851] ABI class: X.Org XInput driver, version 24.4
[ 39.851] rdpmousePlug:
[ 39.851] (II) LoadModule: "xrdpkeyb"
[ 39.851] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[ 39.856] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[ 39.856] compiled for 1.21.1.5, module version = 0.9.19
[ 39.856] Module class: X.Org XInput Driver
[ 39.856] ABI class: X.Org XInput driver, version 24.4
[ 39.856] rdpkeybPlug:
[ 39.856] rdpIdentify:
[ 39.856] (II) XRDPDEV: driver for xrdp: XRDPDEV
[ 39.856] rdpDriverFunc: op 10
[ 39.856] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 39.856] (EE)
Fatal server error:
[ 39.856] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
[ 39.856] (EE)
[ 39.856] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 39.856] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information.
[ 39.856] (EE)
[ 39.857] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 39.857] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 39.857] (EE) Server terminated with error (1). Closing log file.
Never mind, I am an idiot. I had Option "GPUDevice" ""
not just GPUDevice ""
that works completely normally sorry about that. Need to test it on pi 5 and 4 to make sure it still works. Thank you so much for the help I have been banging my head into this for like 2 weeks.
That's cool - I'm sure I've made exactly the same mistake myself in the past!
Just want to inform you guys that don't work with pi 2. After I set the DRMDevice to "" (and carefully watched that no typo is there) and restarting the xrdp service my new log-entries are these:
/var/log/xrdp-sesman.log
[...]
[20240916-17:25:20] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 35442
[20240916-17:25:20] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20240916-17:25:20] [INFO ] ++ created session (access granted): username hubert, ip ::ffff:192.168.1.61:20749 - socket: 12
[20240916-17:25:20] [INFO ] starting Xorg session...
[20240916-17:25:20] [INFO ] Starting session: session_pid 1465, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.1.61:20749 - socket: 12, user name hubert
[20240916-17:25:20] [INFO ] [session start] (display 10): calling auth_start_session from pid 1465
[20240916-17:25:20] [ERROR] sesman_data_in: scp_process_msg failed
[20240916-17:25:20] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20240916-17:25:22] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20240916-17:25:22] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20240916-17:25:22] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20240916-17:25:22] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20240916-17:25:22] [INFO ] Session started successfully for user hubert on display 10
[20240916-17:25:22] [INFO ] Starting the xrdp channel server for display 10
[20240916-17:25:22] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20240916-17:25:22] [INFO ] Session in progress on display 10, waiting until the window manager (pid 1492) exits to end the session
[20240916-17:25:23] [WARN ] Window manager (pid 1492, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem
[20240916-17:25:23] [WARN ] Window manager (pid 1492, display 10) exited quickly (1 secs). This could indicate a window manager config problem
[20240916-17:25:23] [INFO ] Calling auth_stop_session and auth_end from pid 1465
[20240916-17:25:23] [INFO ] Terminating X server (pid 1493) on display 10
[20240916-17:25:23] [INFO ] Terminating the xrdp channel server (pid 1512) on display 10
[20240916-17:25:23] [INFO ] X server on display 10 (pid 1493) returned exit code 1 and signal number 0
[20240916-17:25:23] [INFO ] xrdp channel server for display 10 (pid 1512) exit code 0 and signal number 0
[20240916-17:25:23] [INFO ] cleanup_sockets:
[20240916-17:25:23] [INFO ] Process 1465 has exited
[20240916-17:25:23] [INFO ] ++ terminated session: username hubert, display :10.0, session_pid 1465, ip ::ffff:192.168.1.61:20749 - socket: 12
Yeah, I really have the old fart pi 2 here, but it's more a useless playing around at the moemnt with it but nevertheless it would be nice if a real xrdp works as with my newer pi systems and I don't have to use the workaround (vnc by commenting out the [Xorg] section).
xrdp version
0.9.21.1
Detailed xrdp version, build options
Operating system & version
Debian GNU/Linux 12 (bookworm)
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
xorgxrdp
What desktop environment do you use?
LXDE-pi
Environment xrdp running on
Raspberry Pi Model 3B+ and Raspberry Pi 5
What's your client?
mstsc
Area(s) with issue?
Other
Steps to reproduce
Install Raspberry Pi OS using Raspberry Pi Imager. After booting update repos and install xrdp. This works on the pi 4 and 5, but not the pi 3. Same img works fine on both the 4 and 5
✔️ Expected Behavior
Connect with RDP
❌ Actual Behavior
The attached screenshot is all I get.
Anything else?
xrdp-sesman.log
.xsession.log
.xorgxrdp.10.log