Bumblebee-Project/Bumblebee — Issue #161: Bumblebee X server failing to start
Author: jmerkin
Created: 2011-11-22 00:45:15+00:00
State: open

I seem to be having a pretty common issue, but the google solutions haven't worked. When I try

$optirun glxgears

it returns

The Bumblebee X server was not available, please check the
Bumblebee logfile at /var/log/bumblebee.log

/var/log/bumblebee.log has this:

[ 6229.41] Optirun start request received.
[ 6229.42] Checking for X server availability before starting X...
[ 6229.42] X server is not started
[ 6229.43] Power management is disabled, only loading driver
[ 6229.53]
[ 6229.54] Starting X using nvidia...
[ 6229.54] Waiting for X server to become available...
[ 6239.61] The Bumblebee X server failed to start. Please check /var/log/Xorg.8.log
[ 6239.61] Waiting for orders

xorg.8.log:

6229.576] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 6229.577] drmOpenDevice: node name is /dev/dri/card0
[ 6229.577] drmOpenDevice: open result is 10, (OK)
[ 6229.577] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[ 6229.577] drmOpenDevice: node name is /dev/dri/card0
[ 6229.577] drmOpenDevice: open result is 10, (OK)
[ 6229.577] drmOpenByBusid: drmOpenMinor returns 10
[ 6229.577] drmOpenByBusid: Interface 1.4 failed, trying 1.1
[ 6229.577] drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
[ 6229.577] (EE) intel(0): [drm] failed to set drm interface version.
[ 6229.577] (EE) intel(0): Failed to become DRM master.
[ 6229.577] (**) intel(0): Depth 24, (--) framebuffer bpp 32
[ 6229.577] (==) intel(0): RGB weight 888
[ 6229.577] (==) intel(0): Default visual is TrueColor
[ 6229.577] (II) intel(0): Integrated Graphics Chipset: Intel(R) Arrandale
[ 6229.577] (--) intel(0): Chipset: "Arrandale"
[ 6229.577] (**) intel(0): Relaxed fencing disabled
[ 6229.577] (**) intel(0): Wait on SwapBuffers? enabled
[ 6229.577] (**) intel(0): Triple buffering? enabled
[ 6229.577] (**) intel(0): Framebuffer tiled
[ 6229.577] (**) intel(0): Pixmaps tiled
[ 6229.577] (**) intel(0): 3D buffers tiled
[ 6229.577] (**) intel(0): SwapBuffers wait enabled
[ 6229.577] (==) intel(0): video overlay key set to 0x101fe
[ 6229.577] (EE) intel(0): failed to get resources: Bad file descriptor
[ 6229.577] (II) UnloadModule: "intel"
[ 6229.577] (II) Unloading intel
[ 6229.577] (EE) Screen(s) found, but none have a usable configuration.
[ 6229.577]
Fatal server error:
[ 6229.577] no screens found
[ 6229.577]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 6229.577] Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[ 6229.577]
[ 6229.577] Server terminated with error (1). Closing log file.

I'm running Arch, using the package in AUR. My /etc/X11/xorg.conf.d/10-monitor.conf:
Section "Monitor"
Identifier "Monitor0"
HorizSync 1.0 - 10000.0
VertRefresh 1.0 - 10000.0
EndSection

Section "Device"
Identifier "Device0"
Driver "intel" #"vesa"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1366x768"
EndSubSection
EndSection

and /etc/bumblebee/xorg.conf.nvidia:
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
EndSection

Section "Files"
ModulePath "/usr/lib/nvidia-bumblebee,/usr/lib/xorg/modules"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:01:00:0"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "ConnectedMonitor" "DFP"
EndSection

I've tried just about ever combination of DFP, CRT, DRP-0, CRT-0, and pairs of those, as suggested elsewhere. I wiped and installed on a fresh system, so I shouldn't have old installs lying around. Removing the nvidia module and letting bumblebee load it changes nothing except adding a line about insmod.