LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Proprietary NVIDIA Driver Troubleshooting (https://www.linuxquestions.org/questions/debian-26/proprietary-nvidia-driver-troubleshooting-940370/)

winter_ken 04-17-2012 11:36 PM

Proprietary NVIDIA Driver Troubleshooting
 
Okay, so I've been on this for a couple days with no luck.

Trying to install the Nvidia drivers the debian way, http://wiki.debian.org/NvidiaGraphic...n-free_drivers , and I would like to try and keep using the debian method so it auto updates if this is at all possible.

I've unloaded and blacklisted modules, uninstalled all drivers using apt-get autoremove, and tried forcing reinstallation but it seems like there is still some conflict somewhere within the driver and the kernel, and I'm not experienced enough to figure it out.

less /var/log/Xorg.0.log | grep EE #returns this
Code:

(EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
(EE) NVIDIA:    system's kernel log for additional error messages.
(EE) Failed to load module "nvidia" (module-specific error, 0)
(EE) No drivers available.

This is interesting because it looks like the card is not recognized by something correctly. Card is a Geforce 560GTX ti (by MSI) and Nvidia's site say's it's supported.

lspci -v #returns this
Code:

01:00.0 VGA compatible controller: nVidia Corporation Device 1201 (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Micro-Star International Co., Ltd. Device 2383
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at ca000000 (32-bit, non-prefetchable) [size=32M]
        Memory at b8000000 (64-bit, prefetchable) [size=128M]
        Memory at c4000000 (64-bit, prefetchable) [size=64M]
        I/O ports at 9c00 [size=128]
        [virtual] Expansion ROM at c0000000 [disabled] [size=512K]
        Capabilities: <access denied>

this is my install output, nothing really looks wrong.

Code:

Updated infos about 1 packages
Getting source for kernel version: 2.6.32-5-amd64
Kernel headers available in /lib/modules/2.6.32-5-amd64/build
apt-get install build-essential
Reading package lists... Done
Building dependency tree     
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!
download
Reading package lists... Done
Building dependency tree     
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/6,618 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 133761 files and directories currently installed.)
Preparing to replace nvidia-kernel-source 195.36.31-6 (using .../nvidia-kernel-source_195.36.31-6_amd64.deb) ...
Unpacking replacement nvidia-kernel-source ...
Setting up nvidia-kernel-source (195.36.31-6) ...

Updated infos about 1 packages
unpack
Extracting the package tarball, /usr/src/nvidia-kernel.tar.bz2, please wait...
"/usr/share/modass/packages/nvidia-kernel-source" build KVERS=2.6.32-5-amd64 KSRC=/lib/modules/2.6.32-5-amd64/build KDREV=2.6.32-41squeeze2 kdist_image
Done with /usr/src/nvidia-kernel-2.6.32-5-amd64_195.36.31-6+2.6.32-41squeeze2_amd64.deb .
dpkg -i /usr/src/nvidia-kernel-2.6.32-5-amd64_195.36.31-6+2.6.32-41squeeze2_amd64.deb
Selecting previously deselected package nvidia-kernel-2.6.32-5-amd64.
(Reading database ... 133761 files and directories currently installed.)
Unpacking nvidia-kernel-2.6.32-5-amd64 (from .../nvidia-kernel-2.6.32-5-amd64_195.36.31-6+2.6.32-41squeeze2_amd64.deb) ...
Setting up nvidia-kernel-2.6.32-5-amd64 (195.36.31-6+2.6.32-41squeeze2) ...
ken@Odin:~$ sudo apt-get install nvidia-glx${VERSION}
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
  libgl1-nvidia-alternatives libgl1-nvidia-glx libglx-nvidia-alternatives
  libvdpau1 nvidia-vdpau-driver
Suggested packages:
  nvidia-settings
The following NEW packages will be installed:
  libgl1-nvidia-alternatives libgl1-nvidia-glx libglx-nvidia-alternatives
  libvdpau1 nvidia-glx nvidia-vdpau-driver
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/11.6 MB of archives.
After this operation, 43.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package libgl1-nvidia-alternatives.
(Reading database ... 133771 files and directories currently installed.)
Unpacking libgl1-nvidia-alternatives (from .../libgl1-nvidia-alternatives_195.36.31-6_amd64.deb) ...
Selecting previously deselected package libgl1-nvidia-glx.
Unpacking libgl1-nvidia-glx (from .../libgl1-nvidia-glx_195.36.31-6_amd64.deb) ...
Selecting previously deselected package libglx-nvidia-alternatives.
Unpacking libglx-nvidia-alternatives (from .../libglx-nvidia-alternatives_195.36.31-6_amd64.deb) ...
Selecting previously deselected package nvidia-glx.
Unpacking nvidia-glx (from .../nvidia-glx_195.36.31-6_amd64.deb) ...
Selecting previously deselected package libvdpau1.
Unpacking libvdpau1 (from .../libvdpau1_0.4.1-2_amd64.deb) ...
Selecting previously deselected package nvidia-vdpau-driver.
Unpacking nvidia-vdpau-driver (from .../nvidia-vdpau-driver_195.36.31-6_amd64.deb) ...
Setting up libgl1-nvidia-alternatives (195.36.31-6) ...
Adding 'diversion of /usr/lib/libGL.so to /usr/lib/nvidia/diversions/libGL.so by libgl1-nvidia-alternatives'
Adding 'diversion of /usr/lib/libGL.so.1 to /usr/lib/nvidia/diversions/libGL.so.1 by libgl1-nvidia-alternatives'
Adding 'diversion of /usr/lib/libGL.so.1.2 to /usr/lib/nvidia/diversions/libGL.so.1.2 by libgl1-nvidia-alternatives'
Setting up libglx-nvidia-alternatives (195.36.31-6) ...
Adding 'diversion of /usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/nvidia/diversions/libglx.so by libglx-nvidia-alternatives'
Adding 'diversion of /usr/lib/debug/usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/nvidia/diversions/libglx.so.dbg by libglx-nvidia-alternatives'
Setting up libvdpau1 (0.4.1-2) ...
Setting up nvidia-vdpau-driver (195.36.31-6) ...
Processing triggers for libgl1-nvidia-alternatives ...
update-alternatives: using /usr/lib/nvidia/diversions/libGL.so.1 to provide /usr/lib/libGL.so.1 (libGL.so.1) in auto mode.
Setting up libgl1-nvidia-glx (195.36.31-6) ...
update-alternatives: using /usr/lib/nvidia/libGL.so.1 to provide /usr/lib/libGL.so.1 (libGL.so.1) in auto mode.
Processing triggers for libglx-nvidia-alternatives ...
update-alternatives: using /usr/lib/nvidia/diversions/libglx.so to provide /usr/lib/xorg/modules/extensions/libglx.so (libglx.so) in auto mode.
update-alternatives: warning: skip creation of /usr/lib/debug/usr/lib/xorg/modules/extensions/libglx.so because associated file /usr/lib/nvidia/diversions/libglx.so.dbg (of link group libglx.so) doesn't exist.
Setting up nvidia-glx (195.36.31-6) ...
No diversion 'diversion of /usr/lib/xorg/modules/extensions/libGLcore.so to /usr/lib/nvidia/libGLcore.so.xlibmesa by nvidia-glx', none removed.
No diversion 'diversion of /usr/lib/xorg/modules/extensions/libGLcore.a to /usr/lib/nvidia/libGLcore.a.xlibmesa by nvidia-glx', none removed.
No diversion 'diversion of /usr/lib/xorg/modules/extensions/libglx.a to /usr/lib/nvidia/libglx.a.xlibmesa by nvidia-glx', none removed.
update-alternatives: using /usr/lib/nvidia/libglx.so to provide /usr/lib/xorg/modules/extensions/libglx.so (libglx.so) in auto mode.
Processing triggers for libgl1-nvidia-alternatives ...
ken@Odin:~$ uname -a
Linux Odin 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64 GNU/Linux

less /var/log/kern.log #returns this
Code:

Apr 17 20:47:57 Odin kernel: [    0.820061] ata11: nv_mode_filter: 0x1f39f&0x1f39f->0x1f39f, BIOS=0x1f000 (0xc50000) ACPI=0x1f01f (600:30:0x1c)
Apr 17 20:47:57 Odin kernel: [    5.026914] nvidia: module license 'NVIDIA' taints kernel.
Apr 17 20:47:57 Odin kernel: [    5.484491] nvidia 0000:01:00.0: PCI INT A -> Link[AXV5] -> GSI 16 (level, low) -> IRQ 16
Apr 17 20:47:57 Odin kernel: [    5.484511] nvidia 0000:01:00.0: setting latency timer to 64
Apr 17 20:47:57 Odin kernel: [    5.484562] NVRM: www.nvidia.com.
Apr 17 20:47:57 Odin kernel: [    5.484567] nvidia: probe of 0000:01:00.0 failed with error -1

another variation of the output under different conditions exists, but this might be more than enough output to look at.

Thanks a lot to everyone who read all of this, it's really appreciated!

cascade9 04-18-2012 04:25 AM

GTX 560 Ti requires driver version 270.26 or higher. You are trying to get it working with driver version 195.36 (from the debian stable repos I guess).

You will have to manually install the nVidia driver, or backport the newer drivers in the tersting repos.

descendant_command 04-24-2012 05:43 PM

As stated you will need the newer versions than those in squeeze.
You will also need the updated kernel and headers from backports as well (currently 3.2.x)

Add the squeeze backports repo, instructions at backports.debian.org.

If you build the module manually as above, it won't get updated automatically, you want the DKMS method as per http://wiki.debian.org/NvidiaGraphicsDrivers#Use_DKMS
Quote:

Use DKMS

This is the easiest method and recommended unless you have some reason to not want to install a compiler.

All you need to do is install the kernel headers package for the Linux image that you're running (usually named linux-headers-<version> where <version> is whatever version of kernel you're running) and then install nvidia-kernel-dkms or the nvidia-kernel-legacy-...-dkms package for the legacy version of the drivers that you need.

DKMS will take care of the build and install process automatically.

winter_ken 05-03-2012 04:48 AM

Sorry, I've been incredibly busy with school that I haven't had time to deal with computer problems for a little bit. I thought the nvidia driver was a little old but I didn't know that my card would be completely unsupported with it.

Thanks to the both of you for your help. It's greatly appreciated!!!


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