Public bug reported:

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

** Affects: nvidia-graphics-drivers-304 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: libglx.so module nvidia path

** Attachment added: "xorg.conf"
   https://bugs.launchpad.net/bugs/1276123/+attachment/3968621/+files/xorg.conf

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-graphics-drivers-304 in Ubuntu.
https://bugs.launchpad.net/bugs/1276123

Title:
  Xorg loads wrong libglx.so

Status in “nvidia-graphics-drivers-304” package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1276123/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to