Bumblebee-Project / Bumblebee

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

bumblebee 3.2.1, optirun is waiting forever #597

Closed Javran closed 9 years ago

Javran commented 10 years ago

my nvidia card seems to take over all the works and optirun is waiting forever.

When I try to run optiun -vv, I get the following message:

[30000.255166] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[30000.255315] [INFO]Configured driver: nvidia

And after that, it just keeps waiting forever, no significant CPU / memory usage change.

I have no clue about what is going wrong, but here are some files I think might be helpful:

/etc/bumblebee/bumblebee.conf:

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false

# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib64/opengl/nvidia/lib:/usr/lib32/opengl/nvidia/lib:/usr/lib/opengl/nvidia/lib
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib64/opengl/nvidia/lib,/usr/lib64/opengl/nvidia/extensions,/usr/lib64/xorg/modules/drivers,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

var/log/Xorg.0.log:

[     8.145] 
X.Org X Server 1.16.0
Release Date: 2014-07-16
[     8.145] X Protocol Version 11, Revision 0
[     8.145] Build Operating System: Linux 3.15.3-gentoo x86_64 Gentoo
[     8.145] Current Operating System: Linux Sajuuk 3.15.7-gentoo #1 SMP PREEMPT Sat Aug 2 15:29:38 CST 2014 x86_64
[     8.145] Kernel command line: root=/dev/sda7 rootfstype=ext4
[     8.145] Build Date: 02 August 2014  02:22:04PM
[     8.145]  
[     8.145] Current version of pixman: 0.32.4
[     8.145]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[     8.145] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     8.145] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Aug  6 09:06:38 2014
[     8.161] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     8.161] (==) No Layout section.  Using the first Screen section.
[     8.161] (==) No screen section available. Using defaults.
[     8.161] (**) |-->Screen "Default Screen Section" (0)
[     8.161] (**) |   |-->Monitor "<default monitor>"
[     8.162] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[     8.162] (==) Automatically adding devices
[     8.162] (==) Automatically enabling devices
[     8.162] (==) Automatically adding GPU devices
[     8.167] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[     8.167]    Entry deleted from font path.
[     8.167] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[     8.167]    Entry deleted from font path.
[     8.167] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[     8.167]    Entry deleted from font path.
[     8.167] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[     8.167]    Entry deleted from font path.
[     8.167]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[     8.167] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[     8.168]    Entry deleted from font path.
[     8.168]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[     8.168] (==) FontPath set to:
    /usr/share/fonts/misc/
