Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solved]Error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0 #542

Closed
ziyuang opened this issue Feb 16, 2014 · 3 comments

Comments

@ziyuang
Copy link

ziyuang commented Feb 16, 2014

My laptop has a GT 650M and an Intel integrated video card. The BusIDs are:

$ lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev ff)

The OS is debian wheezy:

$ uname -a
Linux debian 3.12-1-amd64 #1 SMP Debian 3.12.9-1 (2014-02-01) x86_64 GNU/Linux

I've installed bumblebee-nvidia and primus, and added my account to the group bumblebee. Here is the output of optirun -vvv glxgears:

$ optirun -vvv glxgears
[  209.285263] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  209.285475] [INFO]Configured driver: nvidia
[  209.285739] [DEBUG]optirun version 3.2.1 starting...
[  209.285763] [DEBUG]Active configuration:
[  209.285774] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  209.285785] [DEBUG] X display: :8
[  209.285796] [DEBUG] LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
[  209.285812] [DEBUG] Socket path: /var/run/bumblebee.socket
[  209.285818] [DEBUG] Accel/display bridge: auto
[  209.285824] [DEBUG] VGL Compression: proxy
[  209.285830] [DEBUG] VGLrun extra options:
[  209.285837] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
[  209.285861] [DEBUG]Using auto-detected bridge primus
[  209.286059] [INFO]Response: No - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[  209.286094] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[  209.286115] [DEBUG]Socket closed.
[  209.286139] [ERROR]Aborting because fallback start is disabled.
[  209.286147] [DEBUG]Killing all remaining processes.

and the content of /etc/bumblebee/bumblebee.conf:

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d

