Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-06-2006, 11:23 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 27
Rep:
|
no display: Xorg, Nvidia driver broken after Etch update; Failed to load module "glx"
After updating a system with Debian Etch, Xorg stopped to work. Even recompiling kernel and reinstalling driver didn't help. The problem was that Xorg couldn't load the glx library properly.
When starting Xorg the following was displayed
$startx
...
(EE) Failed to load module "glx" (a required submodule could not be loaded, 0)
(EE) Failed to load module "nvidia" (module does not exist, 0)
(EE) No devices detected.
Fatal server error:
no screens found
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
-Also, /var/log/messages contained error about unable to load GLcore and that it couldn't load
/usr/lib/xorg/modules/extensions/libglx.so and NVIDIA driver.
The root cause seems to ba that the latest Xorg changes the directory hierarchy and the latest NVIDIA 8756 driver don't seems to know about it. It looks like the nvidia driver install itself in /usr/X11R6 but the new Xorg expect it in /usr/lib/xorg/drivers. The fix for the problem seems to be to create softlink where the Xorg wants to find the files. Here is what fixed the problem;
ln -s /usr/X11R6/lib/modules/drivers/nvidia_drv.o /usr/lib/xorg/modules/drivers/nvidia_drv.o
ln -s /usr/X11R6/lib/modules/drivers/nvidia_drv.so /usr/lib/xorg/modules/drivers/nvidia_drv.so
mv /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.so-old (for backup purpose only)
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.1.0.8756 /usr/lib/xorg/modules/extensions/libglx.so
Now both the latest Debian Eth Xorg and Nvidia works fine.
Hope that helps...
|
|
|
06-06-2006, 11:50 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
There are options on the nVidia installer that let you specify the installation directories. Specifically (for example):
sh NVIDIA-Linux-x86_64-1.0-8756-pkg2.run --x-prefix=/usr/lib/xorg
You can get a full list of the options with '-A -help'.
Last edited by macemoneta; 06-06-2006 at 11:53 AM.
|
|
|
06-07-2006, 01:15 AM
|
#3
|
Member
Registered: Jul 2004
Distribution: Debian
Posts: 40
Rep:
|
i got the same problem too after installing the latest etch updates...
will try this... hope it fixes the problem
|
|
|
06-07-2006, 02:15 AM
|
#4
|
Member
Registered: Feb 2003
Location: Arkansas
Distribution: Debian
Posts: 87
Rep:
|
What version of Xorg did you update to? Xorg 7.1 is known to break the nvidia and ati binary drivers. Nvidia has said they will support the new Xorg in their 9xxx drivers coming out soon.
|
|
|
06-07-2006, 02:24 AM
|
#5
|
Member
Registered: Jul 2004
Distribution: Debian
Posts: 40
Rep:
|
i'm running xorg 7.0.20
the --x-prefix=/usr/lib/xorg didn't work 
|
|
|
06-07-2006, 02:44 AM
|
#6
|
Member
Registered: Jul 2004
Distribution: Debian
Posts: 40
Rep:
|
doing the commands posted above...
Code:
ln -s /usr/X11R6/lib/modules/drivers/nvidia_drv.o /usr/lib/xorg/modules/drivers/nvidia_drv.o
ln -s /usr/X11R6/lib/modules/drivers/nvidia_drv.so /usr/lib/xorg/modules/drivers/nvidia_drv.so
mv /usr/lib/xorg/modules/extensions/libglx.so /usr/lib/xorg/modules/extensions/libglx.so-old (for backup purpose only)
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.1.0.8756 /usr/lib/xorg/modules/extensions/libglx.so
gets me into X... but no 3d apps run... cause they can't find glx... lol
|
|
|
06-09-2006, 08:19 AM
|
#7
|
LQ Newbie
Registered: Jun 2006
Distribution: Debian Testing
Posts: 1
Rep:
|
Quote:
Originally Posted by KRiSX.cjb.net
i'm running xorg 7.0.20
the --x-prefix=/usr/lib/xorg didn't work 
|
The reason for that is the nvidia drivers are installed into /usr/lib/xorg/lib when you use that flag.
I simlinked
/usr/lib/xorg/lib/modules/drivers/nvidia_drv.* into /usr/lib/xorg/modules/drivers
And
/usr/lib/xorg/lib/modules/extensions/libglx.so.1.0.XXX (whatever yours happens to be) into /usr/lib/xorg/modules/extensions/libglx.so
This worked for me, but I got the clue from the first poster  .
--
BigMick
|
|
|
06-09-2006, 09:04 AM
|
#8
|
Member
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509
Rep:
|
i got round the issue by giving the nvidia installer certain parametres:
try running the nvidia installer with:
./nvidiaetcetc.run --x-module-path=/usr/lib/xorg/modules/
i cant remmeber if there is a space between the .run and the --x part though.
this worked for me
Last edited by Michael_aust; 06-09-2006 at 09:05 AM.
|
|
|
06-10-2006, 04:52 PM
|
#9
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Rep:
|
Quote:
Originally Posted by Michael_aust
i cant remmeber if there is a space between the .run and the --x part though.
this worked for me
|
Yep, there is.
More info here,
http://wiki.debian.org/Xorg69To7#hea...f25a2969697fff
|
|
|
06-10-2006, 05:15 PM
|
#10
|
Senior Member
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249
Rep:
|
Quote:
Originally Posted by Michael_aust
i got round the issue by giving the nvidia installer certain parametres:
try running the nvidia installer with:
./nvidiaetcetc.run --x-module-path=/usr/lib/xorg/modules/
i cant remmeber if there is a space between the .run and the --x part though.
this worked for me
|
Yes that method worked for me. Thanks a bunch dude.
|
|
|
06-10-2006, 05:44 PM
|
#11
|
Member
Registered: Apr 2004
Location: Sweden
Distribution: Debian
Posts: 41
Rep: 
|
I installed nvidia's drivers with the --x-module-path and got the files in the correct /usr/lib/xorg/modules directory. Immidiately after the .run installation the nvidia driver worked. However, when I started up my comp the next time I got some message "Removing nvidia tls" (or similar) during boot when it started the MTA, apache, mysql as usual (just before the login). Now I am not able to start X
The Xorg log file does not give me much, since it stops at "(II) Initializing extension GLX" indicating it might be sth with that...
Any clues?
|
|
|
06-11-2006, 03:31 AM
|
#12
|
Senior Member
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526
Rep:
|
This is what makes this forum the outstanding resource that it is....
I normally use Synaptics once or twice a week just to keep my Etch install up-to-date. I noticed this morning that it was a rather large update and include a number of xorg files to upgrade. Whenever I see xorg upgrade files I am a little cautious, especially with a testing distro like etch. However, I proceeded with the upgrade (166 total package upgrades) and WHAM! NO X. I was not aware that the nVidia drivers would be affected.
I immediately came to this forum because I knew I must not have been the only one affected, and sure enough, this post contained all the information I needed to fix the problem (actually, the link provided by simon w was all I needed. I simply re-installed the NVIDIA driver with the new path names as instructed on that link and all was fixed).
Thanks to everyone who posted here for saving me hours of investigative work.
Bob
|
|
|
09-10-2006, 05:36 PM
|
#13
|
Member
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448
Rep:
|
I was having immense difficulty getting the nvidia kernel module installed. I have just recounted how I actually got the thing compiled, for the other search-loving noobs like me(and perhaps my future self), in this post, and I'm continuing the adventure here because this is where I found the answer to the question of how to actually get the damn thing to work after successfully compiling it.
I was getting the same errors as the OP, except it was saying glx and nvida both did not exist. This is on a basically fresh netinst (base, desktop) install of etch b3. The OP's solution seemed like it might be the answer.
Code:
ln -s /usr/X11R6/lib/modules/drivers/nvidia_drv.o /usr/lib/xorg/modules/drivers/nvidia_drv.o
ln -s /usr/X11R6/lib/modules/drivers/nvidia_drv.so /usr/lib/xorg/modules/drivers/nvidia_drv.so
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.1.0.8756 /usr/lib/xorg/modules/extensions/libglx.so
--x-module-path seemed like it might be too. the only thing was, nvidia_drv.o and .so were both already in /usr/lib/xorg/modules/drivers, and a symlink(libglx.so) to libglx.so.1.0.8774 was already in /usr/lib/xorg/modules/extensions. So I took I took a wild stab and did the opposite of the OP.
Code:
ln -s /usr/lib/xorg/modules/extensions/libglx.so.1.0.8774 /usr/X11R6/lib/modules/extensions/libglx.so
ln -s /usr/lib/xorg/modules/drivers/nvidia_drv.o /usr/X11R6/lib/modules/drivers/nvidia_drv.o
ln -s /usr/lib/xorg/modules/drivers/nvidia_drv.so /usr/X11R6/lib/modules/drivers/nvidia_drv.so
I don't pretend to understand why, but that worked and now nvidia and glx (not to mention X!) load up no problem.
|
|
|
01-11-2007, 10:41 PM
|
#14
|
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410
Rep: 
|
I just upgraded both my etch machines, and I started having problems with glx. On the one with an old MX-400 card, I started noticing that xscreensaver was rebooting X. I reran the nvidiaetc.run app without the "--x-module-path=/usr/lib/xorg/modules/" bit and that seemed to fix it.
On the machine with the Ti-500 card, I continue to have problems with the nvidia tool dying when I click on the glx info line. I think it was a segmentation fault. To be honest, I just converted this machine to linux, so I'm not sure that didn't always happen. I'd like to have a fix, though, if anyone has one.
|
|
|
01-13-2007, 04:52 AM
|
#15
|
LQ Newbie
Registered: Dec 2005
Location: Madrid, Spain
Distribution: Debian
Posts: 4
Rep:
|
I use Etch with a nvidia card and the problem I have seen is that the packet xserver-xorg-core writes /usr/lib/xorg/modules/extensions/libglx.so, but the nvidia script puts instead a symlink to the compiled library, so each time that packet is updated I must delete the file libglx.so and recompile the nvidia library.
And I run the nvidia script with no options.
|
|
|
All times are GMT -5. The time now is 05:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|