[     8.168] (==) ModulePath set to "/usr/lib64/xorg/modules"
[     8.168] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[     8.168] (II) Loader magic: 0x805c80
[     8.168] (II) Module ABI versions:
[     8.168]    X.Org ANSI C Emulation: 0.4
[     8.168]    X.Org Video Driver: 18.0
[     8.168]    X.Org XInput driver : 21.0
[     8.168]    X.Org Server Extension : 8.0
[     8.168] (II) xfree86: Adding drm device (/dev/dri/card1)
[     8.168] (II) xfree86: Adding drm device (/dev/dri/card0)
[     8.169] (--) PCI:*(0:0:2:0) 8086:0416:1462:10e8 rev 6, Mem @ 0xf7400000/4194304, 0xb0000000/268435456, I/O @ 0x0000f000/64
[     8.169] (--) PCI: (0:1:0:0) 10de:11e0:1462:10e8 rev 161, Mem @ 0xf6000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[     8.169] (II) LoadModule: "glx"
[     8.179] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[     8.191] (II) Module glx: vendor="X.Org Foundation"
[     8.191]    compiled for 1.16.0, module version = 1.0.0
[     8.191]    ABI class: X.Org Server Extension, version 8.0
[     8.191] (==) AIGLX enabled
[     8.191] (==) Matched intel as autoconfigured driver 0
[     8.192] (==) Matched nouveau as autoconfigured driver 1
[     8.192] (==) Matched nv as autoconfigured driver 2
[     8.192] (==) Matched intel as autoconfigured driver 3
[     8.192] (==) Matched modesetting as autoconfigured driver 4
[     8.192] (==) Matched fbdev as autoconfigured driver 5
[     8.192] (==) Matched vesa as autoconfigured driver 6
[     8.192] (==) Assigned the driver to the xf86ConfigLayout
[     8.192] (II) LoadModule: "intel"
[     8.192] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[     8.194] (II) Module intel: vendor="X.Org Foundation"
[     8.194]    compiled for 1.16.0, module version = 2.99.914
[     8.194]    Module class: X.Org Video Driver
[     8.194]    ABI class: X.Org Video Driver, version 18.0
[     8.194] (II) LoadModule: "nouveau"
[     8.194] (WW) Warning, couldn't open module nouveau
[     8.194] (II) UnloadModule: "nouveau"
[     8.194] (II) Unloading nouveau
[     8.194] (EE) Failed to load module "nouveau" (module does not exist, 0)
[     8.194] (II) LoadModule: "nv"
[     8.194] (WW) Warning, couldn't open module nv
[     8.194] (II) UnloadModule: "nv"
[     8.194] (II) Unloading nv
[     8.194] (EE) Failed to load module "nv" (module does not exist, 0)
[     8.194] (II) LoadModule: "modesetting"
[     8.195] (WW) Warning, couldn't open module modesetting
[     8.195] (II) UnloadModule: "modesetting"
[     8.195] (II) Unloading modesetting
[     8.195] (EE) Failed to load module "modesetting" (module does not exist, 0)
[     8.195] (II) LoadModule: "fbdev"
[     8.195] (WW) Warning, couldn't open module fbdev
[     8.195] (II) UnloadModule: "fbdev"
[     8.195] (II) Unloading fbdev
[     8.195] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     8.195] (II) LoadModule: "vesa"
[     8.195] (WW) Warning, couldn't open module vesa
[     8.195] (II) UnloadModule: "vesa"
[     8.195] (II) Unloading vesa
[     8.195] (EE) Failed to load module "vesa" (module does not exist, 0)
[     8.195] (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
[     8.195] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[     8.195] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[     8.195] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[     8.195] (++) using VT number 7

[     8.201] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20080730
[     8.203] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[     8.203] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
[     8.203] (II) intel(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[     8.203] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[     8.203] (==) intel(0): RGB weight 888
[     8.203] (==) intel(0): Default visual is TrueColor
[     8.203] (II) intel(0): Output eDP1 has no monitor section
[     8.203] (--) intel(0): Found backlight control interface acpi_video0 (type 'firmware') for output eDP1
[     8.203] (II) intel(0): Output VGA1 has no monitor section
[     8.203] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[     8.203] (II) intel(0): Output VIRTUAL1 has no monitor section
[     8.203] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[     8.203] (==) intel(0): TearFree disabled
[     8.203] (==) intel(0): DPI set to (96, 96)
[     8.203] (II) Loading sub module "dri2"
[     8.203] (II) LoadModule: "dri2"
[     8.203] (II) Module "dri2" already built-in
[     8.203] (II) Loading sub module "present"
[     8.203] (II) LoadModule: "present"
[     8.203] (II) Module "present" already built-in
[     8.203] (==) Depth 24 pixmap format is 32 bpp
[     8.206] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[     8.206] (==) intel(0): Backing store enabled
[     8.206] (==) intel(0): Silken mouse enabled
[     8.207] (II) intel(0): HW Cursor enabled
[     8.207] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[     8.207] (==) intel(0): DPMS enabled
[     8.207] (II) intel(0): [DRI2] Setup complete
[     8.207] (II) intel(0): [DRI2]   DRI driver: i965
[     8.207] (II) intel(0): [DRI2]   VDPAU driver: i965
[     8.207] (II) intel(0): direct rendering: DRI2 enabled
[     8.207] (II) intel(0): hardware support for Present enabled
[     8.207] (==) intel(0): display hotplug detection enabled
[     8.207] (--) RandR disabled
[     8.242] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[     8.242] (II) AIGLX: enabled GLX_ARB_create_context
[     8.242] (II) AIGLX: enabled GLX_ARB_create_context_profile
[     8.242] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[     8.242] (II) AIGLX: enabled GLX_INTEL_swap_event
[     8.242] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[     8.242] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[     8.242] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[     8.242] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[     8.242] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[     8.242] (II) AIGLX: Loaded and initialized i965
[     8.242] (II) GLX: Initialized DRI2 GL provider for screen 0
[     8.245] (II) intel(0): switch to mode 1920x1080@59.9 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[     8.253] (II) intel(0): Setting screen physical size to 508 x 285
[     8.321] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[     8.321] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[     8.321] (II) LoadModule: "evdev"
[     8.321] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[     8.327] (II) Module evdev: vendor="X.Org Foundation"
[     8.327]    compiled for 1.16.0, module version = 2.8.4
[     8.327]    Module class: X.Org XInput Driver
[     8.327]    ABI class: X.Org XInput driver, version 21.0
[     8.327] (II) Using input driver 'evdev' for 'Power Button'
[     8.327] (**) Power Button: always reports core events
[     8.327] (**) evdev: Power Button: Device: "/dev/input/event2"
[     8.327] (--) evdev: Power Button: Vendor 0 Product 0x1
[     8.327] (--) evdev: Power Button: Found keys
[     8.327] (II) evdev: Power Button: Configuring as keyboard
[     8.327] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[     8.327] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     8.327] (**) Option "xkb_rules" "evdev"
[     8.327] (**) Option "xkb_model" "pc104"
[     8.327] (**) Option "xkb_layout" "us"
[     8.338] (II) config/udev: Adding input device Video Bus (/dev/input/event11)
[     8.338] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[     8.338] (II) Using input driver 'evdev' for 'Video Bus'
[     8.338] (**) Video Bus: always reports core events
[     8.338] (**) evdev: Video Bus: Device: "/dev/input/event11"
[     8.338] (--) evdev: Video Bus: Vendor 0 Product 0x6
[     8.338] (--) evdev: Video Bus: Found keys
[     8.338] (II) evdev: Video Bus: Configuring as keyboard
[     8.338] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input12/event11"
[     8.338] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[     8.338] (**) Option "xkb_rules" "evdev"
[     8.338] (**) Option "xkb_model" "pc104"
[     8.338] (**) Option "xkb_layout" "us"
[     8.338] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[     8.338] (II) No input driver specified, ignoring this device.
[     8.338] (II) This device may have been added with another device file.
[     8.338] (II) config/udev: Adding input device Video Bus (/dev/input/event10)
[     8.338] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[     8.338] (II) Using input driver 'evdev' for 'Video Bus'
[     8.338] (**) Video Bus: always reports core events
[     8.338] (**) evdev: Video Bus: Device: "/dev/input/event10"
[     8.338] (--) evdev: Video Bus: Vendor 0 Product 0x6
[     8.338] (--) evdev: Video Bus: Found keys
[     8.338] (II) evdev: Video Bus: Configuring as keyboard
[     8.338] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:47/LNXVIDEO:00/input/input11/event10"
[     8.338] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[     8.338] (**) Option "xkb_rules" "evdev"
[     8.338] (**) Option "xkb_model" "pc104"
[     8.338] (**) Option "xkb_layout" "us"
[     8.339] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[     8.339] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[     8.339] (II) Using input driver 'evdev' for 'Power Button'
[     8.339] (**) Power Button: always reports core events
[     8.339] (**) evdev: Power Button: Device: "/dev/input/event1"
[     8.339] (--) evdev: Power Button: Vendor 0 Product 0x1
[     8.339] (--) evdev: Power Button: Found keys
[     8.339] (II) evdev: Power Button: Configuring as keyboard
[     8.339] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[     8.339] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[     8.339] (**) Option "xkb_rules" "evdev"
[     8.339] (**) Option "xkb_model" "pc104"
[     8.339] (**) Option "xkb_layout" "us"
[     8.339] (II) config/udev: Adding input device Razer Razer DeathAdder 2013 (/dev/input/event4)
[     8.339] (**) Razer Razer DeathAdder 2013: Applying InputClass "evdev pointer catchall"
[     8.339] (II) Using input driver 'evdev' for 'Razer Razer DeathAdder 2013'
[     8.339] (**) Razer Razer DeathAdder 2013: always reports core events
[     8.339] (**) evdev: Razer Razer DeathAdder 2013: Device: "/dev/input/event4"
[     8.339] (--) evdev: Razer Razer DeathAdder 2013: Vendor 0x1532 Product 0x37
[     8.339] (--) evdev: Razer Razer DeathAdder 2013: Found 9 mouse buttons
[     8.339] (--) evdev: Razer Razer DeathAdder 2013: Found scroll wheel(s)
[     8.339] (--) evdev: Razer Razer DeathAdder 2013: Found relative axes
[     8.339] (--) evdev: Razer Razer DeathAdder 2013: Found x and y relative axes
[     8.339] (II) evdev: Razer Razer DeathAdder 2013: Configuring as mouse
[     8.339] (II) evdev: Razer Razer DeathAdder 2013: Adding scrollwheel support
[     8.339] (**) evdev: Razer Razer DeathAdder 2013: YAxisMapping: buttons 4 and 5
[     8.339] (**) evdev: Razer Razer DeathAdder 2013: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     8.339] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:1532:0037.0001/input/input6/event4"
[     8.339] (II) XINPUT: Adding extended input device "Razer Razer DeathAdder 2013" (type: MOUSE, id 10)
[     8.339] (II) evdev: Razer Razer DeathAdder 2013: initialized for relative axes.
[     8.339] (**) Razer Razer DeathAdder 2013: (accel) keeping acceleration scheme 1
[     8.339] (**) Razer Razer DeathAdder 2013: (accel) acceleration profile 0
[     8.339] (**) Razer Razer DeathAdder 2013: (accel) acceleration factor: 2.000
[     8.339] (**) Razer Razer DeathAdder 2013: (accel) acceleration threshold: 4
[     8.339] (II) config/udev: Adding input device Razer Razer DeathAdder 2013 (/dev/input/mouse0)
[     8.339] (II) No input driver specified, ignoring this device.
[     8.339] (II) This device may have been added with another device file.
[     8.339] (II) config/udev: Adding input device Razer Razer DeathAdder 2013 (/dev/input/event5)
[     8.339] (**) Razer Razer DeathAdder 2013: Applying InputClass "evdev keyboard catchall"
[     8.339] (II) Using input driver 'evdev' for 'Razer Razer DeathAdder 2013'
[     8.339] (**) Razer Razer DeathAdder 2013: always reports core events
[     8.339] (**) evdev: Razer Razer DeathAdder 2013: Device: "/dev/input/event5"
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: Using mtdev for this device
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Vendor 0x1532 Product 0x37
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found 1 mouse buttons
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found scroll wheel(s)
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found relative axes
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: Forcing relative x/y axes to exist.
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found absolute axes
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found absolute multitouch axes
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found keys
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: Configuring as mouse
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: Configuring as keyboard
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: Adding scrollwheel support
[     8.340] (**) evdev: Razer Razer DeathAdder 2013: YAxisMapping: buttons 4 and 5
[     8.340] (**) evdev: Razer Razer DeathAdder 2013: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[     8.340] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/0003:1532:0037.0002/input/input7/event5"
[     8.340] (II) XINPUT: Adding extended input device "Razer Razer DeathAdder 2013" (type: KEYBOARD, id 11)
[     8.340] (**) Option "xkb_rules" "evdev"
[     8.340] (**) Option "xkb_model" "pc104"
[     8.340] (**) Option "xkb_layout" "us"
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: initialized for relative axes.
[     8.340] (WW) evdev: Razer Razer DeathAdder 2013: ignoring absolute axes.
[     8.340] (**) Razer Razer DeathAdder 2013: (accel) keeping acceleration scheme 1
[     8.340] (**) Razer Razer DeathAdder 2013: (accel) acceleration profile 0
[     8.340] (**) Razer Razer DeathAdder 2013: (accel) acceleration factor: 2.000
[     8.340] (**) Razer Razer DeathAdder 2013: (accel) acceleration threshold: 4
[     8.340] (II) config/udev: Adding input device Razer Razer DeathAdder 2013 (/dev/input/event6)
[     8.340] (**) Razer Razer DeathAdder 2013: Applying InputClass "evdev keyboard catchall"
[     8.340] (II) Using input driver 'evdev' for 'Razer Razer DeathAdder 2013'
[     8.340] (**) Razer Razer DeathAdder 2013: always reports core events
[     8.340] (**) evdev: Razer Razer DeathAdder 2013: Device: "/dev/input/event6"
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Vendor 0x1532 Product 0x37
[     8.340] (--) evdev: Razer Razer DeathAdder 2013: Found keys
[     8.340] (II) evdev: Razer Razer DeathAdder 2013: Configuring as keyboard
[     8.340] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/0003:1532:0037.0003/input/input8/event6"
[     8.340] (II) XINPUT: Adding extended input device "Razer Razer DeathAdder 2013" (type: KEYBOARD, id 12)
[     8.340] (**) Option "xkb_rules" "evdev"
[     8.340] (**) Option "xkb_model" "pc104"
[     8.340] (**) Option "xkb_layout" "us"
[     8.340] (II) config/udev: Adding input device Topre Corporation HHKB Professional (/dev/input/event9)
[     8.340] (**) Topre Corporation HHKB Professional: Applying InputClass "evdev keyboard catchall"
[     8.340] (II) Using input driver 'evdev' for 'Topre Corporation HHKB Professional'
[     8.340] (**) Topre Corporation HHKB Professional: always reports core events
[     8.340] (**) evdev: Topre Corporation HHKB Professional: Device: "/dev/input/event9"
[     8.340] (--) evdev: Topre Corporation HHKB Professional: Vendor 0x853 Product 0x100
[     8.340] (--) evdev: Topre Corporation HHKB Professional: Found keys
[     8.340] (II) evdev: Topre Corporation HHKB Professional: Configuring as keyboard
[     8.340] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2.1/3-2.1:1.0/0003:0853:0100.0005/input/input10/event9"
[     8.340] (II) XINPUT: Adding extended input device "Topre Corporation HHKB Professional" (type: KEYBOARD, id 13)
[     8.340] (**) Option "xkb_rules" "evdev"
[     8.340] (**) Option "xkb_model" "pc104"
[     8.340] (**) Option "xkb_layout" "us"
[     8.341] (II) config/udev: Adding input device USB 2.0 WebCam Device (/dev/input/event8)
[     8.341] (**) USB 2.0 WebCam Device: Applying InputClass "evdev keyboard catchall"
[     8.341] (II) Using input driver 'evdev' for 'USB 2.0 WebCam Device'
[     8.341] (**) USB 2.0 WebCam Device: always reports core events
[     8.341] (**) evdev: USB 2.0 WebCam Device: Device: "/dev/input/event8"
[     8.341] (--) evdev: USB 2.0 WebCam Device: Vendor 0x64e Product 0xd282
[     8.341] (--) evdev: USB 2.0 WebCam Device: Found keys
[     8.341] (II) evdev: USB 2.0 WebCam Device: Configuring as keyboard
[     8.341] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/input/input9/event8"
[     8.341] (II) XINPUT: Adding extended input device "USB 2.0 WebCam Device" (type: KEYBOARD, id 14)
[     8.341] (**) Option "xkb_rules" "evdev"
[     8.341] (**) Option "xkb_model" "pc104"
[     8.341] (**) Option "xkb_layout" "us"
[     8.341] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[     8.341] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[     8.341] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[     8.341] (**) AT Translated Set 2 keyboard: always reports core events
[     8.341] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event3"
[     8.341] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[     8.341] (--) evdev: AT Translated Set 2 keyboard: Found keys
[     8.341] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[     8.341] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[     8.341] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 15)
[     8.341] (**) Option "xkb_rules" "evdev"
[     8.341] (**) Option "xkb_model" "pc104"
[     8.341] (**) Option "xkb_layout" "us"
[     8.341] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event7)
[     8.341] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
[     8.341] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[     8.341] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[     8.341] (II) LoadModule: "synaptics"
[     8.341] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
[     8.342] (II) Module synaptics: vendor="X.Org Foundation"
[     8.342]    compiled for 1.16.0, module version = 1.7.6
[     8.342]    Module class: X.Org XInput Driver
[     8.342]    ABI class: X.Org XInput driver, version 21.0
[     8.342] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
[     8.342] (**) SynPS/2 Synaptics TouchPad: always reports core events
[     8.342] (**) Option "Device" "/dev/input/event7"
[     8.440] (II) synaptics: SynPS/2 Synaptics TouchPad: ignoring touch events for semi-multitouch device
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1138 - 5802 (res 61)
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 910 - 4942 (res 91)
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left right double triple
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
[     8.440] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[     8.440] (**) SynPS/2 Synaptics TouchPad: always reports core events
[     8.476] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input5/event7"
[     8.476] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 16)
[     8.476] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
[     8.476] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
[     8.476] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.032
[     8.476] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
[     8.476] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
[     8.477] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[     8.477] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[     8.477] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[     8.477] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse1)
[     8.477] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[    16.176] (II) intel(0): EDID vendor "LGD", prod id 601
[    16.176] (II) intel(0): Printing DDC gathered Modelines:
[    16.176] (II) intel(0): Modeline "1920x1080"x0.0  138.50  1920 1968 2000 2080  1080 1083 1088 1111 -hsync -vsync (66.6 kHz eP)

/var/log/Xorg.8.log:

[ 26946.189] 
X.Org X Server 1.16.0
Release Date: 2014-07-16
[ 26946.189] X Protocol Version 11, Revision 0
[ 26946.189] Build Operating System: Linux 3.15.3-gentoo x86_64 Gentoo
[ 26946.189] Current Operating System: Linux Sajuuk 3.15.7-gentoo #1 SMP PREEMPT Sat Aug 2 15:29:38 CST 2014 x86_64
[ 26946.189] Kernel command line: root=/dev/sda7 rootfstype=ext4
[ 26946.189] Build Date: 02 August 2014  02:22:04PM
[ 26946.189]  
[ 26946.189] Current version of pixman: 0.32.4
[ 26946.189]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[ 26946.189] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 26946.189] (==) Log file: "/var/log/Xorg.8.log", Time: Wed Aug  6 16:35:36 2014
[ 26946.190] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[ 26946.190] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[ 26946.190] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 26946.190] (==) ServerLayout "Layout0"
[ 26946.190] (==) No screen section available. Using defaults.
[ 26946.190] (**) |-->Screen "Default Screen Section" (0)
[ 26946.190] (**) |   |-->Monitor "<default monitor>"
[ 26946.190] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[ 26946.190] (**) |   |-->Device "DiscreteNvidia"
[ 26946.190] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[ 26946.190] (**) Option "AutoAddDevices" "false"
[ 26946.190] (**) Option "AutoAddGPU" "false"
[ 26946.190] (**) Not automatically adding devices
[ 26946.190] (==) Automatically enabling devices
[ 26946.190] (**) Not automatically adding GPU devices
[ 26946.190] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 26946.190]    Entry deleted from font path.
[ 26946.190] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 26946.190]    Entry deleted from font path.
[ 26946.190] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 26946.190]    Entry deleted from font path.
[ 26946.190] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 26946.190]    Entry deleted from font path.
[ 26946.190]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 26946.190] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 26946.190]    Entry deleted from font path.
[ 26946.190]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 26946.190] (==) FontPath set to:
    /usr/share/fonts/misc/