[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia-current
PMMethod=auto
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

and the content of /etc/bumblebee/xorg.conf.nvidia:

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

    BusID "PCI:01:00:0"

    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

and the content of /var/log/Xorg.8.log:

[   149.326] 
X.Org X Server 1.15.0
Release Date: 2013-12-27
[   149.326] X Protocol Version 11, Revision 0
[   149.326] Build Operating System: Linux 3.12-1-amd64 x86_64 Debian
[   149.326] Current Operating System: Linux debian 3.12-1-amd64 #1 SMP Debian 3.12.9-1 (2014-02-01) x86_64
[   149.326] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.12-1-amd64 root=UUID=94dedff4-05a3-4075-b966-9995510e5eb0 ro quiet
[   149.326] Build Date: 06 February 2014  03:20:45PM
[   149.326] xorg-server 2:1.15.0-2 (http://www.debian.org/support) 
[   149.326] Current version of pixman: 0.32.4
[   149.326]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   149.326] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   149.326] (==) Log file: "/var/log/Xorg.8.log", Time: Sun Feb 16 22:20:58 2014
[   149.326] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[   149.326] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[   149.326] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   149.326] (==) ServerLayout "Layout0"
[   149.326] (==) No screen section available. Using defaults.
[   149.326] (**) |-->Screen "Default Screen Section" (0)
[   149.326] (**) |   |-->Monitor "<default monitor>"
[   149.326] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[   149.326] (**) |   |-->Device "DiscreteNvidia"
[   149.326] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   149.326] (**) Option "AutoAddDevices" "false"
[   149.326] (**) Option "AutoAddGPU" "false"
[   149.326] (**) Not automatically adding devices
[   149.326] (==) Automatically enabling devices
[   149.326] (**) Not automatically adding GPU devices
[   149.326] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   149.326]    Entry deleted from font path.
[   149.326] (==) 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
[   149.326] (++) ModulePath set to "/usr/lib/nvidia,/usr/lib/xorg/modules"
[   149.326] (==) |-->Input Device "<default pointer>"
[   149.326] (==) |-->Input Device "<default keyboard>"
[   149.326] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
[   149.326] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
[   149.326] (II) Loader magic: 0x7ff36deccd40
[   149.326] (II) Module ABI versions:
[   149.327]    X.Org ANSI C Emulation: 0.4
[   149.327]    X.Org Video Driver: 15.0
[   149.327]    X.Org XInput driver : 20.0
[   149.327]    X.Org Server Extension : 8.0
[   149.327] (II) xfree86: Adding drm device (/dev/dri/card0)
[   149.327] setversion 1.4 failed: Permission denied
[   149.328] (--) PCI:*(0:1:0:0) 10de:0fd1:152d:0934 rev 161, Mem @ 0xd2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[   149.328] Initializing built-in extension Generic Event Extension
[   149.328] Initializing built-in extension SHAPE
[   149.328] Initializing built-in extension MIT-SHM
[   149.328] Initializing built-in extension XInputExtension
[   149.328] Initializing built-in extension XTEST
[   149.328] Initializing built-in extension BIG-REQUESTS
[   149.328] Initializing built-in extension SYNC
[   149.328] Initializing built-in extension XKEYBOARD
[   149.328] Initializing built-in extension XC-MISC
[   149.328] Initializing built-in extension SECURITY
[   149.328] Initializing built-in extension XINERAMA
[   149.328] Initializing built-in extension XFIXES
[   149.328] Initializing built-in extension RENDER
[   149.328] Initializing built-in extension RANDR
[   149.328] Initializing built-in extension COMPOSITE
[   149.328] Initializing built-in extension DAMAGE
[   149.328] Initializing built-in extension MIT-SCREEN-SAVER
[   149.328] Initializing built-in extension DOUBLE-BUFFER
[   149.328] Initializing built-in extension RECORD
[   149.328] Initializing built-in extension DPMS
[   149.328] Initializing built-in extension Present
[   149.328] Initializing built-in extension DRI3
[   149.328] Initializing built-in extension X-Resource
[   149.328] Initializing built-in extension XVideo
[   149.328] Initializing built-in extension XVideo-MotionCompensation
[   149.328] Initializing built-in extension SELinux
[   149.328] Initializing built-in extension XFree86-VidModeExtension
[   149.328] Initializing built-in extension XFree86-DGA
[   149.328] Initializing built-in extension XFree86-DRI
[   149.328] Initializing built-in extension DRI2
[   149.328] (II) LoadModule: "glx"
[   149.328] (II) Loading /usr/lib/nvidia/libglx.so
[   149.369] (II) Module glx: vendor="NVIDIA Corporation"
[   149.369]    compiled for 4.0.2, module version = 1.0.0
[   149.369]    Module class: X.Org Server Extension
[   149.369] (II) NVIDIA GLX Module  319.82  Sun Dec 29 23:17:58 PST 2013
[   149.369] Loading extension GLX
[   149.369] (II) LoadModule: "nvidia"
[   149.369] (II) Loading /usr/lib/nvidia/current/nvidia_drv.so
[   149.375] (II) Module nvidia: vendor="NVIDIA Corporation"
[   149.375]    compiled for 4.0.2, module version = 1.0.0
[   149.375]    Module class: X.Org Video Driver
[   149.375] (II) LoadModule: "mouse"
[   149.375] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[   149.376] (II) Module mouse: vendor="X.Org Foundation"
[   149.376]    compiled for 1.15.0, module version = 1.9.0
[   149.376]    Module class: X.Org XInput Driver
[   149.376]    ABI class: X.Org XInput driver, version 20.0
[   149.376] (II) LoadModule: "kbd"
[   149.376] (WW) Warning, couldn't open module kbd
[   149.376] (II) UnloadModule: "kbd"
[   149.376] (II) Unloading kbd
[   149.376] (EE) Failed to load module "kbd" (module does not exist, 0)
[   149.376] (II) NVIDIA dlloader X Driver  319.82  Sun Dec 29 22:59:30 PST 2013
[   149.376] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   149.376] (--) using VT number 7

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

and the last several lines from dmesg:

$ dmesg|tail
[  158.971364] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)
[  158.971421] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)
[  158.971477] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)
[  158.971534] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)
[  158.971591] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)
[  158.976521] NVRM: RmInitAdapter failed! (0x25:0x28:1148)
[  158.976530] NVRM: rm_init_adapter(0) failed
[  209.192083] bbswitch: enabling discrete graphics
[  250.483290] bbswitch: enabling discrete graphics
[  250.495488] nvidia 0000:01:00.0: Refused to change power state, currently in D3

Also, no /etc/X11/xorg.conf is created. Any ideas to get the card run normally? Thank you.

UPDATE: has been solved by changing GRUB_CMDLINE_LINUX_DEFAULT="quiet" to GRUB_CMDLINE_LINUX_DEFAULT="quiet rcutree.rcu_idle_gp_delay=1" in /etc/default/grub. Can be closed.

@HikvIneH
Copy link

got the same error like you, but chaning kernel parameters did not solved it for me.

@CLandel89
Copy link

@HikvIneH Is there a line
NVRM: failed to copy vbios to system memory.
in your dmesg? If so, issue #628 is often referenced, however I don't see where this issue solves the problem. If you find it, please share.

@HikvIneH
Copy link

@TitanL the only way that I could make it work is by downgrading to kernel 4.9 from 4.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants