Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
trouble with nvidia-drivers and xrdp []
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
johnnyQuad
n00b
n00b


Joined: 30 Jul 2019
Posts: 4

PostPosted: Tue Jul 30, 2019 6:43 pm    Post subject: trouble with nvidia-drivers and xrdp [] Reply with quote

was Solved--but fix no longer working on fresh build. See update message below for details

As much as I like using Gentoo, this single issue has given me enough trouble to consider switching to Arch or back to Debian :(

nvaert1986 -- thanks! but opencl was not the issue. I finally found an answer on a suse forum:

The issue is caused by incompatible libraries. A solution is to make sure xrdp does not use any of the NVidia libraries, but use the Mesa libraries.

If you installed the NVidia driver after a normal OS installtion, all you need to do is editing /etc/xrdp/sesman.ini in section [SessionVariables] add

LD_LIBRARY_PATH=/usr/lib64:/usr/lib


https://www.suse.com/support/kb/doc/?id=7023179

hi - I can't seem to get a remote desktop session working with nvidia-drivers
after setting opengl:
# eselect opengl set nvidia

I can login at the console just fine -- however, if I try to start a remote session using xrdp, it fails
from .xorgxrdp.10.log

Code:
[   578.974] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[   578.974] (II) xfree86: Adding drm device (/dev/dri/card0)
[   578.975] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[   578.975] (--) PCI:*(1@0:0:0) 10de:1e87:1458:37a7 rev 161, Mem @ 0xdb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/131072
[   578.975] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   578.975] (II) LoadModule: "dbe"
[   578.975] (II) Module "dbe" already built-in
[   578.975] (II) LoadModule: "ddc"
[   578.975] (II) Module "ddc" already built-in
[   578.975] (II) LoadModule: "extmod"
[   578.975] (II) Module "extmod" already built-in
[   578.975] (II) LoadModule: "glx"
[   578.976] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   578.976] (II) Module glx: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 1.0.0
[   578.976]    ABI class: X.Org Server Extension, version 10.0
[   578.976] (II) LoadModule: "int10"
[   578.976] (II) Loading /usr/lib64/xorg/modules/libint10.so
[   578.976] (II) Module int10: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 1.0.0
[   578.976]    ABI class: X.Org Video Driver, version 24.0
[   578.976] (II) LoadModule: "record"
[   578.976] (II) Module "record" already built-in
[   578.976] (II) LoadModule: "vbe"
[   578.976] (II) Loading /usr/lib64/xorg/modules/libvbe.so
[   578.976] (II) Module vbe: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 1.1.0
[   578.976]    ABI class: X.Org Video Driver, version 24.0
[   578.976] (II) LoadModule: "xorgxrdp"
[   578.976] (II) Loading /usr/lib64/xorg/modules/libxorgxrdp.so
[   578.976] (II) Module XORGXRDP: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 0.2.10
[   578.976]    ABI class: X.Org Video Driver, version 24.0
[   578.976] xorgxrdpSetup:
[   578.976] (II) LoadModule: "fb"
[   578.976] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   578.976] (II) Module fb: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 1.0.0
[   578.976]    ABI class: X.Org ANSI C Emulation, version 0.4
[   578.976] (II) LoadModule: "xrdpdev"
[   578.976] (II) Loading /usr/lib64/xorg/modules/drivers/xrdpdev_drv.so
[   578.976] (II) Module XRDPDEV: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 0.2.10
[   578.976]    ABI class: X.Org Video Driver, version 24.0
[   578.976] xrdpdevSetup:
[   578.976] (II) LoadModule: "xrdpmouse"
[   578.976] (II) Loading /usr/lib64/xorg/modules/input/xrdpmouse_drv.so
[   578.976] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 0.2.10
[   578.976]    Module class: X.Org XInput Driver
[   578.976]    ABI class: X.Org XInput driver, version 24.1
[   578.976] rdpmousePlug:
[   578.976] (II) LoadModule: "xrdpkeyb"
[   578.976] (II) Loading /usr/lib64/xorg/modules/input/xrdpkeyb_drv.so
[   578.976] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 0.2.10
[   578.976]    Module class: X.Org XInput Driver
[   578.976]    ABI class: X.Org XInput driver, version 24.1
[   578.976] rdpkeybPlug:
[   578.976] rdpIdentify:
[   578.976] (II) XRDPDEV: driver for xrdp: XRDPDEV
[   578.976] rdpDriverFunc: op 10
[   578.976] (WW) Falling back to old probe method for XRDPDEV
[   578.976] rdpProbe:
[   578.976] (II) Loading sub module "fb"
[   578.976] (II) LoadModule: "fb"
[   578.976] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   578.976] (II) Module fb: vendor="X.Org Foundation"
[   578.976]    compiled for 1.20.5, module version = 1.0.0
[   578.976]    ABI class: X.Org ANSI C Emulation, version 0.4
[   578.976] (II) XRDPDEV(0): using default device
[   578.976] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   578.976] rdpPreInit:
[   578.976] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[   578.976] (==) XRDPDEV(0): RGB weight 888
[   578.976] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[   578.976] (==) XRDPDEV(0): Default visual is TrueColor
[   578.976] (==) XRDPDEV(0): DPI set to (96, 96)
[   578.976] (II) XRDPDEV(0):   mode "640x480" ok
[   578.976] (II) XRDPDEV(0):   mode "800x600" ok
[   578.976] (II) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[   578.976] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[   578.976] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   578.976] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[   578.976] rdpScreenInit: pfbMemory bytes 1920000
[   578.976] rdpScreenInit: pfbMemory 0x7f146907a010
[   578.976] rdpSimdInit: assigning yuv functions
[   578.976] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000906ec bx 0x01100800 cx 0x7ffafbff dx 0xbfebfbff
[   578.976] rdpSimdInit: sse2 amd64 yuv functions assigned
[   578.977] rdpXvInit: depth 24
[   578.977] (==) XRDPDEV(0): Backing store enabled
[   578.977] rdpClientConInit: disconnect idle session after [0] sec
[   578.977] rdpClientConInit: kill disconnected [0] timeout [0] sec
[   578.977] rdpScreenInit: out
[   578.977] (II) Initializing extension Generic Event Extension
[   578.977] (II) Initializing extension SHAPE
[   578.977] (II) Initializing extension MIT-SHM
[   578.977] (II) Initializing extension XInputExtension
[   578.977] (II) Initializing extension XTEST
[   578.977] (II) Initializing extension BIG-REQUESTS
[   578.977] (II) Initializing extension SYNC
[   578.977] (II) Initializing extension XKEYBOARD
[   578.977] (II) Initializing extension XC-MISC
[   578.977] (II) Initializing extension XFIXES
[   578.977] (II) Initializing extension RENDER
[   578.977] (II) Initializing extension RANDR
[   578.977] (II) Initializing extension COMPOSITE
[   578.977] (II) Initializing extension DAMAGE
[   578.977] (II) Initializing extension MIT-SCREEN-SAVER
[   578.977] (II) Initializing extension DOUBLE-BUFFER
[   578.977] (II) Initializing extension RECORD
[   578.977] (II) Initializing extension DPMS
[   578.977] (II) Initializing extension Present
[   578.977] (II) Initializing extension DRI3
[   578.977] (II) Initializing extension X-Resource
[   578.977] (II) Initializing extension XVideo
[   578.977] (II) Initializing extension XVideo-MotionCompensation
[   578.977] (II) Initializing extension GLX
[   578.977] (II) AIGLX: Screen 0 is not DRI2 capable
[   578.987] (II) IGLX: Loaded and initialized swrast
[   578.987] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   578.987] (II) Initializing extension XFree86-VidModeExtension
[   578.987] (II) Initializing extension XFree86-DGA
[   578.987] (II) Initializing extension XFree86-DRI
[   578.987] (II) Initializing extension DRI2


