FS#53704 - [xorg|nvidia] Xorg loads wrong libglx when using nvidia driver

Attached to Project: Arch Linux
Opened by Rokas Kupstys (rokups) - Tuesday, 18 April 2017, 10:18 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 08 January 2018, 16:07 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Laurent Carlier (lordheavy)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

As of recently Xorg tries to load incorrect glx module and fails. Session downgrades to using llvmpipe for OpenGL rendering and that is dreadfully slow. I tried to downgrade to several old backups i had, also tried several older kernel versions including LTS kernel but none of that helped so i do not know what exactly is causing this.

[ 508.502] (II) LoadModule: "glx"
[ 508.502] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 508.503] (II) Module glx: vendor="X.Org Foundation"
...
[ 508.505] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 508.505] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 508.505] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 508.505] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 508.505] (EE) NVIDIA(0): reinstalling the NVIDIA driver.


/usr/lib/nvidia/xorg/ is owned by nvidia-utils 378.13-6
/usr/lib/xorg/modules/extensions/libglx.so is owned by xorg-server 1.19.3-2
/usr/lib/libGLdispatch.so is owned by libglvnd 0.2.999+g4ba53457-2
/usr/lib/libGLESv1_CM_nvidia.so is owned by nvidia-utils 378.13-6
/usr/lib/libGLESv1_CM.so is owned by libglvnd 0.2.999+g4ba53457-2
/usr/lib/libGLESv2_nvidia.so is owned by nvidia-utils 378.13-6
/usr/lib/libGLESv2.so is owned by libglvnd 0.2.999+g4ba53457-2
/usr/lib/libGLEW.so is owned by glew 2.0.0-1
/usr/lib/libGL.so is owned by libglvnd 0.2.999+g4ba53457-2
/usr/lib/libGLU.so is owned by glu 9.0.0-4
/usr/lib/libGLX_mesa.so is owned by mesa 17.0.3-1
/usr/lib/libGLX_nvidia.so is owned by nvidia-utils 378.13-6
/usr/lib/libGLX.so is owned by libglvnd 0.2.999+g4ba53457-2
nvidia-dkms-378.13-5


To fix the issue i had to point xorg to nvidia's xorg module path:

~ % cat /etc/X11/xorg.conf.d/20-nvidia.conf
Section "Files"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection

This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Monday, 08 January 2018, 16:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  I think this is fixed. Reopen if it isn't.
Comment by Darek (blablo) - Tuesday, 18 April 2017, 19:36 GMT Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 07 January 2018, 12:47 GMT
Please try the package in [testing].
Comment by ads (flv) - Sunday, 07 January 2018, 18:58 GMT
Sven-Hendrik

The new change makes things worse: https://bugs.archlinux.org/task/56993
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 07 January 2018, 19:20 GMT
Will check that out. However, it hopefully fixes this issue as well as https://bugs.archlinux.org/task/53090
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 08 January 2018, 00:10 GMT
Is this particular issue fixed?

Loading...