neutrinolabs / xorgxrdp

Xorg drivers for xrdp
Other
457 stars 113 forks source link

Xorg update broke XRDP support #201

Closed Pipodi closed 2 years ago

Pipodi commented 2 years ago

I've recently updated my system and after that XRDP broke, again.

[ 28829.495] 
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
[ 28829.496] 
X.Org X Server 1.21.1.1
X Protocol Version 11, Revision 0
[ 28829.496] Current Operating System: Linux PCABS 5.10.79-1-MANJARO #1 SMP PREEMPT Fri Nov 12 20:26:09 UTC 2021 x86_64
[ 28829.496] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=01135b6d-2afc-4866-8400-80dd222761b3 rw quiet resume=UUID=39a87f46-755b-4d74-afdb-dfa6baa111c9 udev.log_priority=3
[ 28829.496]  
[ 28829.496] Current version of pixman: 0.40.0
[ 28829.496]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[ 28829.496] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 28829.496] (++) Log file: ".xorgxrdp.10.log", Time: Tue Nov 23 17:30:59 2021
[ 28829.496] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[ 28829.496] (EE) Unable to locate/open config directory: "/"
[ 28829.496] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 28829.496] (**) Option "defaultserverlayout" "X11 Server"
[ 28829.496] (**) ServerLayout "X11 Server"
[ 28829.496] (**) |-->Screen "Screen (xrdpdev)" (0)
[ 28829.496] (**) |   |-->Monitor "Monitor"
[ 28829.496] (**) |   |-->Device "Video Card (xrdpdev)"
[ 28829.496] (**) |-->Input Device "xrdpMouse"
[ 28829.496] (**) |-->Input Device "xrdpKeyboard"
[ 28829.496] (**) Option "DontVTSwitch" "on"
[ 28829.496] (**) Option "AutoAddDevices" "off"
[ 28829.496] (**) Not automatically adding devices
[ 28829.496] (==) Automatically enabling devices
[ 28829.496] (==) Automatically adding GPU devices
[ 28829.496] (==) Automatically binding GPU devices
[ 28829.496] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 28829.496] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 28829.496]    Entry deleted from font path.
[ 28829.496] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 28829.496]    Entry deleted from font path.
[ 28829.496] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 28829.496]    Entry deleted from font path.
[ 28829.496] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 28829.496]    Entry deleted from font path.
[ 28829.496] (==) FontPath set to:
    /usr/share/fonts/misc,
    /usr/share/fonts/TTF
[ 28829.496] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 28829.496] (II) Module ABI versions:
[ 28829.496]    X.Org ANSI C Emulation: 0.4
[ 28829.496]    X.Org Video Driver: 25.2
[ 28829.496]    X.Org XInput driver : 24.4
[ 28829.496]    X.Org Server Extension : 10.0
[ 28829.497] (--) using VT number 1

[ 28829.497] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 28829.497] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 28829.497] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 28829.499] (--) PCI:*(0@0:2:0) 8086:3e9b:103c:85fc rev 0, Mem @ 0xb2000000/16777216, 0x80000000/536870912, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[ 28829.499] (--) PCI: (1@0:0:0) 10de:1f91:103c:85fc rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288
[ 28829.499] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 28829.499] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 28829.499] (II) LoadModule: "dbe"
[ 28829.499] (II) Module "dbe" already built-in
[ 28829.499] (II) LoadModule: "ddc"
[ 28829.499] (II) Module "ddc" already built-in
[ 28829.499] (II) LoadModule: "extmod"
[ 28829.499] (II) Module "extmod" already built-in
[ 28829.499] (II) LoadModule: "glx"
[ 28829.499] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 28829.500] (II) Module glx: vendor="X.Org Foundation"
[ 28829.500]    compiled for 1.21.1.1, module version = 1.0.0
[ 28829.500]    ABI class: X.Org Server Extension, version 10.0
[ 28829.500] (II) LoadModule: "int10"
[ 28829.500] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 28829.501] (II) Module int10: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.21.1.1, module version = 1.0.0
[ 28829.501]    ABI class: X.Org Video Driver, version 25.2
[ 28829.501] (II) LoadModule: "record"
[ 28829.501] (II) Module "record" already built-in
[ 28829.501] (II) LoadModule: "vbe"
[ 28829.501] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 28829.501] (II) Module int10: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.21.1.1, module version = 1.0.0
[ 28829.501]    ABI class: X.Org Video Driver, version 25.2
[ 28829.501] (II) LoadModule: "xorgxrdp"
[ 28829.501] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[ 28829.501] (II) Module XORGXRDP: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.20.13, module version = 0.2.17
[ 28829.501]    ABI class: X.Org Video Driver, version 24.1
[ 28829.501] (EE) xorgxrdp: module ABI major version (24) doesn't match the server's version (25)
[ 28829.501] (EE) Failed to load module "xorgxrdp" (module requirement mismatch, 0)
[ 28829.501] (II) LoadModule: "fb"
[ 28829.501] (II) Module "fb" already built-in
[ 28829.501] (II) LoadModule: "xrdpdev"
[ 28829.501] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[ 28829.501] (II) Module XRDPDEV: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.20.13, module version = 0.2.17
[ 28829.501]    ABI class: X.Org Video Driver, version 24.1
[ 28829.501] (EE) xrdpdev: module ABI major version (24) doesn't match the server's version (25)
[ 28829.501] (EE) Failed to load module "xrdpdev" (module requirement mismatch, 0)
[ 28829.501] (II) LoadModule: "xrdpmouse"
[ 28829.501] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[ 28829.501] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.20.13, module version = 0.2.17
[ 28829.501]    Module class: X.Org XInput Driver
[ 28829.501]    ABI class: X.Org XInput driver, version 24.1
[ 28829.501] rdpmousePlug:
[ 28829.501] (II) LoadModule: "xrdpkeyb"
[ 28829.501] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[ 28829.501] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.20.13, module version = 0.2.17
[ 28829.501]    Module class: X.Org XInput Driver
[ 28829.501]    ABI class: X.Org XInput driver, version 24.1
[ 28829.501] rdpkeybPlug:
[ 28829.501] (EE) No drivers available.
[ 28829.501] (EE) 
Fatal server error:
[ 28829.501] (EE) no screens found(EE) 
[ 28829.501] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[ 28829.501] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information.
[ 28829.501] (EE) 
[ 28829.501] (EE) Server terminated with error (1). Closing log file.

I think this is the culprit:

[ 28829.501] (II) Module XORGXRDP: vendor="X.Org Foundation"
[ 28829.501]    compiled for 1.20.13, module version = 0.2.17
[ 28829.501]    ABI class: X.Org Video Driver, version 24.1
[ 28829.501] (EE) xorgxrdp: module ABI major version (24) doesn't match the server's version (25)

If I put the ignoreABI option in the xrdp configuration file, I get:

(EE) Screen(s) found, but none have a usable configuration. 

I tried to downgrade Xorg packages but it has many dependencies and fails while downgrading. These are the Xorg packages that my system updated yesterday:

[2021-11-22T08:58:59+0100] [ALPM] upgraded xorg-server-common (1.20.13-3 -> 21.1.1-3)
[2021-11-22T08:58:59+0100] [ALPM] upgraded xorg-server (1.20.13-3 -> 21.1.1-3.1)
[2021-11-22T08:59:31+0100] [ALPM] upgraded xorg-server-devel (1.20.13-3 -> 21.1.1-3)
metalefty commented 2 years ago

[ 28829.501] (EE) xorgxrdp: module ABI major version (24) doesn't match the server's version (25)

Yes, the ABI version doesn't match. xorgxrdp must be recompiled after Xorg update.

metalefty commented 2 years ago

If I put the ignoreABI option in the xrdp configuration file, I get:

Ignoring ABI version mismatch certainly ignores that error but it will not work. Rebuild it with the new Xorg rather than putting ignoreABI in config.

Pipodi commented 2 years ago

[ 28829.501] (EE) xorgxrdp: module ABI major version (24) doesn't match the server's version (25)

Yes, the ABI version doesn't match. xorgxrdp must be recompiled after Xorg update.

This solved the issue, closing it now, thanks!