Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

nVidia proprietary driver and Xorg not working

Need help with peripherals or devices?
Post Reply
Message
Author
ghost shell
Posts: 46
Joined: 2012-03-24 19:12

nVidia proprietary driver and Xorg not working

#1 Post by ghost shell »

I'm unable to get nvidia driver working.

I had downloaded the driver from nvidia and installed it without any errors.

I have also blacklisted nouveau in /etc/modprobe.d/blacklist.conf

If I have the file /etc/X11/xorg.conf then X fails to start.
And if I do: X -configure I get the error:
Number of created screens does not match number of detected devices. Configuration failed.

If I delete xorg.conf (generated by nvida install), then X starts, but this happens:

Code: Select all

$glxgears
Error: couldn't get an RGB, Double-buffered visual

$glxinfo | grep -i "direct rendering"
Error: couldn't find RGB GLX visual or fbconfig

$egrep '\((EE|WW|NI)\)' /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    20.331] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    20.348] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[    21.595] (WW) Falling back to old probe method for vesa
[    21.595] (WW) Falling back to old probe method for fbdev
[    21.774] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
I suspect the intel card is being used instead (optimus?)

Code: Select all

#lspci -v
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 2103
        Flags: bus master, fast devsel, latency 0, IRQ 46
        Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915

01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fd1 (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 2103
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at f7000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] #19
        Kernel driver in use: nvidia

Any suggestions?

Thanks

cynwulf

Re: nVidia proprietary driver and Xorg not working

#2 Post by cynwulf »

Manually create an xorg.conf as per the wiki page

http://wiki.debian.org/NvidiaGraphicsDr ... _xorg.conf

If it fails with that, have a look at your xorg log file for any errors.

ghost shell
Posts: 46
Joined: 2012-03-24 19:12

Re: nVidia proprietary driver and Xorg not working

#3 Post by ghost shell »

my xorg.conf file:

Code: Select all

Section "Module"
    Load "glx"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection
the resulting /var/log/Xorg.0.log file:

Code: Select all