[ 26946.190] (++) ModulePath set to "/usr/lib64/opengl/nvidia/lib,/usr/lib64/opengl/nvidia/extensions,/usr/lib64/xorg/modules/drivers,/usr/lib64/xorg/modules"
[ 26946.190] (==) |-->Input Device "<default pointer>"
[ 26946.190] (==) |-->Input Device "<default keyboard>"
[ 26946.190] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
[ 26946.190] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
[ 26946.190] (II) Loader magic: 0x805c80
[ 26946.190] (II) Module ABI versions:
[ 26946.190]    X.Org ANSI C Emulation: 0.4
[ 26946.190]    X.Org Video Driver: 18.0
[ 26946.190]    X.Org XInput driver : 21.0
[ 26946.190]    X.Org Server Extension : 8.0
[ 26946.190] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 26946.190] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 26946.190] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 26946.191] (--) PCI:*(0:1:0:0) 10de:11e0:1462:10e8 rev 161, Mem @ 0xf6000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 26946.191] (II) LoadModule: "glx"
[ 26946.191] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[ 26946.288] (II) Module glx: vendor="NVIDIA Corporation"
[ 26946.288]    compiled for 4.0.2, module version = 1.0.0
[ 26946.288]    Module class: X.Org Server Extension
[ 26946.288] (II) NVIDIA GLX Module  340.24  Wed Jul  2 15:04:31 PDT 2014
[ 26946.289] (II) LoadModule: "nvidia"
[ 26946.289] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 26946.297] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 26946.297]    compiled for 4.0.2, module version = 1.0.0
[ 26946.297]    Module class: X.Org Video Driver
[ 26946.298] (II) LoadModule: "mouse"
[ 26946.298] (WW) Warning, couldn't open module mouse
[ 26946.298] (II) UnloadModule: "mouse"
[ 26946.298] (II) Unloading mouse
[ 26946.298] (EE) Failed to load module "mouse" (module does not exist, 0)
[ 26946.298] (II) LoadModule: "kbd"
[ 26946.298] (WW) Warning, couldn't open module kbd
[ 26946.298] (II) UnloadModule: "kbd"
[ 26946.298] (II) Unloading kbd
[ 26946.298] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 26946.298] (II) NVIDIA dlloader X Driver  340.24  Wed Jul  2 14:42:23 PDT 2014
[ 26946.298] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 26946.298] (--) using VT number 7

