You are not logged in.

#1 2013-08-16 10:17:00

rejak
Member
Registered: 2013-08-16
Posts: 10

problem with nvidia-optimus after update

I have installed the proprietary nvidia driver on a notebook with a nvidia optimus card. I've followed the instructions of the /usr/share/doc/nvidia/README, but after an update last week, it has not been working any more.


The main error seems to be on this part of my xorg.conf

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:01:00:0"
EndSection

Xorg or the nvidia driver, I don't really know, can't find the nvidia card at this BusID.

[  3003.070] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[  3003.070] (EE) NVIDIA(0):     check your system's kernel log for additional error
[  3003.070] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
[  3003.070] (EE) NVIDIA(0):     README for additional information.
[  3003.070] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
[  3003.070] (EE) NVIDIA(0): Failing initialization of X screen 0

But it should be the right BusID, cause /usr/share/doc/nvidia/README tells me

Q. What is the format of a PCI Bus ID?

A. Different tools have different formats for the PCI Bus ID of a PCI device.

   The X server's "BusID" X configuration file option interprets the BusID
   string in the format "bus@domain:device:function" (the "@domain" portion is
   only needed if the PCI domain is non-zero), in decimal. More specifically,
   
   "%d@%d:%d:%d", bus, domain, device, function
   
   in printf(3) syntax. NVIDIA X driver logging, nvidia-xconfig, and
   nvidia-settings match the X configuration file BusID convention.

   The lspci(8) utility, in contrast, reports the PCI BusID of a PCI device in
   the format "domain:bus:device.function", printing the values in
   hexadecimal. More specifically,
   
   "%04x:%02x:%02x.%x", domain, bus, device, function
   
   in printf(3) syntax. The "Bus Location" reported in the
   /proc/driver/nvidia/gpus/0..N/information files matches the lspci format.

And lspci -D | grep -i nvidia outputs the following

0000:01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev a1)

Here is the complete xorg.conf and the complete Xorg.0.log

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:01:00:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    # Uncomment this line if your computer has no display devices connected to
    # the NVIDIA GPU.  Leave it commented if you have display devices
    # connected to the NVIDIA GPU that you would like to use.
    Option "UseDisplayDevice" "none"
EndSection

Section "Device"
    Identifier "intel"
    Driver "intel"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection
[  3002.877] 
X.Org X Server 1.14.2
Release Date: 2013-06-25
[  3002.880] X Protocol Version 11, Revision 0
[  3002.881] Build Operating System: Linux 3.9.7-1-ARCH x86_64 
[  3002.882] Current Operating System: Linux localhost.localdomain 3.10.5-1-ARCH #1 SMP PREEMPT Mon Aug 5 08:04:22 CEST 2013 x86_64
[  3002.882] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=8771f18e-2df4-4d52-95ab-304c48a85250 rw quiet
[  3002.885] Build Date: 01 July 2013  10:48:42AM
[  3002.886]  
[  3002.887] Current version of pixman: 0.30.2
[  3002.889] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  3002.889] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  3002.893] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Aug 16 13:40:18 2013
[  3002.894] (==) Using config file: "/etc/X11/xorg.conf"
[  3002.895] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  3002.895] (==) ServerLayout "layout"
[  3002.895] (**) |-->Screen "nvidia" (0)
[  3002.895] (**) |   |-->Monitor "<default monitor>"
[  3002.895] (**) |   |-->Device "nvidia"
[  3002.895] (==) No monitor specified for screen "nvidia".
	Using a default monitor configuration.