[  8352.446] 
X.Org X Server 1.12.1.902 (1.12.2 RC 2)
Release Date: 2012-05-19
[  8352.446] X Protocol Version 11, Revision 0
[  8352.446] Build Operating System: Linux 3.2.0-2-amd64 x86_64 Debian
[  8352.446] Current Operating System: Linux wasteland 3.2.0-2-amd64 #1 SMP Mon Jun 11 17:24:18 UTC 2012 x86_64
[  8352.446] Kernel command line: BOOT_IMAGE=/vmlinuz-3.2.0-2-amd64 root=/dev/mapper/sda6_crypt ro quiet
[  8352.446] Build Date: 20 May 2012  08:57:17AM
[  8352.446] xorg-server 2:1.12.1.902-1 (Cyril Brulebois <kibi@debian.org>) 
[  8352.446] Current version of pixman: 0.24.4
[  8352.446] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  8352.446] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  8352.447] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun 25 19:14:37 2012
[  8352.447] (==) Using config file: "/etc/X11/xorg.conf"
[  8352.447] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  8352.447] (==) No Layout section.  Using the first Screen section.
[  8352.447] (==) No screen section available. Using defaults.
[  8352.447] (**) |-->Screen "Default Screen Section" (0)
[  8352.447] (**) |   |-->Monitor "<default monitor>"
[  8352.447] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[  8352.447] (**) |   |-->Device "Device0"
[  8352.447] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  8352.447] (==) Automatically adding devices
[  8352.447] (==) Automatically enabling devices
[  8352.447] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  8352.447] 	Entry deleted from font path.
[  8352.447] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[  8352.447] 	Entry deleted from font path.
[  8352.447] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[  8352.447] (==) ModulePath set to "/usr/lib/xorg/modules"
[  8352.447] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  8352.447] (II) Loader magic: 0x7f6022945ae0
[  8352.447] (II) Module ABI versions:
[  8352.447] 	X.Org ANSI C Emulation: 0.4
[  8352.447] 	X.Org Video Driver: 12.0
[  8352.447] 	X.Org XInput driver : 16.0
[  8352.447] 	X.Org Server Extension : 6.0
[  8352.448] (--) PCI:*(0:0:2:0) 8086:0166:1043:2103 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[  8352.448] (--) PCI: (0:1:0:0) 10de:0fd1:1043:2103 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[  8352.448] (II) Open ACPI successful (/var/run/acpid.socket)
[  8352.448] (II) "extmod" will be loaded by default.
[  8352.448] (II) "dbe" will be loaded by default.
[  8352.448] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  8352.448] (II) "record" will be loaded by default.
[  8352.448] (II) "dri" will be loaded by default.
[  8352.448] (II) "dri2" will be loaded by default.
[  8352.448] (II) LoadModule: "glx"
[  8352.448] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  8352.455] (II) Module glx: vendor="NVIDIA Corporation"
[  8352.455] 	compiled for 4.0.2, module version = 1.0.0
[  8352.455] 	Module class: X.Org Server Extension
[  8352.455] (II) NVIDIA GLX Module  295.41  Fri Apr  6 23:40:23 PDT 2012
[  8352.455] (II) Loading extension GLX
[  8352.455] (II) LoadModule: "extmod"
[  8352.456] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  8352.456] (II) Module extmod: vendor="X.Org Foundation"
[  8352.456] 	compiled for 1.12.1.902, module version = 1.0.0
[  8352.456] 	Module class: X.Org Server Extension
[  8352.456] 	ABI class: X.Org Server Extension, version 6.0
[  8352.456] (II) Loading extension SELinux
[  8352.456] (II) Loading extension MIT-SCREEN-SAVER
[  8352.456] (II) Loading extension XFree86-VidModeExtension
[  8352.456] (II) Loading extension XFree86-DGA
[  8352.456] (II) Loading extension DPMS
[  8352.456] (II) Loading extension XVideo
[  8352.456] (II) Loading extension XVideo-MotionCompensation
[  8352.456] (II) Loading extension X-Resource
[  8352.456] (II) LoadModule: "dbe"
[  8352.456] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  8352.456] (II) Module dbe: vendor="X.Org Foundation"
[  8352.456] 	compiled for 1.12.1.902, module version = 1.0.0
[  8352.456] 	Module class: X.Org Server Extension
[  8352.456] 	ABI class: X.Org Server Extension, version 6.0
[  8352.456] (II) Loading extension DOUBLE-BUFFER
[  8352.456] (II) LoadModule: "record"
[  8352.456] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  8352.456] (II) Module record: vendor="X.Org Foundation"
[  8352.456] 	compiled for 1.12.1.902, module version = 1.13.0
[  8352.456] 	Module class: X.Org Server Extension
[  8352.456] 	ABI class: X.Org Server Extension, version 6.0
[  8352.456] (II) Loading extension RECORD
[  8352.457] (II) LoadModule: "dri"
[  8352.457] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  8352.457] (II) Module dri: vendor="X.Org Foundation"
[  8352.457] 	compiled for 1.12.1.902, module version = 1.0.0
[  8352.457] 	ABI class: X.Org Server Extension, version 6.0
[  8352.457] (II) Loading extension XFree86-DRI
[  8352.457] (II) LoadModule: "dri2"
[  8352.457] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  8352.457] (II) Module dri2: vendor="X.Org Foundation"
[  8352.457] 	compiled for 1.12.1.902, module version = 1.2.0
[  8352.457] 	ABI class: X.Org Server Extension, version 6.0
[  8352.457] (II) Loading extension DRI2
[  8352.457] (II) LoadModule: "nvidia"
[  8352.457] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  8352.557] (II) Module nvidia: vendor="NVIDIA Corporation"
[  8352.557] 	compiled for 4.0.2, module version = 1.0.0
[  8352.557] 	Module class: X.Org Video Driver
[  8352.576] (II) NVIDIA dlloader X Driver  295.41  Fri Apr  6 23:20:52 PDT 2012
[  8352.576] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  8352.578] (++) using VT number 7

[  8352.585] (EE) No devices detected.
[  8352.585] 
Fatal server error:
[  8352.585] no screens found
[  8352.585] 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  8352.585] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  8352.585] 

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: nVidia proprietary driver and Xorg not working

#4 Post by kedaha »

Any particular reason why you installed the proprietary driver from the nVidia site? Why not install using dkms from the Debian non-free repository? And then use the rudimentary xorg.conf file posted above if necessary.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

ghost shell
Posts: 46
Joined: 2012-03-24 19:12

Re: nVidia proprietary driver and Xorg not working