[ 26946.299] (II) Loading sub module "fb"
[ 26946.299] (II) LoadModule: "fb"
[ 26946.300] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 26946.301] (II) Module fb: vendor="X.Org Foundation"
[ 26946.301]    compiled for 1.16.0, module version = 1.0.0
[ 26946.301]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 26946.301] (WW) Unresolved symbol: fbGetGCPrivateKey
[ 26946.301] (II) Loading sub module "wfb"
[ 26946.301] (II) LoadModule: "wfb"
[ 26946.301] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[ 26946.302] (II) Module wfb: vendor="X.Org Foundation"
[ 26946.302]    compiled for 1.16.0, module version = 1.0.0
[ 26946.302]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 26946.302] (II) Loading sub module "ramdac"
[ 26946.302] (II) LoadModule: "ramdac"
[ 26946.302] (II) Module "ramdac" already built-in

My video cards:

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK106M [GeForce GTX 770M] (rev a1)

And I don't have a /etc/X11/xorg.conf file.

amonakov commented 10 years ago

So is it hanging when initializing the nVidia GPU? Can you show dmesg and obtain a gdb backtrace from secondary Xorg?

Javran commented 10 years ago

Here is my dmesg output. As for gdb backtrace from secondary Xorg, I don't know how to obtain that, can you point me to some related guides? Thanks.

amonakov commented 10 years ago

Never mind the backtrace, as dmesg indicates you're hitting a driver bug (or a kernel bug). Is it a new install or a regression due to kernel or driver update?

Since the kernel module fails to load you probably should report the problem to NVIDIA.

Javran commented 10 years ago

Sure, I'll try to report this problem to nvidia and see if it helps.

ArchangeGabriel commented 10 years ago

Also, normally nvidia should be blacklisted to avoid loading at boot, which is not the case here. Dunno if that because of the packaging in Gentoo or something you’ve changed.

karolherbst commented 10 years ago

usually in gentoo you do it yourself, because usually you only install what you actually use: http://wiki.gentoo.org/wiki/Nouveau_%26_nvidia-drivers_switching

Maybe this links is actually better: http://wiki.gentoo.org/wiki/NVidia/nvidia-drivers

ArchangeGabriel commented 9 years ago

Javran, did you have any news on nvidia side since? I’m closing this issue as this is supposed to be an upstream bug, feel free to reopen or comment in any needs.

Javran commented 9 years ago

Thanks for reaching me! I asked on nvidia side once, it's likely a bug in nvidia driver somewhere between 334.16 and 334.21 that had crashed module "nvidia-smi", and the crash log can still be seen using a newer kernel (3.17.4 in my case). But the one I asked wasn't able to narrow it down to the real cause. maybe I'll try for another time.

BTW, occasionally "nvidia-smi" doesn't get crashed during startup, and if that's the case, bumblebee seems to be fine.