[  3002.895] (**) |-->Inactive Device "intel"
[  3002.895] (==) Automatically adding devices
[  3002.895] (==) Automatically enabling devices
[  3002.895] (==) Automatically adding GPU devices
[  3002.896] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  3002.896] 	Entry deleted from font path.
[  3002.896] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  3002.896] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  3002.896] 	Entry deleted from font path.
[  3002.896] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  3002.896] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[  3002.896] (==) ModulePath set to "/usr/lib/xorg/modules"
[  3002.896] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  3002.896] (II) Loader magic: 0x7fdc20
[  3002.896] (II) Module ABI versions:
[  3002.896] 	X.Org ANSI C Emulation: 0.4
[  3002.896] 	X.Org Video Driver: 14.1
[  3002.896] 	X.Org XInput driver : 19.1
[  3002.896] 	X.Org Server Extension : 7.0
[  3002.896] (II) xfree86: Adding drm device (/dev/dri/card1)
[  3002.896] (II) xfree86: Adding drm device (/dev/dri/card0)
[  3002.897] (--) PCI:*(0:0:2:0) 8086:0166:1558:3700 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[  3002.897] (--) PCI: (0:1:0:0) 10de:0fd0:1558:3700 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[  3002.898] Initializing built-in extension Generic Event Extension
[  3002.899] Initializing built-in extension SHAPE
[  3002.900] Initializing built-in extension MIT-SHM
[  3002.901] Initializing built-in extension XInputExtension
[  3002.902] Initializing built-in extension XTEST
[  3002.903] Initializing built-in extension BIG-REQUESTS
[  3002.904] Initializing built-in extension SYNC
[  3002.905] Initializing built-in extension XKEYBOARD
[  3002.906] Initializing built-in extension XC-MISC
[  3002.906] Initializing built-in extension SECURITY
[  3002.907] Initializing built-in extension XINERAMA
[  3002.908] Initializing built-in extension XFIXES
[  3002.909] Initializing built-in extension RENDER
[  3002.910] Initializing built-in extension RANDR
[  3002.910] Initializing built-in extension COMPOSITE
[  3002.911] Initializing built-in extension DAMAGE
[  3002.912] Initializing built-in extension MIT-SCREEN-SAVER
[  3002.913] Initializing built-in extension DOUBLE-BUFFER
[  3002.914] Initializing built-in extension RECORD
[  3002.914] Initializing built-in extension DPMS
[  3002.915] Initializing built-in extension X-Resource
[  3002.916] Initializing built-in extension XVideo
[  3002.917] Initializing built-in extension XVideo-MotionCompensation
[  3002.918] Initializing built-in extension XFree86-VidModeExtension
[  3002.918] Initializing built-in extension XFree86-DGA
[  3002.919] Initializing built-in extension XFree86-DRI
[  3002.920] Initializing built-in extension DRI2
[  3002.920] (II) LoadModule: "glx"
[  3002.920] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  3002.929] (II) Module glx: vendor="NVIDIA Corporation"
[  3002.929] 	compiled for 4.0.2, module version = 1.0.0
[  3002.929] 	Module class: X.Org Server Extension
[  3002.929] (II) NVIDIA GLX Module  325.15  Wed Jul 31 18:12:00 PDT 2013
[  3002.929] Loading extension GLX
[  3002.929] (II) LoadModule: "nvidia"
[  3002.930] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  3002.930] (II) Module nvidia: vendor="NVIDIA Corporation"
[  3002.930] 	compiled for 4.0.2, module version = 1.0.0
[  3002.930] 	Module class: X.Org Video Driver
[  3002.930] (II) LoadModule: "intel"
[  3002.930] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  3002.930] (II) Module intel: vendor="X.Org Foundation"
[  3002.930] 	compiled for 1.14.2, module version = 2.21.14
[  3002.930] 	Module class: X.Org Video Driver
[  3002.930] 	ABI class: X.Org Video Driver, version 14.1
[  3002.930] (II) NVIDIA dlloader X Driver  325.15  Wed Jul 31 17:50:57 PDT 2013
[  3002.930] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  3002.930] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
	HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
	HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
	HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
	HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[  3002.930] (++) using VT number 1

[  3002.931] (II) Loading sub module "fb"
[  3002.931] (II) LoadModule: "fb"
[  3002.931] (II) Loading /usr/lib/xorg/modules/libfb.so
[  3002.931] (II) Module fb: vendor="X.Org Foundation"
[  3002.931] 	compiled for 1.14.2, module version = 1.0.0
[  3002.931] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  3002.931] (WW) Unresolved symbol: fbGetGCPrivateKey
[  3002.931] (II) Loading sub module "wfb"
[  3002.931] (II) LoadModule: "wfb"
[  3002.931] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  3002.931] (II) Module wfb: vendor="X.Org Foundation"
[  3002.931] 	compiled for 1.14.2, module version = 1.0.0
[  3002.931] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  3002.931] (II) Loading sub module "shadow"
[  3002.931] (II) LoadModule: "shadow"
[  3002.931] (II) Loading /usr/lib/xorg/modules/libshadow.so
[  3002.931] (II) Module shadow: vendor="X.Org Foundation"
[  3002.931] 	compiled for 1.14.2, module version = 1.1.0
[  3002.931] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  3002.931] (II) Loading sub module "ramdac"
[  3002.931] (II) LoadModule: "ramdac"
[  3002.931] (II) Module "ramdac" already built-in
[  3002.932] (EE) Screen 1 deleted because of no matching config section.
[  3002.932] (II) UnloadModule: "intel"
[  3002.932] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"nvidia" for depth/fbbpp 24/32
[  3002.932] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  3002.932] (==) NVIDIA(0): RGB weight 888
[  3002.932] (==) NVIDIA(0): Default visual is TrueColor
[  3002.932] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  3002.932] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[  3002.932] (**) NVIDIA(0): Enabling 2D acceleration
[  3002.932] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[  3002.932] (**) NVIDIA(0):     mode
[  3003.070] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[  3003.070] (EE) NVIDIA(0):     check your system's kernel log for additional error
[  3003.070] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
[  3003.070] (EE) NVIDIA(0):     README for additional information.
[  3003.070] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
[  3003.070] (EE) NVIDIA(0): Failing initialization of X screen 0
[  3003.070] (II) UnloadModule: "nvidia"
[  3003.070] (II) UnloadSubModule: "shadow"
[  3003.070] (II) UnloadSubModule: "wfb"
[  3003.070] (II) UnloadSubModule: "fb"
[  3005.312] (EE) intel(G0): [drm] failed to set drm interface version: Permission denied [13].
[  3005.312] (EE) intel(G0): Failed to become DRM master.
[  3005.312] (II) UnloadModule: "intel"
[  3005.312] (EE) Screen(s) found, but none have a usable configuration.
[  3005.312] (EE) 
Fatal server error:
[  3005.312] (EE) no screens found(EE) 
[  3005.312] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  3005.312] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  3005.312] (EE) 
[  3005.318] (EE) Server terminated with error (1). Closing log file.

