Nvidia graphics issues GLX not loading

Since decemeber, my graphics card (GTX 570) compostier wasnt working. I had time this morning to troubleshoot the issue and couldnt find anything on manjaros site but did find somethings on arch (i cant post links).

Key identifier in /var/log/Xorg.0.log

    16.042] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[    16.042] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[    16.042] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[    16.042] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[    16.042] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.

You can see that it is loading the wrong glx module here (it should be using the one in /usr/lib/nvidia/xorg)

[     4.473] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     4.483] (II) Module glx: vendor="X.Org Foundation"
[     4.483]    compiled for 1.20.10, module version = 1.0.0
[     4.483]    ABI class: X.Org Server Extension, version 10.0

In my case I updated /etc/X11/xorg.conf to add in the section

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

And added into the /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

Section "OutputClass"
  Identifier     "nvidia"
  MatchDriver    "nvidia-drm"
  Driver         "nvidia"
  ModulePath "/usr/lib/nvidia/xorg"
  ModulePath "/usr/lib/xorg/modules"

Now the log files shows the correct module is loaded

[     4.448] (II) LoadModule: "glx"
[     4.450] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[     4.512] (II) Module glx: vendor="NVIDIA Corporation"
[     4.512]    compiled for 4.0.2, module version = 1.0.0
[     4.512]    Module class: X.Org Server Extension
[     4.512] (II) NVIDIA GLX Module  390.141  Mon Dec 28 16:17:40 UTC 2020
[     4.513] (II) LoadModule: "nvidia"
[     4.514] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     4.520] (II) Module nvidia: vendor="NVIDIA Corporation"
[     4.520]    compiled for 4.0.2, module version = 1.0.0
[     4.520]    Module class: X.Org Video Driver

Hope this helps someone else

1 Like

You did save my ass ! I’ve been trying anything for hours and hours. Thanks for sharing this