LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Why must NVIDIA drivers be such a pain? (https://www.linuxquestions.org/questions/linux-hardware-18/why-must-nvidia-drivers-be-such-a-pain-594689/)

KirkD 10-26-2007 12:29 AM

Why must NVIDIA drivers be such a pain?
 
Now that I've finally gotten the wireless card working, I'm trying to install the NVIDIA proprietary drivers. I've downloaded the drivers and run the installer in mode 3 - it all seems to behave. When I try to reboot I get X errors of this sort:

Quote:

(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
dlopen: /usr/lib/xorg/modules/extensions//libglx.so: cannot enable executable st
ack as shared object requires: Permission denied
(EE) Failed to load /usr/lib/xorg/modules/extensions//libglx.so
(II) UnloadModule: "glx"
(EE) Failed to load module "glx" (loader failed, 7)
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
dlopen: /usr/lib/xorg/modules/drivers//nvidia_drv.so: cannot enable executable s
tack as shared object requires: Permission denied
(EE) Failed to load /usr/lib/xorg/modules/drivers//nvidia_drv.so
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (loader failed, 7)
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.2.2
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.7
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.1.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.7
(EE) No drivers available.

Fatal server error:
no screens found

Any tips??

fatra2 10-26-2007 12:44 AM

I know wht you mean. A few weeks ago, I installed a new distro on both my PC and my laptop. I ran into alot of work to have my graphic card working properly.

A little tip that might help you. You need to have glx loaded for your nvidia graphic card to work properly. You need to add the following section in your xorg file.

Code:

Section "Module"
        SubSection        "extmod"
                Option        "omit xfree86-dga"
        EndSubSection
        Load  "extmod"
        Load  "glx"
EndSection

This is done before starting X.

Hope this helps.

Cheers

ghostdancer 10-26-2007 01:03 AM

I thought the installer will automatically edit the xorg.conf file for you?

Anyway, that is how I installed it, no editing of xorg.conf is require for me. Maybe I am just lucky.

jschiwal 10-26-2007 01:08 AM

The nvidia installation also provides an "nvidia-xconfig" program that you can use to edit your xorg.conf file. Running this program may fix the problem.

KirkD 10-26-2007 01:19 AM

I've tried the various nvidia tools and get no results. Also, the added subsection suggested by fatra2 did not work.

Here's my Xorg.conf after the nvidia installer gets done with it and I'm unable to start the graphical interface:

Quote:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Sep 12 14:29:35 PDT
2007

# Xorg configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

fatra2 10-26-2007 02:11 AM

Hi again,

How about if you add
Code:

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        Option            "RenderAccel" "True"
        Option            "AddARGBGLXVisuals" "True"
        Option            "DisableGLXRootClipping" "True"
        Option            "AllowGLXWithComposite" "True"
EndSection

and
Code:

Section "Extensions"
        Option            "Composite" "Enable"
EndSection

in your xorg file.

I know this solved some problems for me.

KirkD 10-26-2007 10:36 AM

No luck
 
Nope. Didn't work.

jiml8 10-26-2007 11:35 AM

Quote:

(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
dlopen: /usr/lib/xorg/modules/extensions//libglx.so: cannot enable executable st
ack as shared object requires: Permission denied
(EE) Failed to load /usr/lib/xorg/modules/extensions//libglx.so
So far, this thread reminds me of the joke about the blonde who lost her contact lens. She was crawling around on the floor looking for it when a man comes up to her and says: "what are you looking for? Can I help you?"

She looks up and says: "oh yes! I lost my contact lens over there (points across the room), and I'm hunting for it."

"Well, if you lost it over there, why are you looking over here?"

"The light is better over here."

Point is this. The reason you can't get the nVidia driver to run is shown quite clearly in your log file. The driver is failing to load libraries that it needs in order to run. You have a permissions problem associated with /usr/lib/xorg/modules/extensions.

What is that permissions problem? I don't know. But take a look at the directory /usr/lib/xorg and all its subdirectories, and you'll find your problem there someplace. Might be that the libraries haven't been set as executable. Might be that X doesn't have permission to execute what is in that directory. Might be a bad symlink. I can't tell from here, but that is where your problem is.

KirkD 10-26-2007 12:45 PM

Too obvious
 
Yes, I've checked that directory and found the files present, their properties set to rwxr_xr_x and I'm running as root, and can create new files in this directory, etc. I cannot find any reason to suspect that I cannot access the files.

What I do notice from the error line is that there are two backslashes preceding the name of the .so file:

Loading /usr/lib/xorg/modules/extensions//libglx.so

Why two? Does this cause an error??

unknownmosquito 10-26-2007 08:54 PM

Wow...

I'm going to go ahead and point out that if you can (Fedora, Gentoo, Ubuntu, probably Suse, and I'm sure others) install the drivers with your package manager, FOR THE SAKE OF HEAVEN, DO THAT! It takes care of backing up your working config and a number of other dirty tasks.

Ubuntu users have it in their main repos and Fedora can get it with the livna repo ...

Doing it manually is.. risky at best. And not fun.


All times are GMT -5. The time now is 09:20 AM.