Offline

#2 2013-08-16 13:45:50

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: problem with nvidia-optimus after update

I' m surprised it worked at all. If your laptop is a hybrid graphics one, you should use the bumblebee technology imo.
There' s a wiki: https://wiki.archlinux.org/index.php/Bumblebee
Using a xorg.conf not in xorg.conf.d is discouraged anyway. How did you install your nvidia driver ?

Offline

#3 2013-08-16 15:37:44

rejak
Member
Registered: 2013-08-16
Posts: 10

Re: problem with nvidia-optimus after update

jocheem67 wrote:

I' m surprised it worked at all. If your laptop is a hybrid graphics one, you should use the bumblebee technology imo.
There' s a wiki: https://wiki.archlinux.org/index.php/Bumblebee
Using a xorg.conf not in xorg.conf.d is discouraged anyway. How did you install your nvidia driver ?

Since the 319.12b version the nvidia driver supports the optimus technology.

http://www.webupd8.org/2013/04/nvidia-r … ivers.html

And it worked much more better than the bumblebee-project. With bumblebee I had problems with starting compiz and 0ad. But the optimus-support of the proprietary nvidia-driver worked perfectly, until an upate last week. Also the nvidia-driver runs with a better performance.
Here's a link to the optimus-part of the official readme of the nvidia-driver for linux.

http://us.download.nvidia.com/XFree86/L … timus.html

Why nobody knows about the optimus-support of the proprietary nvidia driver?

Last edited by rejak (2013-08-16 15:39:20)

Offline

#4 2013-08-17 06:16:06

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: problem with nvidia-optimus after update

Maybe just roll back ?

Thanks for the info btw.. there doesn 't seem to be any power saving involved here, so it's definitely not for me.

Offline

#5 2013-08-17 09:46:11

rejak
Member
Registered: 2013-08-16
Posts: 10

Re: problem with nvidia-optimus after update

I forgot to post the output of dmesg, shame on me!

[  613.444524] nvidia 0000:01:00.0: irq 49 for MSI/MSI-X
[  618.745185] NVRM: RmInitAdapter failed! (0x25:0x28:1157)
[  618.745193] NVRM: rm_init_adapter(0) failed

It seems to be the wrong device, maybe they changed the BusID syntax in X?

Edit: My idea, that they changed the BusID syntax does not really make sense. The dmesg output seems to be in the lspci syntax and it fits completely to the lspci output. (Look at the single and double dots after the numbers)

I hope my english isn't to bad...

Last edited by rejak (2013-08-17 09:51:51)

Offline

#6 2013-08-18 10:06:31

rejak
Member
Registered: 2013-08-16
Posts: 10

Re: problem with nvidia-optimus after update

rejak wrote:

I forgot to post the output of dmesg, shame on me!

[  613.444524] nvidia 0000:01:00.0: irq 49 for MSI/MSI-X
[  618.745185] NVRM: RmInitAdapter failed! (0x25:0x28:1157)
[  618.745193] NVRM: rm_init_adapter(0) failed

It seems to be the wrong device, maybe they changed the BusID syntax in X?

Edit: My idea, that they changed the BusID syntax does not really make sense. The dmesg output seems to be in the lspci syntax and it fits completely to the lspci output. (Look at the single and double dots after the numbers)

I hope my english isn't to bad...

This happens even if I use bumblebee with the proprietary nvidia-driver.

primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

The dmesg output is just the same as in the previous post. I'm using a notebook with a gtx660M

Offline

Board footer

Powered by FluxBB