#5 Post by ghost shell »

There were essentially 2 reasons for that:
- on my desktop that was running squeeze, (but has now died), I used that method since it was a "run nvidia bundle and everything works", whereas the debian method has a lot more steps
- I use cuda so being able to install new versions of the software (which depends on the video driver) without being limited to debian's version was a plus

since my laptop is running wheezy and things aren't working, I guess I can try that approach then

but would there be any reason for it to work while the official drivers still fail?

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: nVidia proprietary driver and Xorg not working

#6 Post by kedaha »

From your lspci -v command:

Code: Select all

01:00.0 VGA compatible controller: NVIDIA Corporation Device 0fd1 (rev a1) (prog-if 00 [VGA controller]
What's this? An nvidia optimus controller?
From your /var/log/Xorg.0.log file

Code: Select all

[  8352.585] (EE) No devices detected.
If so then I think you may need to consult the Bumblebee project page for details of how to install the controller.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

cynwulf

Re: nVidia proprietary driver and Xorg not working

#7 Post by cynwulf »

kedaha wrote:If so then I think you may need to consult the Bumblebee project page for details of how to install the controller.
+1

I totally missed this, it was admittedly in your first post, but the driver clearly doesn't support your device. You will need to follow the wiki and see how you get on - good luck.

kmathern
Posts: 603
Joined: 2011-02-05 19:20

Re: nVidia proprietary driver and Xorg not working

#8 Post by kmathern »

The pci id (10de:0fd1) shown in the Xorg.0.log corresponds to a GeForce GT 650M which first got supported with the 295.59 nvidia driver (see release notes here: http://www.nvnews.net/vbulletin/showthr ... ?p=2563600).

That would explain why the Squeeze (version 195.36.31-6), Squeeze-Backports (version 280.13.really.275.36-1~bpo60+2) and Wheezy (version 295.53) dkms packages don't work.

The sid (version 295.59-1) dkms package should be installable on a Wheezy install and should work.

edit: you will still have some issues to deal with if it's a optimus/ hybrid graphics system.

ghost shell
Posts: 46
Joined: 2012-03-24 19:12

Re: nVidia proprietary driver and Xorg not working

#9 Post by ghost shell »

I have installed bumblebee from http://suwako.nomanga.net/ and the latest nvidia drivers (which were added to wheezy some days ago).

The problem is that when I try to an application with optirun, the laptop shuts down :(

kmathern
Posts: 603
Joined: 2011-02-05 19:20

Re: nVidia proprietary driver and Xorg not working

#10 Post by kmathern »

ghost shell wrote:I have installed bumblebee from http://suwako.nomanga.net/ and the latest nvidia drivers (which were added to wheezy some days ago).

The problem is that when I try to an application with optirun, the laptop shuts down :(
The first version of the nvidia driver that supports your GeForce GT 650M is version 295.59-1. It was just migrated to the wheezy repo today (06-26-2012). http://packages.qa.debian.org/n/nvidia- ... ivers.html

The last wheezy nvidia driver was the 295.53-1 version, it didn't support a GeForce GT 650M. {and your Xorg.0.log shows an even earlier 295.41 version being used}.

Make sure the nvidia-glx, nvidia-kernel-dkms and related packages are updated to the 295.59-1 version.

ghost shell
Posts: 46
Joined: 2012-03-24 19:12

Re: nVidia proprietary driver and Xorg not working

#11 Post by ghost shell »

Ok, now that I had a bit more free time I went and gave it another go.

I have an updated wheezy and bumble packages from http://suwako.nomanga.net/ and I don't have any /etc/X11/xorg.conf file (instead bumblebee has its own xorg.conf.nvidia configuration file.
And it seems to somewhat work.
But there are 2 problems:
I have to run a cuda application before I use optirun (I can live with this).

However the bigger problem which I'm trying to fix is that cuda applications fail. And I would like to have cuda and openCL working.
Another issue is that I can't get vmware 3D acceleration to work, however I'm not sure if this a vmware problem or an issue caused by optimus.

Does cuda works for you? Does vmware 3D acceleration works?
Any suggestions?




edit:
not sure how relevant this is, but I can't get virtualgl to run properly. If I run:
vglrun -sp +pr glxspheres
it crashes with segmentation fault and leaves my X session with video tearing.

Post Reply