Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-server with USE="minimal", GLX fails to load [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Tue Oct 20, 2015 3:01 pm    Post subject: Reply with quote

ExecutorElassus wrote:

Code:
Section "Files"
        ModulePath "/usr/lib64/opengl/nvidia"
        ModulePath "/usr/lib64/xorg/modules"
        ModulePath "/usr/lib64/opengl/nvidia/extensions"
EndSection


Keep sanitize it down, i have that myself (32bits)
Code:
Section "Files"
   ModulePath "/usr/lib/opengl/nvidia"
   ModulePath "/usr/lib/xorg/modules"
EndSection

And this is enough for xorg to find it, even it is in nvidia/extensions
Code:
[    13.695] (**) ModulePath set to "/usr/lib/opengl/nvidia,/usr/lib/xorg/modules"
...
[    13.737] (II) Loading /usr/lib/opengl/nvidia/extensions/libglx.so

Look also if /usr/lib64/opengl/nvidia/lib is sane (no dead symlink...)
Code:
...
lrwxrwxrwx 1 root root      10  4 juin  02:31 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root      15  4 juin  02:31 libGL.so.1 -> libGL.so.352.09
-rwxr-xr-x 1 root root 1042924  4 juin  02:31 libGL.so.352.09
...
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1170
Location: Stuttgart, Germany

PostPosted: Tue Oct 20, 2015 4:19 pm    Post subject: Reply with quote

Code:
 $ emerge -pv xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-base/xorg-server-1.17.2-r2:0/1.17.2::gentoo  USE="ipv6 minimal suid udev xorg -dmx -doc -glamor -kdrive -libressl -nptl (-selinux) -static-libs -systemd -tslib -unwind -wayland -xephyr -xnest -xvfb" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
I have no idea why xorg doesn't have a GLX module. The only ones I can find are in nvidia subdirectories.

VIDEO_CARDS="nvidia" is set in make.conf.

I always do 'emerge -uD world' after a --sync. I don't seem to have eix installed, so I can't check that atm.

No links in /usr/lib64/opengl/nvidia/lib are dead, and all point to the current (358.09) version of libGL, libvdpau, libGLESv2, etc:

Code:
# ls -l /usr/lib64/opengl/nvidia/lib/
total 3096
lrwxrwxrwx 1 root root      18 18. Okt 19:37 libEGL_nvidia.so -> libEGL_nvidia.so.1
-rwxr-xr-x 1 root root  954592 18. Okt 19:37 libEGL_nvidia.so.0
lrwxrwxrwx 1 root root      18 18. Okt 19:37 libEGL_nvidia.so.1 -> libEGL_nvidia.so.0
lrwxrwxrwx 1 root root      11 18. Okt 19:37 libEGL.so -> libEGL.so.1
-rwxr-xr-x 1 root root   18464 18. Okt 19:37 libEGL.so.1
lrwxrwxrwx 1 root root      18 18. Okt 19:37 libGLdispatch.so -> libGLdispatch.so.1
-rwxr-xr-x 1 root root  490544 18. Okt 19:37 libGLdispatch.so.0
lrwxrwxrwx 1 root root      18 18. Okt 19:37 libGLdispatch.so.1 -> libGLdispatch.so.0
lrwxrwxrwx 1 root root      17 18. Okt 19:37 libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx 1 root root      22 18. Okt 19:37 libGLESv1_CM.so.1 -> libGLESv1_CM.so.358.09
-rwxr-xr-x 1 root root   51200 18. Okt 19:37 libGLESv1_CM.so.358.09
lrwxrwxrwx 1 root root      14 18. Okt 19:37 libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root      19 18. Okt 19:37 libGLESv2.so.2 -> libGLESv2.so.358.09
-rwxr-xr-x 1 root root   75520 18. Okt 19:37 libGLESv2.so.358.09
lrwxrwxrwx 1 root root      10 18. Okt 19:37 libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root      15 18. Okt 19:37 libGL.so.1 -> libGL.so.358.09
-rwxr-xr-x 1 root root 1235752 18. Okt 19:37 libGL.so.358.09
lrwxrwxrwx 1 root root      14 18. Okt 19:37 libOpenGL.so -> libOpenGL.so.1
-rwxr-xr-x 1 root root  249144 18. Okt 19:37 libOpenGL.so.0
lrwxrwxrwx 1 root root      14 18. Okt 19:37 libOpenGL.so.1 -> libOpenGL.so.0
lrwxrwxrwx 1 root root      13 18. Okt 19:37 libvdpau.so -> libvdpau.so.1
lrwxrwxrwx 1 root root      18 18. Okt 19:37 libvdpau.so.1 -> libvdpau.so.358.09
-rwxr-xr-x 1 root root    7016 18. Okt 19:37 libvdpau.so.358.09
lrwxrwxrwx 1 root root      19 18. Okt 19:37 libvdpau_trace.so -> libvdpau_trace.so.1
lrwxrwxrwx 1 root root      24 18. Okt 19:37 libvdpau_trace.so.1 -> libvdpau_trace.so.358.09
-rwxr-xr-x 1 root root   46872 18. Okt 19:37 libvdpau_trace.so.358.09

As I said in the previous comment, I used eselect to force a switch back and forth between the xorg opengl module and the nvidia one, which did not help.

I cleaned up /etc/X11/xorg.conf.d/20opengl.conf as per your suggestion. I'll report back in a sec.
UPDATE: No change :(

I have a bug filed with nvidia, but so far no answer. I'll report back if I heard anything.

Other suggestions?

Cheers,

EE
UPDATE2: The nVidia logo flashes across the screen for like half a second before the greeter fires up. Last time it did, I saw a line of red text that might have been an error message. It went by too fast to read; is there some log where I can find out what it said? Are there any other logs where nvidia might report errors?
Back to top
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 427

PostPosted: Tue Oct 20, 2015 7:45 pm    Post subject: Reply with quote

You saw that I dont have minimal flag set in xorg-server, so why u haven't checked that yet ?
And I checked your genlop logs, and you upgraded xorg and kernel in the same time,and xorg logs are from newest kernel - so why u havent checked old kernel yet ?
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Wed Oct 21, 2015 1:14 am    Post subject: Reply with quote

I think mir3x got it pointing out the minimal useflag.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1170
Location: Stuttgart, Germany

PostPosted: Wed Oct 21, 2015 4:41 am    Post subject: Reply with quote

WTF.

It was, in fact, the 'minimal' USE-flag. setting xorg-server to USE="-minimal" and remerging got me a working GLX module.

Geez, that was a dumb mistake. Thank you so much for helping me nail it down. So, for people from the future: PROTIP: the 'minimal' flag removes GLX support from my xorg server, so don't emerge xorge-server with that set if you want to have a working opengl setup (even if opengl is supplied by an outside source like nvidia).

Cheers,

EE
(setting to SOLVED)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Oct 21, 2015 8:30 am    Post subject: Reply with quote

ExecutorElassus wrote:
It was, in fact, the 'minimal' USE-flag. setting xorg-server to USE="-minimal" and remerging got me a working GLX module. [...] So, for people from the future: PROTIP: the 'minimal' flag removes GLX support from my xorg server, so don't emerge xorge-server with that set if you want to have a working opengl setup (even if opengl is supplied by an outside source like nvidia).

ExecutorElassus, et al ... I suspect something other than the minimal useflag at issue here, or at least that '-minimal' is required for a working GLX. I have 'minimal' set on xorg-server and GLX is enabled ... no nvidia card however.

Code:
#  grep GLX /var/log/Xorg.0.log
[1110914.555] (==) AIGLX enabled
[1110914.557] Loading extension GLX
[1110914.762] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[1110914.762] (II) AIGLX: enabled GLX_ARB_create_context
[1110914.762] (II) AIGLX: enabled GLX_ARB_create_context_profile
[1110914.762] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[1110914.762] (II) AIGLX: enabled GLX_INTEL_swap_event
[1110914.762] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[1110914.762] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[1110914.762] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[1110914.762] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[1110914.762] (II) AIGLX: Loaded and initialized i915
[1110914.762] (II) GLX: Initialized DRI2 GL provider for screen 0

best ... khay
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1170
Location: Stuttgart, Germany

PostPosted: Wed Oct 21, 2015 9:14 am    Post subject: Reply with quote

Hrm, curious: I'm also trying to use electricsheep, and it is failing trying to load swrast, specifically with an error about DRI2 being not enabled:
Code:
 $ LIBGL_DEBUG=verbose xscreensaver-demo
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: Can't open configuration file /[$HOME]/.drirc: No such file or directory.
libGL: Can't open configuration file /[$HOME]/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
CElectricSheep()
CElectricSheep_Linux()
Startup()
SetInstallation: /usr/share/electricsheep/Scripts
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: Can't open configuration file /[$HOME]/.drirc: No such file or directory.
libGL: Can't open configuration file /[$HOME]/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  36
  Current serial number in output stream:  37

I wonder if that might also be an issue here, since you seem able to load DRI2 (but that might also just be a problem with using nVidia's GLX, which I seem to remember conflicts with the DRI module).

Cheers,

EE
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Wed Oct 21, 2015 10:24 am    Post subject: Reply with quote

Look if your composite extension is now enable (it's set per default on since xorg 1.8, and it wasn't before in your log), then look if you have set AllowGLXWithComposite, and maybe dri2 will be more happier then.

You may also ask in the report thread the crown for "worst xorg-server of the month", i'm pretty sure you will earn it :)

for your info:
Code:
grep -i composite /var/log/Xorg.0.log
[    13.695] (**) Extension "Composite" is enabled
[    14.949] (**) NVIDIA(0): Option "AllowGLXWithComposite" "1"
grep -i dri2 /var/log/Xorg.0.log
[    15.534] (II) Loading sub module "dri2"
[    15.534] (II) LoadModule: "dri2"
[    15.534] (II) Module "dri2" already built-in
[    15.534] (II) NVIDIA(0): [DRI2] Setup complete
[    15.534] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
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
Goto page Previous  1, 2
Page 2 of 2

 
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