View previous topic :: View next topic |
Author |
Message |
cricketmenace n00b
Joined: 24 May 2022 Posts: 4
|
Posted: Tue May 24, 2022 9:10 pm Post subject: minimal USE flag breaks GLX on x11-base/xorg-server |
|
|
A few months ago I copied some of the steps taken in this thread to fully remove media-libs/mesa from my system, since I'm using Nvidia's driver. Specifically, I've copied (the most recent version of) dri_interfaces.h from Mesa to /usr/include/GL/internal/dri_interface.h and added the --enable-glx option to xorg-server via package.env. I've just emerged @world for the first time in about six months (I know, bad idea) and xorg-server is unable to properly initialize GLX with the minimal USE flag enabled. Here is the relevant portion of ~/.local/share/xorg/Xorg.0.log:
Quote: | [ 16436.069] (II) Loading sub module "glxserver_nvidia"
[ 16436.069] (II) LoadModule: "glxserver_nvidia"
[ 16436.069] (II) Loading /usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so
[ 16436.072] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 16436.072] compiled for 1.6.99.901, module version = 1.0.0
[ 16436.072] Module class: X.Org Server Extension
[ 16436.072] (II) NVIDIA GLX Module 470.103.01 Thu Jan 6 12:16:55 UTC 2022
[ 16436.072] (EE) Can't find the server GLX vendor interface.
|
I can post the full log if needed. I'm able to open Nvidia's settings GUI and play with a few settings, so I am certain the driver is running and working; it's just GLX that's the problem. When removing the minimal USE flag, everything works flawlessly. I have also tried installing Mesa (by removing the minimal USE flag and letting xorg-server pull whatever Mesa stuff it needs) while keeping the minimal USE flag enabled, and still have the same issue. |
|
Back to top |
|
|
Mistwolf Apprentice
Joined: 07 Mar 2007 Posts: 189 Location: Edmonton, AB
|
|
Back to top |
|
|
cricketmenace n00b
Joined: 24 May 2022 Posts: 4
|
Posted: Tue May 24, 2022 9:30 pm Post subject: |
|
|
I did not, eselect opengl on my installation outputs the following:
Quote: | outside ~ # eselect opengl
!!! Error: Can't load module opengl
exiting
|
I'm not too familiar with the OpenGL eselect module, but I've never had to touch it before. The problem doesn't appear to be that xorg is unable to find Nvidia's GLX module, the snipped of the log I posted shows that it does indeed load it just fine. The following line though says something about being unable to find the interface. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2719
|
Posted: Tue May 24, 2022 10:04 pm Post subject: |
|
|
minimal is a flag should generally be careful around, the meaning varies wildly between packages
On xorg, minimal is primarily intended for headless, e.g. USE="minimal xvfb" to get xvfb with minimal dependencies. So it intentionally disables glx and being "broken" is expected if it's disabled. The EXTRA_ECONF=--enable-glx was to force it back on, but it's different now given xorg ebuild changed to use meson which needs MYMESONARGS and a different option, I also recall meson making this more complicated to mesa-less given build system keeps extras that use more mesa headers force-enabled -- but maybe that's different now (on that note I formerly experimented with mesa-less in that thread but I don't do this anymore nor recommend bothering with it -- nvidia can /now/ make use of mesa for gbm too, so it's not entirely useless).
and eselect-opengl is dead/irrelevant, thing of the past. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2964 Location: Edge of marsh USA
|
Posted: Wed May 25, 2022 4:08 am Post subject: |
|
|
Where do you get your eselect opengl module? _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
|