You are not logged in.

#1 2017-02-21 17:26:17

damnbug
Member
Registered: 2012-09-18
Posts: 84

[SOLVED] Issue with nvidia + Xorg + GLX

Lately I've been experiencing a problem with GLX (libglx.so). When running glxinfo or glxgears, the following error appears:

name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual

This affects Kodi, Stellarium, etc., as they won't start.

But if I logout from lightdm and login again, the error disappears. So to reproduce the issue I tried these steps: logout from Xfce, or simply restarting X; stop lightdm.service; remove nvidia module; start lightdm.service; login into Xfce. And the error reappears. But... if I load nvidia module BEFORE starting lightdm, the error is gone.

Packages installed:

nvidia-340xx 340.102-3
nvidia-340xx-libgl 340.102-1
lib32-nvidia-340xx-libgl 340.102-1

xorg-server 1.19.1-5
xorg-server-common 1.19.1-5

So the obvious question is: how to fix this without restarting the Xfce session?

Last edited by damnbug (2017-02-21 21:02:31)

Offline

#2 2017-02-21 18:07:31

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: [SOLVED] Issue with nvidia + Xorg + GLX

Please post the system's xorg.log plus associated config files.

Offline

#3 2017-02-21 20:53:46

damnbug
Member
Registered: 2012-09-18
Posts: 84

Re: [SOLVED] Issue with nvidia + Xorg + GLX

The solution is to add

Section "Files"
	ModulePath "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
EndSection

to /etc/X11/xorg.conf.d/20-nvidia.conf

Last edited by damnbug (2017-02-21 20:55:50)

Offline

#4 2017-02-21 23:43:55

lordheavy
Developer
From: France
Registered: 2010-04-01
Posts: 292

Re: [SOLVED] Issue with nvidia + Xorg + GLX

This should be fixed with nvidia-340xx-utils-340.102-3.

The package was relying on the OutputClass method from xorg, but the nvidia-340xx driver doesn't provide any nvidia-drm module, so ModulePath directive wasn't executed, and nvidia glx library not loaded.

Do you have any xorg logs? I probably break module autoloading with  nvidia-340xx-utils-340.102-3? (logs with release 2 and 3 please)

Last edited by lordheavy (2017-02-22 09:11:55)

Offline

Board footer

Powered by FluxBB