from journalctl
Code:

Jul 30 13:26:30 greybeard gnome-session[3853]: gnome-session-is-accelerated: No hardware 3D support.
Jul 30 13:26:30 greybeard gnome-session[3853]: gnome-session-check-accelerated: GL Helper exited with code 256
Jul 30 13:26:31 greybeard gnome-session-c[3911]: eglGetDisplay() failed
Jul 30 13:26:31 greybeard gnome-session[3853]: gnome-session-check-accelerated: GLES Helper exited with code 256
Jul 30 13:26:31 greybeard gnome-session[3853]: gnome-session-binary[3853]: WARNING: software acceleration check >
Jul 30 13:26:31 greybeard gnome-session-binary[3853]: WARNING: software acceleration check failed: Child process>
Jul 30 13:26:31 greybeard gnome-session-f[3917]: Cannot open display:


if i change to a software opengl provider i can start a remote session, but can no longer login at the console:
#eselect opengl set 2
Switching to xorg-x11 OpenGL interface... done


thoughts? suggestions?
_________________
(iγμ∂μ−m)ψ= 0


Last edited by johnnyQuad on Tue Mar 31, 2020 10:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
nvaert1986
n00b
n00b


Joined: 05 May 2019
Posts: 56

PostPosted: Wed Jul 31, 2019 8:59 am    Post subject: Reply with quote

