Xorg loads wrong libglx.so

Bug #1276123 reported by PhilippeSeidel on 2014-02-04
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
NVIDIA Drivers Ubuntu
Undecided
Unassigned
nvidia-graphics-drivers-304 (Ubuntu)
Undecided
Unassigned

Bug Description

This bug concerns all versions of the nvidia-packages I have tested so far, actually since ubuntu 8.something...

If I install the proprietary nvidia drivers, I can properly set up my xorg.conf and the Xorg driver as well as the kernel module load correctly. However, when using unity or anything requiring libglx.so, X simply crashes. The reason is that X is loading the wrong libglx.so:

grep glx /var/log/Xorg.0.log

[ 11312.722] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 11312.722] (II) LoadModule: "glx"
[ 11312.722] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 11312.722] (II) Module glx: vendor="X.Org Foundation"

My first solution was to move /usr/lib/xorg/modules/extensions/libglx.so out of the way and to replace it with a symlink to /usr/lib/nvidia-VERSION/xorg/libglx.so. However, as you might imagine, this quick-and-dirty fix has to be redone each time that MESA gets updated, as my symlink is destroyed. I have now found a better solution, which consists in telling Xorg where the right library is in /etc/X11/xorg.conf

Section "Files"
    ModulePath "/usr/lib/nvidia-VERSION/xorg"
    ModulePath "/usr/lib/xorg/modules"
    ...
EndSection

nvidia-VERSION has to be replaced by the proper nvidia version (such as nvidia-current). As a result, X loads the right libglx.so.

This solution could be included in all nvidia- packages, so that the problem does not occur any longer. I have found other bug reports from other distributions about this, but most are solved by moving libglx.so out of the way.

Just for information, here's some details about my system:
philippe@saaba:~$ dpkg -l xorg
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Architektur Beschreibung
+++-==============-============-============-=================================
ii xorg 1:7.7+1ubunt amd64 X.Org X Window System

philippe@saaba:~$ lspci | grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation G96M [GeForce 9600M GT] (rev a1)

philippe@saaba:/var/log$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10

nvidia-current is at 304.88-0ubuntu8 0, I also had the problem with nvidia-319-updates 319.60-0ubuntu1 0

PhilippeSeidel (pagin) wrote :
tags: added: saucy
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-304 (Ubuntu):
status: New → Confirmed
Christopher Maria (cmrmaria109) wrote :

Is there any way to manually change to the NVIDIA glx in the meantime?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments