Bumblebee-Project/Bumblebee — Issue #145: Archlinux, X crash
Author: ThisNameWasFree
Created: 2011-10-28 19:18:22+00:00
State: open

```
[yura@RF511 ~]$ optirun wine ~/.wine/drive_c/WarcraftIII/Frozen\ Throne.exe -opengl
The Bumblebee X server was not available, please check the
Bumblebee logfile at /var/log/bumblebee.log
```

/var/log/bumblebee.log:

```
[ 13281.96] Bumblebee log started at Sat, 22 Oct 2011 21:02:46 +0300
[ 13281.97] Creating fifo /var/run/bumblebee.fifo for communication...
[ 13281.99] Making FIFO writable for members of group bumblebee
[ 13282.01] Power management is disabled, not disabling card on start.
[ 13282.01] Waiting for orders
[ 13392.11] Checking for X server availability before stopping it...
[ 13392.11] The X server has not started or the pidfile is invalid.
[ 13392.12] X is stopped.
[ 13392.12] Power management is disabled, not unloading driver
[ 13392.13] Power management is disabled, card already enabled.
[ 13392.13] Bumblebee log ended on Sat, 22 Oct 2011 21:04:36 +0300
[ 167.01] Bumblebee log started at Sat, 22 Oct 2011 21:08:02 +0300
[ 167.02] Creating fifo /var/run/bumblebee.fifo for communication...
[ 167.03] Making FIFO writable for members of group bumblebee
[ 167.04] Power management is disabled, not disabling card on start.
[ 167.04] Waiting for orders
[ 171.49] Checking for X server availability before stopping it...
[ 171.50] The X server has not started or the pidfile is invalid.
[ 171.51] X is stopped.
[ 171.51] Power management is disabled, not unloading driver
[ 171.52] Power management is disabled, card already enabled.
[ 171.52] Bumblebee log ended on Sat, 22 Oct 2011 21:08:06 +0300
[ 207.24] Bumblebee log started at Sat, 22 Oct 2011 21:08:42 +0300
[ 207.25] Creating fifo /var/run/bumblebee.fifo for communication...
[ 207.25] Making FIFO writable for members of group bumblebee
[ 207.26] Power management is disabled, not disabling card on start.
[ 207.26] Waiting for orders
[ 212.12] Optirun start request received.
[ 212.12] Checking for X server availability before starting X...
[ 212.13] X server is not started
[ 212.13] Power management is disabled, only loading driver
[ 212.21]
[ 212.21] Starting X using nvidia...
[ 212.22] Waiting for X server to become available...
[ 222.39] The Bumblebee X server failed to start. Please check /var/log/Xorg.8.log
[ 222.39] Waiting for orders
[ 317.00] Optirun start request received.
[ 317.01] Checking for X server availability before starting X...
[ 317.01] X server is not started
[ 317.02] Power management is disabled, only loading driver
[ 317.07]
[ 317.08] Starting X using nvidia...
[ 317.08] Waiting for X server to become available...
[ 317.11] The Bumblebee X server failed to start. Please check /var/log/Xorg.8.log
[ 317.11] Waiting for orders
[ 2291.28] Checking for X server availability before stopping it...
[ 2291.29] The X server has not started or the pidfile is invalid.
[ 2291.29] X is stopped.
[ 2291.30] Power management is disabled, not unloading driver
[ 2291.30] Power management is disabled, card already enabled.
[ 2291.31] Bumblebee log ended on Sat, 22 Oct 2011 21:43:26 +0300
[ 11.68] Bumblebee log started at Fri, 28 Oct 2011 22:01:40 +0300
[ 11.69] Creating fifo /var/run/bumblebee.fifo for communication...
[ 11.71] Making FIFO writable for members of group bumblebee
[ 11.93] Power management is disabled, not disabling card on start.
[ 11.93] Waiting for orders
[ 123.01] Optirun start request received.
[ 123.02] Checking for X server availability before starting X...
[ 123.02] X server is not started
[ 123.02] Power management is disabled, only loading driver
[ 123.10]
[ 123.10] Starting X using nvidia...
[ 123.10] Waiting for X server to become available...
[ 123.73] The Bumblebee X server failed to start. Please check /var/log/Xorg.8.log
[ 123.73] Waiting for orders
[ 150.64] Optirun start request received.
[ 150.64] Checking for X server availability before starting X...
[ 150.65] X server is not started
[ 150.65] Power management is disabled, only loading driver
[ 150.70]
[ 150.70] Starting X using nvidia...
[ 150.71] Waiting for X server to become available...
[ 150.73] The Bumblebee X server failed to start. Please check /var/log/Xorg.8.log
[ 150.73] Waiting for orders
```

/var/log/Xorg.8.log:

```
[ 150.712]
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
[ 150.712]
X.Org X Server 1.11.1.901 (1.11.2 RC 1)
Release Date: 2011-10-14
[ 150.712] X Protocol Version 11, Revision 0
[ 150.712] Build Operating System: Linux 3.0-ARCH x86_64
[ 150.712] Current Operating System: Linux RF511 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 10:27:51 CEST 2011 x86_64
[ 150.712] Kernel command line: root=/dev/disk/by-uuid/6e8e36e0-8d25-48d9-8d7a-710ddd8776b0 ro
[ 150.712] Build Date: 24 October 2011 12:29:30PM
[ 150.712]
[ 150.712] Current version of pixman: 0.22.2
[ 150.712]	Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 150.712] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 150.712] (==) Log file: "/var/log/Xorg.8.log", Time: Fri Oct 28 22:03:59 2011
[ 150.712] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[ 150.712] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 150.712] (==) ServerLayout "Layout0"
[ 150.712] (==) No screen section available. Using defaults.
[ 150.712] (**) |-->Screen "Default Screen Section" (0)
[ 150.712] (**) | |-->Monitor ""
[ 150.712] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 150.712] (**) | |-->Device "Device0"
[ 150.712] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 150.712] (**) Option "AutoAddDevices" "false"
[ 150.712] (**) Not automatically adding devices
[ 150.712] (==) Automatically enabling devices
[ 150.712] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 150.712]	Entry deleted from font path.
[ 150.712] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[ 150.712] (**) ModulePath set to "/usr/lib/nvidia-bumblebee,/usr/lib/xorg/modules"
[ 150.712] (==) |-->Input Device ""
[ 150.712] (==) |-->Input Device ""
[ 150.712] (==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
[ 150.712] (==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
[ 150.712] (II) Loader magic: 0x7ccae0
[ 150.712] (II) Module ABI versions:
[ 150.712]	X.Org ANSI C Emulation: 0.4
[ 150.712]	X.Org Video Driver: 11.0
[ 150.712]	X.Org XInput driver : 13.0
[ 150.712]	X.Org Server Extension : 6.0
[ 150.713] (--) PCI:*(0:0:2:0) 8086:0116:144d:c0a5 rev 9, Mem @ 0xf5400000/4194304, 0xc0000000/268435456, I/O @ 0x0000e000/64
[ 150.713] (--) PCI: (0:1:0:0) 10de:0df4:144d:c0a5 rev 161, Mem @ 0xf4000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
[ 150.713] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 150.713] (II) LoadModule: "extmod"
[ 150.714] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 150.714] (II) Module extmod: vendor="X.Org Foundation"
[ 150.714]	compiled for 1.11.1.901, module version = 1.0.0
[ 150.714]	Module class: X.Org Server Extension
[ 150.714]	ABI class: X.Org Server Extension, version 6.0
[ 150.714] (II) Loading extension MIT-SCREEN-SAVER
[ 150.714] (II) Loading extension XFree86-VidModeExtension
[ 150.714] (II) Loading extension XFree86-DGA
[ 150.714] (II) Loading extension DPMS
[ 150.714] (II) Loading extension XVideo
[ 150.714] (II) Loading extension XVideo-MotionCompensation
[ 150.714] (II) Loading extension X-Resource
[ 150.714] (II) LoadModule: "dbe"
[ 150.714] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 150.714] (II) Module dbe: vendor="X.Org Foundation"
[ 150.714]	compiled for 1.11.1.901, module version = 1.0.0
[ 150.714]	Module class: X.Org Server Extension
[ 150.714]	ABI class: X.Org Server Extension, version 6.0
[ 150.714] (II) Loading extension DOUBLE-BUFFER
[ 150.714] (II) LoadModule: "glx"
[ 150.714] (II) Loading /usr/lib/nvidia-bumblebee/xorg/modules/extensions/libglx.so
[ 150.723] (II) Module glx: vendor="NVIDIA Corporation"
[ 150.723]	compiled for 4.0.2, module version = 1.0.0
[ 150.723]	Module class: X.Org Server Extension
[ 150.723] (II) NVIDIA GLX Module 285.05.09 Fri Sep 23 17:51:24 PDT 2011
[ 150.723] (II) Loading extension GLX
[ 150.723] (II) LoadModule: "record"
[ 150.724] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 150.724] (II) Module record: vendor="X.Org Foundation"
[ 150.724]	compiled for 1.11.1.901, module version = 1.13.0
[ 150.724]	Module class: X.Org Server Extension
[ 150.724]	ABI class: X.Org Server Extension, version 6.0
[ 150.724] (II) Loading extension RECORD
[ 150.724] (II) LoadModule: "dri"
[ 150.724] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 150.724] (II) Module dri: vendor="X.Org Foundation"
[ 150.724]	compiled for 1.11.1.901, module version = 1.0.0
[ 150.724]	ABI class: X.Org Server Extension, version 6.0
[ 150.724] (II) Loading extension XFree86-DRI
[ 150.724] (II) LoadModule: "dri2"
[ 150.724] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 150.724] (II) Module dri2: vendor="X.Org Foundation"
[ 150.724]	compiled for 1.11.1.901, module version = 1.2.0
[ 150.724]	ABI class: X.Org Server Extension, version 6.0
[ 150.724] (II) Loading extension DRI2
[ 150.724] (II) LoadModule: "intel"
[ 150.725] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 150.725] (II) Module intel: vendor="X.Org Foundation"
[ 150.725]	compiled for 1.10.99.902, module version = 2.16.0
[ 150.725]	Module class: X.Org Video Driver
[ 150.725]	ABI class: X.Org Video Driver, version 11.0
[ 150.725] (II) LoadModule: "mouse"
[ 150.725] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[ 150.725] (II) Module mouse: vendor="X.Org Foundation"
[ 150.725]	compiled for 1.10.99.902, module version = 1.7.1
[ 150.725]	Module class: X.Org XInput Driver
[ 150.725]	ABI class: X.Org XInput driver, version 13.0
[ 150.725] (II) LoadModule: "kbd"
[ 150.725] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[ 150.725] (II) Module kbd: vendor="X.Org Foundation"
[ 150.725]	compiled for 1.10.99.902, module version = 1.6.0
[ 150.725]	Module class: X.Org XInput Driver
[ 150.725]	ABI class: X.Org XInput driver, version 13.0
[ 150.725] (II) intel: Driver for Intel 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, B43, Clarkdale, Arrandale,
Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server
[ 150.726] (--) using VT number 7

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

Some info:

```
[yura@RF511 ~]$ lspci -d10de: -nn | grep '030[02]'
01:00.0 3D controller [0302]: nVidia Corporation Device [10de:0df4] (rev a1)
```
/etc/rc.conf:

```
#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# Note: Using "localtime" is discouraged, using "" makes hwclock fall back
# to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# Note: if unset, the value in /etc/localtime is used unchanged
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="ru_RU.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Minsk"
KEYMAP="us"
CONSOLEFONT="cyr-sun16"
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
# Replace every !module by an entry as on the following line in a file in
# /etc/modprobe.d:
# blacklist module
# See "man modprobe.conf" for details.
#
MODULES=(fuse vboxdrv vboxnetflt)

# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30

# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"

# Scan for BTRFS volumes at startup
USEBTRFS="no"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="RF511"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
# - broadcast: broadcast address (ignored for DHCP) (optional)
# - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0[yura@RF511 ~]$ lspci -d10de: -nn | grep '030[02]'
01:00.0 3D controller [0302]: nVidia Corporation Device [10de:0df4] (rev a1)
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth1
address=
netmask=
broadcast=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(dbus hwclock gdm netfs nvidia @networkmanager @syslog-ng @crond @bumblebee)
```

/etc/X11/xorg.conf.d/10-video.conf:

```
Section "Device"
Identifier "Device0"
Driver "intel"
EndSection
```

```
[yura@RF511 ~]$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
```

```
[yura@RF511 ~]$ uname -a
Linux RF511 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 10:27:51 CEST 2011 x86_64 Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz GenuineIntel GNU/Linux
```