I've encountered a similar issue with the nvidia-drivers, but then connecting to a remote RDP session instead of connecting to the host.

For me the reason was that the opencl USE flag was enabled and a library which freerdp depends on had the support compiled in and for some reason OpenCL was switched to beignet. After running eselect opencl set nvidia the problem was solved with me.

Please do not confuse opengl with opencl (there's a 1 character difference, the c).

I hope this can help you.
Back to top
View user's profile Send private message
johnnyQuad
n00b
n00b


Joined: 30 Jul 2019
Posts: 4

PostPosted: Tue Mar 31, 2020 9:25 pm    Post subject: Xrdp not working after mesa update Reply with quote

I just rebuilt in Gentoo, and X RDP no longer works. In my prior installation I used eselect-opengl to set x11-opengl (instead of Nvidia). However, on the fresh build, Mesa now pulls in Libglvnd -- which was blocked in prior mesa ebuilds. See below for relevant log files cross posted to X RDP issues at github

I'm hoping someone might have a fix before I just downgrade Mesa back to a prior version.

--- Crosspost from github

hi--
I'm having trouble getting xrdp running. i am trying to connect to a fresh gentoo build with gnome, systemd, and nvidia drivers. i can connect from the console just fine, but cannot start a remote session. instead, after entering login credentials the screen turns black and nothing happens.

in a prior build on the same machine, I would use eselect to set the opengl module to x11--i.e., not nvidia. however, eselect-opengl is now blocked by linglvnd-- this used to be the opposite, i.e., libglvnd was blocked by eselect-opengl. below are the logs of m
.xorgxrdp.10.log
essages, xrdp, and xorg. the only thing i see is a DRI authentication error- but I have no idea how to fix.
Note, I Tried switching from gnome-session to /usr/lib/gnome-session/gnome-session/binary as suggested by https://github.com/neutrinolabs/xrdp/wiki/Desktop-Support but still no joy

thoughts? suggestions? questions? I'm grateful for any help.
xorgxrdp.10.log
[ 701.424] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
[ 701.424] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 701.424] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
xrdp-sesman.log

xrdp.log

messages.log
Mar 31 13:37:02 CHERRYTORNADO gnome-session[2630]: gnome-session-binary[2630]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 31 13:37:02 CHERRYTORNADO gnome-session[2630]: gnome-session-binary[2630]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Mar 31 13:37:02 CHERRYTORNADO gnome-session-binary[2630]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 31 13:37:02 CHERRYTORNADO gnome-session-binary[2630]: Unrecoverable failure in required component org.gnome.Shell.desktop
Mar 31 13:37:02 CHERRYTORNADO gnome-session-binary[2630]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Mar 31 13:37:02 CHERRYTORNADO gnome-session-f[2883]: Cannot open display:
_________________
(iγμ∂μ−m)ψ= 0
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1079
Location: Massachusetts USA

PostPosted: Tue Mar 31, 2020 10:55 pm    Post subject: Reply with quote

Try adding the use flag -libglvnd to /etc/portage/make.conf and rebuild mesa and nvidia-drivers. Note the minus sign in -libglvnd.
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 697

PostPosted: Tue Mar 31, 2020 11:06 pm    Post subject: Reply with quote

I wouldn't recommend to disable libglvnd if possible.

If necessary you can still manually select the vendor to use with environment variables (per-application and without any special privileges unlike eselect), albeit it's not something I've used nor xrdp
Code:
export __GLX_VENDOR_LIBRARY_NAME=mesa
maybe?

Edit: I "think" you can also use __GLX_FORCE_VENDOR_LIBRARY_0= where 0 is the X screen number (be 1 for DISPLAY=:1, etc..). Can't really test myself because I don't have mesa installed.
Back to top
View user's profile Send private message
johnnyQuad
n00b
n00b


Joined: 30 Jul 2019
Posts: 4

PostPosted: Thu Apr 02, 2020 9:02 pm    Post subject: Reply with quote

Tried rebuilding with disabled, still no joy. So I rebuilt again without making any use flag changes

at this point, I think the problem is with gnome – session and not XRDP itself. Although I just get a black screen when I connect with XRDP, I can launch applications from another shell, e.g., DISPLAY=:10 gnome-terminal -- this works, but no window manager is running- just a minimal X server. My guess is that I need to change something in either the .xinitrc file or change something about gnome, but I really have no idea as the logs don't really say much other than that X RDP is running fine as is the session manager. Does gnome create any additional log files I might scrutinize?
_________________
(iγμ∂μ−m)ψ= 0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum