Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.3k stars 142 forks source link

Failed to assign any connected display devices to X screen 0 #314

Closed blacknumbers closed 11 years ago

blacknumbers commented 11 years ago

Hello. I just got ubuntu linux, and because I have nvidia optimus in my laptop I have to install bumblebee.

When doing "optirun -- firefox", I get this error:

[ 676.104220] [ERROR]Cannot access secondary GPU - error: XORG NVIDIA(0): Failed to assign any connected display devices to X screen 0

[ 676.104257] [ERROR]Aborting because fallback start is disabled.

I searched the issues and saw that some people had this same issue, but I didn't understand how to solve the problem, if there was even a provided solution

My laptop specs:

hp-pavilion dv6 nvidia geforce gt 650m 2GB intel core i7 - quad core 2.3 ghz installed ubuntu through WUBI, if that makes a difference.

ArchangeGabriel commented 11 years ago

What returns lscpi ? I'm not sure about WUBI, but AFAIR, it's not a true installation of Ubuntu, and it's quite such a VM. Which would make a great difference.

blacknumbers commented 11 years ago

I'm guessing you mean lspci. If yes, then:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4) 00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4) 00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04) 00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode](rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04) 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 650M](rev a1) 08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01) 0a:00.0 Network controller: Ralink corp. Device 539a 0b:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)

ArchangeGabriel commented 11 years ago

Hum right sorry, lspci.

So, the card is here. What is the content of /etc/bumblebee/xorg.conf.nvidia ? Could you paste Xorg.8.log ?

blacknumbers commented 11 years ago

xorg.conf.nvidia:

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

Section "Device" Identifier "Device1" Driver "nvidia" VendorName "NVIDIA Corporation" Option "NoLogo" "true" Option "UseEDID" "false" Option "ConnectedMonitor" "DFP" EndSection

xorg.8.log:

[ 1188.640] X.Org X Server 1.13.0 Release Date: 2012-09-05 [ 1188.640] X Protocol Version 11, Revision 0 [ 1188.640] Build Operating System: Linux 3.2.0-32-generic x86_64 Ubuntu [ 1188.640] Current Operating System: Linux ubuntu 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 [ 1188.640] Kernel command line: BOOTIMAGE=/boot/vmlinuz-3.5.0-21-generic root=UUID=FEB07213B071D31F loop=/ubuntu/disks/root.disk ro quiet splash [ 1188.640] Build Date: 27 November 2012 07:44:35AM [ 1188.640] xorg-server 2:1.13.0-0ubuntu6.1 (For technical support please see http://www.ubuntu.com/support) [ 1188.640] Current version of pixman: 0.26.0 [ 1188.640] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 1188.640] Markers: (--) probed, (*) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. 1188.640 Log file: "/var/log/Xorg.8.log", Time: Thu Jan 10 17:18:22 2013 1188.641 Using config file: "/etc/bumblebee/xorg.conf.nvidia" 1188.641 Using system config directory "/usr/share/X11/xorg.conf.d" 1188.641 ServerLayout "Layout0" 1188.641 No screen section available. Using defaults. 1188.641 |-->Screen "Default Screen Section" (0) 1188.641 | |-->Monitor "" 1188.641 No device specified for screen "Default Screen Section". Using the first device section listed. 1188.641 | |-->Device "Device1" 1188.641 No monitor specified for screen "Default Screen Section". Using a default monitor configuration. 1188.641 Option "AutoAddDevices" "false" 1188.641 Not automatically adding devices 1188.641 Automatically enabling devices 1188.641 Automatically adding GPU devices 1188.641 The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 1188.642] Entry deleted from font path. 1188.642 The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 1188.642] Entry deleted from font path. 1188.642 The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 1188.642] Entry deleted from font path. 1188.642 The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 1188.642] Entry deleted from font path. 1188.642 The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 1188.642] Entry deleted from font path. 1188.642 The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist. [ 1188.642] Entry deleted from font path. 1188.642 FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, built-ins 1188.642 ModulePath set to "/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules" 1188.642 |-->Input Device "" 1188.642 |-->Input Device "" 1188.642 The core pointer device wasn't specified explicitly in the layout. Using the default mouse configuration. 1188.642 The core keyboard device wasn't specified explicitly in the layout. Using the default keyboard configuration. 1188.642 Loader magic: 0x7f9e54c20c40 1188.642 Module ABI versions: [ 1188.642] X.Org ANSI C Emulation: 0.4 [ 1188.642] X.Org Video Driver: 13.0 [ 1188.642] X.Org XInput driver : 18.0 [ 1188.642] X.Org Server Extension : 7.0 1188.642 config/udev: Adding drm device (/dev/dri/card0) [ 1188.642] setversion 1.4 failed 1188.644 PCI:_(0:1:0:0) 10de:0fd1:103c:181b rev 161, Mem @ 0xd2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288 1188.644 Open ACPI successful (/var/run/acpid.socket) [ 1188.644] Initializing built-in extension Generic Event Extension [ 1188.644] Initializing built-in extension SHAPE [ 1188.644] Initializing built-in extension MIT-SHM [ 1188.644] Initializing built-in extension XInputExtension [ 1188.644] Initializing built-in extension XTEST [ 1188.644] Initializing built-in extension BIG-REQUESTS [ 1188.644] Initializing built-in extension SYNC [ 1188.644] Initializing built-in extension XKEYBOARD [ 1188.644] Initializing built-in extension XC-MISC [ 1188.644] Initializing built-in extension SECURITY [ 1188.644] Initializing built-in extension XINERAMA [ 1188.644] Initializing built-in extension XFIXES [ 1188.644] Initializing built-in extension RENDER [ 1188.644] Initializing built-in extension RANDR [ 1188.644] Initializing built-in extension COMPOSITE [ 1188.644] Initializing built-in extension DAMAGE [ 1188.644] Initializing built-in extension MIT-SCREEN-SAVER [ 1188.644] Initializing built-in extension DOUBLE-BUFFER [ 1188.644] Initializing built-in extension RECORD [ 1188.644] Initializing built-in extension DPMS [ 1188.644] Initializing built-in extension X-Resource [ 1188.644] Initializing built-in extension XVideo [ 1188.644] Initializing built-in extension XVideo-MotionCompensation [ 1188.644] Initializing built-in extension XFree86-VidModeExtension [ 1188.644] Initializing built-in extension XFree86-DGA [ 1188.644] Initializing built-in extension XFree86-DRI [ 1188.644] Initializing built-in extension DRI2 1188.644 LoadModule: "glx" 1188.644 Loading /usr/lib/nvidia-current/xorg/libglx.so 1188.650 Module glx: vendor="NVIDIA Corporation" [ 1188.650] compiled for 4.0.2, module version = 1.0.0 [ 1188.650] Module class: X.Org Server Extension 1188.650 NVIDIA GLX Module 304.43 Sun Aug 19 20:34:01 PDT 2012 [ 1188.650] Loading extension GLX 1188.650 LoadModule: "nvidia" 1188.650 Loading /usr/lib/nvidia-current/xorg/nvidia_drv.so 1188.650 Module nvidia: vendor="NVIDIA Corporation" [ 1188.650] compiled for 4.0.2, module version = 1.0.0 [ 1188.650] Module class: X.Org Video Driver 1188.650 LoadModule: "mouse" 1188.650 Loading /usr/lib/xorg/modules/input/mouse_drv.so 1188.650 Module mouse: vendor="X.Org Foundation" [ 1188.650] compiled for 1.12.99.902, module version = 1.7.2 [ 1188.650] Module class: X.Org XInput Driver [ 1188.650] ABI class: X.Org XInput driver, version 18.0 1188.650 LoadModule: "kbd" 1188.651 Warning, couldn't open module kbd 1188.651 UnloadModule: "kbd" 1188.651 Unloading kbd 1188.651 Failed to load module "kbd" (module does not exist, 0) 1188.651 NVIDIA dlloader X Driver 304.43 Sun Aug 19 20:15:32 PDT 2012 1188.651 NVIDIA Unified Driver for all Supported NVIDIA GPUs 1188.651 using VT number 7

1188.651 Loading sub module "fb" 1188.651 LoadModule: "fb" 1188.651 Loading /usr/lib/xorg/modules/libfb.so 1188.651 Module fb: vendor="X.Org Foundation" [ 1188.651] compiled for 1.13.0, module version = 1.0.0 [ 1188.651] ABI class: X.Org ANSI C Emulation, version 0.4 1188.651 Loading sub module "wfb" 1188.651 LoadModule: "wfb" 1188.651 Loading /usr/lib/xorg/modules/libwfb.so 1188.651 Module wfb: vendor="X.Org Foundation" [ 1188.651] compiled for 1.13.0, module version = 1.0.0 [ 1188.651] ABI class: X.Org ANSI C Emulation, version 0.4 1188.651 Loading sub module "ramdac" 1188.651 LoadModule: "ramdac" 1188.651 Module "ramdac" already built-in 1188.651 NVIDIA(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 1188.651 NVIDIA(0): Depth 24, (==) framebuffer bpp 32 1188.651 NVIDIA(0): RGB weight 888 1188.651 NVIDIA(0): Default visual is TrueColor 1188.651 NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) 1188.651 NVIDIA(0): Option "NoLogo" "true" 1188.651 NVIDIA(0): Option "UseEDID" "false" 1188.651 NVIDIA(0): Option "ConnectedMonitor" "DFP" 1188.651 NVIDIA(0): Enabling 2D acceleration 1188.651 NVIDIA(0): ConnectedMonitor string: "DFP" 1188.651 NVIDIA(0): Ignoring EDIDs 1189.027 NVIDIA(0): NVIDIA GPU GeForce GT 650M (GK107) at PCI:1:0:0 (GPU-0) 1189.027 NVIDIA(0): Memory: 2097152 kBytes 1189.027 NVIDIA(0): VideoBIOS: 80.07.14.00.11 1189.027 NVIDIA(0): Detected PCI Express Link width: 16X 1189.027 NVIDIA(0): Interlaced video modes are supported on this GPU 1189.029 NVIDIA(0): Valid display device(s) on GeForce GT 650M at PCI:1:0:0 1189.030 NVIDIA(0): CRT-0 1189.030 NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock 1189.030 NVIDIA(0): Failed to assign any connected display devices to X screen 0 1189.033 NVIDIA(0): Failing initialization of X screen 0 1189.050 UnloadModule: "nvidia" 1189.050 UnloadSubModule: "wfb" 1189.050 UnloadSubModule: "fb" 1189.050 Screen(s) found, but none have a usable configuration. [ 1189.050] Fatal server error: [ 1189.050] no screens found 1189.050 Please consult the The X.Org Foundation support at http://wiki.x.org for help. 1189.050 Please also check the log file at "/var/log/Xorg.8.log" for additional information. 1189.050 [ 1189.050] Server terminated with error (1). Closing log file.

ArchangeGabriel commented 11 years ago

Strange, which Bumblebee version is this ?

To solve your problem, just change Option "ConnectedMonitor" "DFP" with Option "UseDisplayDevice" "none"

ArchangeGabriel commented 11 years ago

Hum, in fact I've just figured out we still haven't released this change...

blacknumbers commented 11 years ago

After doing what you said, then typing in terminal "optirun -- firefox", firefox boots up. Which is amazing, but then this pops up in terminal as firefox is running:

\ (firefox:3354): WARNING **: Failed to open webapp application path dir /usr/share/ubuntu/unity-webapps/userscripts: Error opening directory '/usr/share/ubuntu/unity-webapps/userscripts': No such file or directory

\ (firefox:3354): WARNING **: Failed to open webapp application path dir /usr/share/gnome/unity-webapps/userscripts: Error opening directory '/usr/share/gnome/unity-webapps/userscripts': No such file or directory

\ (firefox:3354): WARNING **: Failed to open webapp application path dir /usr/local/share/unity-webapps/userscripts: Error opening directory '/usr/local/share/unity-webapps/userscripts': No such file or directory

Should I need to do something else? Or is that just firefox throwing out mumbo jumbo?

ArchangeGabriel commented 11 years ago

No, just don't worry, this are warning you would get too if you try just firefox in a terminal.

blacknumbers commented 11 years ago

Awesome thanks.

One more thing that doesn't specifically pertain to this problem, but is still an issue I am having and one you must know the answer to since it's definitely one of the best ways to test to see if bumblebee is working: My computer doesn't have glxspheres on it. I thought it would automatically have it, but when I type "optirun glxspheres" it says:

/usr/bin/vglrun: 303: exec: glxspheres: not found

ArchangeGabriel commented 11 years ago

Which is really strange... This is supposed to be a part of VirtualGL installation (not a default Ubuntu package). So this is really weird and I have no any idea of why it does not work. Maybe try reinstalling virtualgl package...

blacknumbers commented 11 years ago

That's what I'll try doing. Thank you.