Bumblebee-Project / Bumblebee

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

Optirun seems to start, but no output #70

Closed poVoq closed 12 years ago

poVoq commented 12 years ago

Hello

I have the following problem with Bumblebee on my Asus N43sn running a fresh Mint Linux 12 (based on Ubuntu 11.10):

Bumblebee installed fine and Ironhide was working fine on a previous Ubuntu 11.10 install. However under settings: "restricted drivers" the nvidia drivers are not shown to be actived (even though synaptic shows them as installed).

Anyways this is what happens If I start "optirun glxspheres": Nothing seems to happen except for a blinking cursor (no error message what so ever), but the fan starts turning up. Then the only way to exit is via ctrl+c

Feb  1 22:36:27 krischan-N43SN kernel: [  189.230505] bbswitch: enabling discrete graphics
Feb  1 22:36:28 krischan-N43SN bumblebeed[1157]: The PCI config space could not be written fully at offset 0x1; 0 bytes have been written; error: Resource temporarily unavailable
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879823] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879830] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879865] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879868] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879872] pci 0000:01:00.0: enabling device (0000 -> 0003)
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879877] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  1 22:36:28 krischan-N43SN kernel: [  189.879882] pci 0000:01:00.0: setting latency timer to 64
Feb  1 22:36:28 krischan-N43SN kernel: [  190.129150] nvidia: module license 'NVIDIA' taints kernel.
Feb  1 22:36:28 krischan-N43SN kernel: [  190.129153] Disabling lock debugging due to kernel taint
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488142] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488147] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488151] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488157] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488164] nvidia 0000:01:00.0: setting latency timer to 64
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488168] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
Feb  1 22:36:28 krischan-N43SN kernel: [  190.488277] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  280.13  Wed Jul 27 16:53:56 PDT 2011
Feb  1 22:36:28 krischan-N43SN acpid: client connected from 1946[0:1001]
Feb  1 22:36:28 krischan-N43SN acpid: 1 client rule loaded
Feb  1 22:36:31 krischan-N43SN acpid: client connected from 1946[0:1001]
Feb  1 22:36:31 krischan-N43SN acpid: 1 client rule loaded
Feb  1 22:36:51 krischan-N43SN kernel: [  213.713431] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000000
Feb  1 22:36:59 krischan-N43SN kernel: [  221.713352] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000001
Feb  1 22:37:07 krischan-N43SN kernel: [  229.717242] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000002
Feb  1 22:37:15 krischan-N43SN kernel: [  237.733151] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000003
Feb  1 22:37:24 krischan-N43SN kernel: [  245.737032] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000004
Feb  1 22:37:32 krischan-N43SN kernel: [  253.736921] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000005
Feb  1 22:37:40 krischan-N43SN kernel: [  261.732811] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000006
Feb  1 22:37:48 krischan-N43SN kernel: [  269.744700] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000007
Feb  1 22:44:04 krischan-N43SN acpid: client 1194[0:0] has disconnected
Feb  1 22:44:04 krischan-N43SN acpid: client connected from 1194[0:0]
Feb  1 22:44:04 krischan-N43SN acpid: 1 client rule loaded

note: at 22:36 I started optirun at 22:44 I killed optirun via ctrl+c

Thanks for the help!

Lekensteyn commented 12 years ago

Does the issue persist after a reboot? Have you fully purged Ironhide?

poVoq commented 12 years ago

Thanks for the quick reply! Yes, I am fighting with this issue already since yesterday... several reboots didn't do any difference.

Ironhide was never installed under the current system, e.g. I formatted the entire HD before reinstalling Mint Linux.

Are there any other log outputs I can post to help with figuring out the problem?

Edit: on the previous Ubuntu installation I had the same issue which I attributed to the maybe not fully purged Ironhide (I followed the instruction in the wiki though)... thus I decided to reinstall with Mint 12.

Lekensteyn commented 12 years ago

Try adding the ubuntu-x-swat/x-updates PPA for a newer driver which may solve your issue. You may want to run a memory test too, sometimes these errors are caused by bad RAM (or other hardware).

poVoq commented 12 years ago

Thanks again for the reply!

Updating the driver though the mint restricted driver interface kills the sandybridge support for gnome, e.g. then I can only use the non accelerated fallback mode. I did then add&updated the ubuntu-x-swat/x-updates PPA and removed and reinstalled bumblebee (to get into DE acceleration again), but the result is still the same, e.g. optirun seems to start but no program output at all.

I have my doubts that it is a RAM or hardware error as I have been using this laptop extensively with Ironhide for more han half a year now... but I can run a mem-check tomorrow.

Hmm maybe it is something in the specific configuration file for the Asus N43sn that comes with Ironhide (e.g. downloaded and can be then selected) that makes the difference?

Lekensteyn commented 12 years ago

To rule out power management issues, you can edit /etc/bumblebee/bumblebee.conf and set PmMethod=none under [driver-nvidia]. Reboot to be sure that the state has not changed and try again.

joharei commented 12 years ago

Hi, I have the exact same issue on my Clevo W150 running Arch Linux. When I run optirun glxspheres, the power management seems to work; the card is on and the fan is running faster, but nothing shows up. Sometimes, however, it works as it should just after a reboot, but once I close glxspheres, it won't start again... dmesg output:


[Thu Feb  2 11:42:49 2012] bbswitch: enabling discrete graphics
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: power state changed by ACPI to D0
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: power state changed by ACPI to D0
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100003)
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: power state changed by ACPI to D0
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: power state changed by ACPI to D0
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[Thu Feb  2 11:42:49 2012] pci 0000:01:00.0: setting latency timer to 64
[Thu Feb  2 11:42:50 2012] nvidia 0000:01:00.0: power state changed by ACPI to D0
[Thu Feb  2 11:42:50 2012] nvidia 0000:01:00.0: power state changed by ACPI to D0
[Thu Feb  2 11:42:50 2012] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[Thu Feb  2 11:42:50 2012] nvidia 0000:01:00.0: setting latency timer to 64
[Thu Feb  2 11:42:50 2012] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
[Thu Feb  2 11:42:50 2012] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  290.10  Wed Nov 16 17:39:29 PST 2011
[Thu Feb  2 11:45:59 2012] nvidia 0000:01:00.0: PCI INT A disabled
[Thu Feb  2 11:45:59 2012] bbswitch: disabling discrete graphics
[Thu Feb  2 11:45:59 2012] bbswitch: Result of Optimus _DSM call: 11000059
[Thu Feb  2 11:45:59 2012] pci 0000:01:00.0: Refused to change power state, currently in D0
[Thu Feb  2 11:45:59 2012] pci 0000:01:00.0: power state changed by ACPI to D3
Lekensteyn commented 12 years ago

@joharei The log that you've posted does not show anything weird.

joharei commented 12 years ago

I know, that's what I find wierd. I can't find any errors messages, so it's hard to troubleshoot. Please tell me if I should post any other outputs.

Lekensteyn commented 12 years ago

Whoops, stupid mouse. You can get more debugging information by running bumblebeed with -vv:

bumblebeed -vv

You have to stop other running daemons first.

joharei commented 12 years ago

Thank you, now I actually have something to work at. Any help would be appreciated. This is what happens when I leave the process running:


$ sudo bumblebeed -vv
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[DEBUG]Process /sbin/modinfo started, PID 3143.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Detected nvidia driver (module nvidia)
[DEBUG]bbswitch has been detected.
[INFO]Switching method 'bbswitch' is available and will be used.
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] pidfile: /var/run/bumblebeed.pid
[DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[DEBUG] ModulePath: /usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules
[DEBUG] GID name: bumblebee
[DEBUG] Power method: auto
[DEBUG] Stop X on exit: 1
[DEBUG] Driver: nvidia
[DEBUG] Driver module: nvidia
[DEBUG] Card shutdown state: 1
[DEBUG]Process /sbin/modinfo started, PID 3144.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Configuration test passed.
[INFO]bumblebeed 3.0-5-gc7319f6 started
[DEBUG]Saving PCI configuration space...
[INFO]Switching dedicated card OFF [bbswitch]
[INFO]Initialization completed - now handling client requests
[DEBUG]Accepted new connection
[INFO]Switching dedicated card ON [bbswitch]
[DEBUG]Restoring PCI configuration space...
[INFO]Loading driver nvidia (module nvidia)
[DEBUG]Process modprobe started, PID 3371.
[DEBUG]Process with PID 3371 returned code 0
[INFO]Starting X server on display :8.
[DEBUG]Process Xorg started, PID 3372.
[DEBUG][XORG] X.Org X Server 1.11.4
[DEBUG][XORG] Release Date: 2012-01-27
[DEBUG][XORG] X Protocol Version 11, Revision 0
[DEBUG][XORG] Build Operating System: Linux 3.2.2-1-ARCH x86_64 
[DEBUG][XORG] Current Operating System: Linux johan-arch 3.2.2-1-ARCH #1 SMP PREEMPT Thu Jan 26 08:40:20 CET 2012 x86_64
[DEBUG][XORG] Kernel command line: root=/dev/sda1 resume=/dev/sda2 ro i915.semaphores=1
[DEBUG][XORG] Build Date: 29 January 2012  03:38:00PM
[DEBUG][XORG] Current version of pixman: 0.24.2
[DEBUG][XORG]   Before reporting problems, check http://wiki.x.org
[DEBUG][XORG]   to make sure that you have the latest version.
[DEBUG][XORG] Markers: (--) probed, (**) from config file, (==) default setting,
[DEBUG][XORG]   (++) from command line, (!!) notice, (II) informational,
[DEBUG][XORG]   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[DEBUG][XORG] (==) Log file: "/var/log/Xorg.8.log", Time: Thu Feb  2 13:49:03 2012
[DEBUG][XORG] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[DEBUG][XORG] (==) Using config directory: "/etc/X11/xorg.conf.d"
[DEBUG][XORG] (==) ServerLayout "Layout0"
[DEBUG][XORG] (==) No screen section available. Using defaults.
[DEBUG][XORG] (**) |-->Screen "Default Screen Section" (0)
[DEBUG][XORG] (**) |   |-->Monitor "<default monitor>"
[DEBUG][XORG] (==) No device specified for screen "Default Screen Section".
[DEBUG][XORG]   Using the first device section listed.
[DEBUG][XORG] (**) |   |-->Device "Device1"
[DEBUG][XORG] (==) No monitor specified for screen "Default Screen Section".
[DEBUG][XORG]   Using a default monitor configuration.
[DEBUG][XORG] (**) Option "AutoAddDevices" "false"
[DEBUG][XORG] (**) Not automatically adding devices
[DEBUG][XORG] (==) Automatically enabling devices
[DEBUG][XORG] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[DEBUG][XORG]   Entry deleted from font path.
[WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[DEBUG][XORG]   Entry deleted from font path.
[DEBUG][XORG]   (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[DEBUG][XORG]   Entry deleted from font path.
[DEBUG][XORG]   (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[DEBUG][XORG] (==) FontPath set to:
[DEBUG][XORG]   /usr/share/fonts/misc/,
[DEBUG][XORG]   /usr/share/fonts/TTF/,
[DEBUG][XORG]   /usr/share/fonts/Type1/
[DEBUG][XORG] (++) ModulePath set to "/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules"
[DEBUG][XORG] (==) |-->Input Device "<default pointer>"
[DEBUG][XORG] (==) |-->Input Device "<default keyboard>"
[DEBUG][XORG] (==) The core pointer device wasn't specified explicitly in the layout.
[DEBUG][XORG]   Using the default mouse configuration.
[DEBUG][XORG] (==) The core keyboard device wasn't specified explicitly in the layout.
[DEBUG][XORG]   Using the default keyboard configuration.
[DEBUG][XORG] (II) Loader magic: 0x7ccae0
[DEBUG][XORG] (II) Module ABI versions:
[DEBUG][XORG]   X.Org ANSI C Emulation: 0.4
[DEBUG][XORG]   X.Org Video Driver: 11.0
[DEBUG][XORG]   X.Org XInput driver : 13.0
[DEBUG][XORG]   X.Org Server Extension : 6.0
[DEBUG][XORG] (--) PCI:*(0:1:0:0) 10de:0df4:1558:5140 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128
[WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[DEBUG][XORG] (II) LoadModule: "extmod"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[DEBUG][XORG] (II) Module extmod: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.0.0
[DEBUG][XORG]   Module class: X.Org Server Extension
[DEBUG][XORG]   ABI class: X.Org Server Extension, version 6.0
[DEBUG][XORG] (II) Loading extension MIT-SCREEN-SAVER
[DEBUG][XORG] (II) Loading extension XFree86-VidModeExtension
[DEBUG][XORG] (II) Loading extension XFree86-DGA
[DEBUG][XORG] (II) Loading extension DPMS
[DEBUG][XORG] (II) Loading extension XVideo
[DEBUG][XORG] (II) Loading extension XVideo-MotionCompensation
[DEBUG][XORG] (II) Loading extension X-Resource
[DEBUG][XORG] (II) LoadModule: "dbe"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[DEBUG][XORG] (II) Module dbe: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.0.0
[DEBUG][XORG]   Module class: X.Org Server Extension
[DEBUG][XORG]   ABI class: X.Org Server Extension, version 6.0
[DEBUG][XORG] (II) Loading extension DOUBLE-BUFFER
[DEBUG][XORG] (II) LoadModule: "glx"
[DEBUG][XORG] (II) Loading /usr/lib/nvidia-bumblebee/xorg/modules/extensions/libglx.so
[DEBUG][XORG] (II) Module glx: vendor="NVIDIA Corporation"
[DEBUG][XORG]   compiled for 4.0.2, module version = 1.0.0
[DEBUG][XORG]   Module class: X.Org Server Extension
[DEBUG][XORG] (II) NVIDIA GLX Module  290.10  Wed Nov 16 18:01:24 PST 2011
[DEBUG][XORG] (II) Loading extension GLX
[DEBUG][XORG] (II) LoadModule: "record"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[DEBUG][XORG] (II) Module record: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.13.0
[DEBUG][XORG]   Module class: X.Org Server Extension
[DEBUG][XORG]   ABI class: X.Org Server Extension, version 6.0
[DEBUG][XORG] (II) Loading extension RECORD
[DEBUG][XORG] (II) LoadModule: "dri"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[DEBUG][XORG] (II) Module dri: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.0.0
[DEBUG][XORG]   ABI class: X.Org Server Extension, version 6.0
[DEBUG][XORG] (II) Loading extension XFree86-DRI
[DEBUG][XORG] (II) LoadModule: "dri2"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[DEBUG][XORG] (II) Module dri2: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.2.0
[DEBUG][XORG]   ABI class: X.Org Server Extension, version 6.0
[DEBUG][XORG] (II) Loading extension DRI2
[DEBUG][XORG] (II) LoadModule: "nvidia"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[DEBUG][XORG] (II) Module nvidia: vendor="NVIDIA Corporation"
[DEBUG][XORG]   compiled for 4.0.2, module version = 1.0.0
[DEBUG][XORG]   Module class: X.Org Video Driver
[DEBUG][XORG] (II) LoadModule: "mouse"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[DEBUG][XORG] (II) Module mouse: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.10.99.902, module version = 1.7.1
[DEBUG][XORG]   Module class: X.Org XInput Driver
[DEBUG][XORG]   ABI class: X.Org XInput driver, version 13.0
[DEBUG][XORG] (II) LoadModule: "kbd"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[DEBUG][XORG] (II) Module kbd: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.10.99.902, module version = 1.6.0
[DEBUG][XORG]   Module class: X.Org XInput Driver
[DEBUG][XORG]   ABI class: X.Org XInput driver, version 13.0
[DEBUG][XORG] (II) NVIDIA dlloader X Driver  290.10  Wed Nov 16 17:41:10 PST 2011
[DEBUG][XORG] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[DEBUG][XORG] (--) using VT number 7
[DEBUG][XORG] (II) Loading sub module "fb"
[DEBUG][XORG] (II) LoadModule: "fb"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libfb.so
[DEBUG][XORG] (II) Module fb: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.0.0
[DEBUG][XORG]   ABI class: X.Org ANSI C Emulation, version 0.4
[DEBUG][XORG] (II) Loading sub module "wfb"
[DEBUG][XORG] (II) LoadModule: "wfb"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libwfb.so
[DEBUG][XORG] (II) Module wfb: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.0.0
[DEBUG][XORG]   ABI class: X.Org ANSI C Emulation, version 0.4
[DEBUG][XORG] (II) Loading sub module "ramdac"
[DEBUG][XORG] (II) LoadModule: "ramdac"
[DEBUG][XORG] (II) Module "ramdac" already built-in
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libwfb.so
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libfb.so
[DEBUG][XORG] (II) NVIDIA(0): Creating default Display subsection in Screen section
[DEBUG][XORG]   "Default Screen Section" for depth/fbbpp 24/32
[DEBUG][XORG] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[DEBUG][XORG] (==) NVIDIA(0): RGB weight 888
[DEBUG][XORG] (==) NVIDIA(0): Default visual is TrueColor
[DEBUG][XORG] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[DEBUG][XORG] (**) NVIDIA(0): Option "NoLogo" "true"
[DEBUG][XORG] (**) NVIDIA(0): Option "UseEDID" "false"
[DEBUG][XORG] (**) NVIDIA(0): Option "ConnectedMonitor" "CRT-0"
[DEBUG][XORG] (**) NVIDIA(0): ConnectedMonitor string: "CRT-0"
[DEBUG][XORG] (**) NVIDIA(0): Ignoring EDIDs
[DEBUG][XORG] (**) NVIDIA(0): Enabling 2D acceleration
[DEBUG][XORG] (II) NVIDIA(GPU-0): Not probing EDID on CRT-0.
[DEBUG][XORG] (II) NVIDIA(0): NVIDIA GPU GeForce GT 540M (GF108) at PCI:1:0:0 (GPU-0)
[DEBUG][XORG] (--) NVIDIA(0): Memory: 1048576 kBytes
[DEBUG][XORG] (--) NVIDIA(0): VideoBIOS: 70.08.45.00.17
[DEBUG][XORG] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[DEBUG][XORG] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[DEBUG][XORG] (--) NVIDIA(0): Connected display device(s) on GeForce GT 540M at PCI:1:0:0
[DEBUG][XORG] (--) NVIDIA(0):     CRT-0
[DEBUG][XORG] (--) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[DEBUG][XORG] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID has been
[DEBUG][XORG] (**) NVIDIA(0):     enabled on all display devices.
[DEBUG][XORG] (II) NVIDIA(0): Assigned Display Device: CRT-0
[DEBUG][XORG] (==) NVIDIA(0): 
[DEBUG][XORG] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[DEBUG][XORG] (==) NVIDIA(0):     will be used as the requested mode.
[DEBUG][XORG] (==) NVIDIA(0): 
[DEBUG][XORG] (II) NVIDIA(0): Validated modes:
[DEBUG][XORG] (II) NVIDIA(0):     "nvidia-auto-select"
[DEBUG][XORG] (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
[DEBUG][XORG] (WW) NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
[DEBUG][XORG] (WW) NVIDIA(0):     from CRT-0's EDID.
[DEBUG][XORG] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[DEBUG][XORG] (--) Depth 24 pixmap format is 32 bpp
[DEBUG][XORG] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[DEBUG][XORG] (II) NVIDIA:     access.
[DEBUG][XORG] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[DEBUG][XORG] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[DEBUG][XORG] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[DEBUG][XORG] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[DEBUG][XORG] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[DEBUG][XORG] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[DEBUG][XORG] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[DEBUG][XORG] (II) NVIDIA(0):     Config Options in the README.
[DEBUG][XORG] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
[DEBUG][XORG] (II) Loading extension NV-GLX
[DEBUG][XORG] (==) NVIDIA(0): Disabling shared memory pixmaps
[DEBUG][XORG] (==) NVIDIA(0): Backing store disabled
[DEBUG][XORG] (==) NVIDIA(0): Silken mouse enabled
[DEBUG][XORG] (==) NVIDIA(0): DPMS enabled
[DEBUG][XORG] (II) Loading extension NV-CONTROL
[WARN][XORG] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "DFP", but no
[WARN][XORG] (WW) NVIDIA(0):     such display device could be found, or all display devices
[WARN][XORG] (WW) NVIDIA(0):     by that name are currently unavailable.
[WARN][XORG] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "TV", but no such
[WARN][XORG] (WW) NVIDIA(0):     display device could be found, or all display devices by
[WARN][XORG] (WW) NVIDIA(0):     that name are currently unavailable.
[DEBUG][XORG] (II) Loading extension XINERAMA
[DEBUG][XORG] (II) Loading sub module "dri2"
[DEBUG][XORG] (II) LoadModule: "dri2"
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[DEBUG][XORG] (II) Module dri2: vendor="X.Org Foundation"
[DEBUG][XORG]   compiled for 1.11.4, module version = 1.2.0
[DEBUG][XORG]   ABI class: X.Org Server Extension, version 6.0
[DEBUG][XORG] (II) NVIDIA(0): [DRI2] Setup complete
[DEBUG][XORG] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[DEBUG][XORG] (==) RandR enabled
[DEBUG][XORG] (II) Initializing built-in extension Generic Event Extension
[DEBUG][XORG] (II) Initializing built-in extension SHAPE
[DEBUG][XORG] (II) Initializing built-in extension MIT-SHM
[DEBUG][XORG] (II) Initializing built-in extension XInputExtension
[DEBUG][XORG] (II) Initializing built-in extension XTEST
[DEBUG][XORG] (II) Initializing built-in extension BIG-REQUESTS
[DEBUG][XORG] (II) Initializing built-in extension SYNC
[DEBUG][XORG] (II) Initializing built-in extension XKEYBOARD
[DEBUG][XORG] (II) Initializing built-in extension XC-MISC
[DEBUG][XORG] (II) Initializing built-in extension SECURITY
[DEBUG][XORG] (II) Initializing built-in extension XINERAMA
[DEBUG][XORG] (II) Initializing built-in extension XFIXES
[DEBUG][XORG] (II) Initializing built-in extension RENDER
[DEBUG][XORG] (II) Initializing built-in extension RANDR
[DEBUG][XORG] (II) Initializing built-in extension COMPOSITE
[DEBUG][XORG] (II) Initializing built-in extension DAMAGE
[DEBUG][XORG] (II) Initializing extension GLX
[DEBUG][XORG] (II) Using input driver 'mouse' for '<default pointer>'
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[DEBUG][XORG] (**) Option "CorePointer"
[DEBUG][XORG] (**) <default pointer>: always reports core events
[DEBUG][XORG] (WW) <default pointer>: No Device specified, looking for one...
[DEBUG][XORG] (II) <default pointer>: Setting Device option to "/dev/input/mice"
[DEBUG][XORG] (--) <default pointer>: Device: "/dev/input/mice"
[DEBUG][XORG] (==) <default pointer>: Protocol: "Auto"
[DEBUG][XORG] (**) <default pointer>: always reports core events
[DEBUG][XORG] (**) Option "Device" "/dev/input/mice"
[DEBUG][XORG] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
[DEBUG][XORG] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
[DEBUG][XORG] (**) <default pointer>: Buttons: 9
[DEBUG][XORG] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
[DEBUG][XORG] (**) <default pointer>: (accel) keeping acceleration scheme 1
[DEBUG][XORG] (**) <default pointer>: (accel) acceleration profile 0
[DEBUG][XORG] (**) <default pointer>: (accel) acceleration factor: 2.000
[DEBUG][XORG] (**) <default pointer>: (accel) acceleration threshold: 4
[DEBUG][XORG] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
[DEBUG][XORG] (II) <default pointer>: ps2EnableDataReporting: succeeded
[DEBUG][XORG] (II) Using input driver 'kbd' for '<default keyboard>'
[DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[DEBUG][XORG] (**) Option "CoreKeyboard"
[DEBUG][XORG] (**) <default keyboard>: always reports core events
[DEBUG][XORG] (**) <default keyboard>: always reports core events
[DEBUG][XORG] (**) Option "Protocol" "standard"
[DEBUG][XORG] (**) Option "XkbRules" "base"
[DEBUG][XORG] (**) Option "XkbModel" "pc105"
[DEBUG][XORG] (**) Option "XkbLayout" "us"
[DEBUG][XORG] (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
[DEBUG][XORG] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event8)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event10)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event11)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event9)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event12)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[DEBUG][XORG] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
[DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[ERROR]X unresponsive after 10 seconds - aborting
[DEBUG][XORG] (II) UnloadModule: "mouse"
[DEBUG][XORG] (II) Unloading mouse
[DEBUG][XORG] (II) UnloadModule: "kbd"
[DEBUG][XORG] (II) Unloading kbd
[DEBUG]Process with PID 3372 returned code 0
[DEBUG][XORG] Server terminated successfully (0). Closing log file.
[DEBUG]Socket closed.
[DEBUG]Saving PCI configuration space...
[INFO]Unloading nvidia driver
[DEBUG]Process rmmod started, PID 3393.
[DEBUG]Process with PID 3393 returned code 0
[INFO]Switching dedicated card OFF [bbswitch]

$ optirun --debug glxspheres
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0-5-gc7319f6 starting...
[INFO]Response: Yes. X is active.

[INFO]Running application through vglrun.
[DEBUG]Process vglrun started, PID 3382.
Polygons in scene: 62464
[VGL] ERROR: Could not open display :8.
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Socket closed.
[DEBUG]Killing all remaining processes.
Lekensteyn commented 12 years ago

The acpid errors are suspicious and possibly cause a large delay, causing Bumblebee to think that X could not be started. Can you apply https://github.com/Bumblebee-Project/Bumblebee/commit/71c877af79c9fa2c2762570996e5117c3ddd21e2 for printing timestamps on each message?

joharei commented 12 years ago

I would do that, but I can't find out how to do it :) Sorry if I'm beeing a n00b, but could you please point me in the right direction?

Lekensteyn commented 12 years ago

Try (re)installing the bumblebee-git package which will retrieve its sources from develop.

poVoq commented 12 years ago

@joharei: at least I am not the only one ;)

@Lekensteyn: you seem to be onto something with the power management. If I set PmMethod=none I get an actual error when trying to start optirun:

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the

[ERROR]Aborting because fallback start is disabled.

Note: I really stops like this "Please see the" and then nothing.

poVoq commented 12 years ago

output of optirun -vv

optirun -vv glxspheres
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[INFO]Configured driver: nvidia
[DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[DEBUG]Process /sbin/modinfo started, PID 1995.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: yuv
[DEBUG]optirun version 3.0 starting...

note: I set the driver to nvidia and yuv manually, but changing that doesn't make a difference

Edit: when I bumblebeed -vv it tells me the bumblebeed deamon is already running... any easy and quick way to close it before (probably a real n00b question ;) )?

Lekensteyn commented 12 years ago

@poVoq After a change to the daemon settings, you must restart the daemon with sudo restart bumblebeed. If it says restart: unknown job: bumblebeed it is stopped. With sudo stop bumblebeed you can stop the service.

As for your "Failed to ini..." error, try rebooting.

joharei commented 12 years ago

@Lekensteyn Ok, actually I've tried to update bumblebee-git, but it gives me a compilation error. I've seen the same error mentioned on the AUR comments:


$ sudo packer -S bumblebee-git

Aur Targets    (1): bumblebee-git

Proceed with installation? [Y/n] 

Edit bumblebee-git PKGBUILD with $EDITOR? [Y/n] n
Edit bumblebee.install with $EDITOR? [Y/n] n
==> Determining latest git revision...
  -> Version found: 20120202
==> Making package: bumblebee-git 20120202-1 (Thu Feb  2 20:13:17 CET 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found bumblebeed.in
==> Validating source files with md5sums...
    bumblebeed.in ... Passed
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to GIT server....
Already up-to-date.
==> The local files are updated.
==> GIT checkout done or server timeout
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
gcc -Wall -Waggregate-return    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-16-g559464a"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o bin/optirun src/module.o src/bbconfig.o src/bblogger.o src/bbrun.o src/bbsocket.o src/driver.o src/optirun.o src/bbsocketclient.o -lglib-2.0   
/usr/bin/ld: src/bblogger.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [bin/optirun] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.
Lekensteyn commented 12 years ago

Please try again, I've forgotten to include a header that was stated in the manpage.

poVoq commented 12 years ago

That failed to inti error came right after a complete shutdown and reboot.

Here is the output of bumblebeed -vv (incl. starting optirun in another terminal):

sudo bumblebeed -vv
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[INFO]Configured driver: nvidia
[DEBUG]Skipping auto-detection, using configured driver 'nvidia'
[DEBUG]Process /sbin/modinfo started, PID 3780.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]bbswitch has been detected.
[INFO]Switching method 'bbswitch' is available and will be used.
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] pidfile: /var/run/bumblebeed.pid
[DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[DEBUG] ModulePath: /usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
[DEBUG] GID name: bumblebee
[DEBUG] Power method: auto
[DEBUG] Stop X on exit: 1
[DEBUG] Driver: nvidia
[DEBUG] Driver module: nvidia-current
[DEBUG] Card shutdown state: 1
[DEBUG]Process /sbin/modinfo started, PID 3781.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Configuration test passed.
[INFO]bumblebeed 3.0 started
[DEBUG]Saving PCI configuration space...
[INFO]Switching dedicated card OFF [bbswitch]
[INFO]Initialization completed - now handling client requests
[DEBUG]Accepted new connection
[INFO]Switching dedicated card ON [bbswitch]
[DEBUG]Restoring PCI configuration space...
[INFO]Loading driver nvidia (module nvidia-current)
[DEBUG]Process modprobe started, PID 3839.
[DEBUG]Process with PID 3839 returned code 0
[INFO]Starting X server on display :8.
[DEBUG]Process Xorg started, PID 3840.

Can see anything unusual about it, but it definitely doesn't work :(

Lekensteyn commented 12 years ago

@poVoq Any errors in the kernel log?

poVoq commented 12 years ago

Relevant sections of the kernel log:

Feb  2 21:10:46 krischan-N43SN kernel: [ 4797.036998] usb 2-1.2: USB disconnect, device number 4
Feb  2 21:12:41 krischan-N43SN kernel: [ 4912.480103] bbswitch: enabling discrete graphics
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137665] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137684] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137758] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137766] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137783] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137794] pci 0000:01:00.0: setting latency timer to 64
Feb  2 21:12:51 krischan-N43SN kernel: [ 4922.646165] bbswitch: disabling discrete graphics
Feb  2 21:12:51 krischan-N43SN kernel: [ 4922.646497] bbswitch: Result of Optimus _DSM call: 01000059
Feb  2 21:12:51 krischan-N43SN kernel: [ 4922.720765] pci 0000:01:00.0: power state changed by ACPI to D3
Feb  2 21:13:39 krischan-N43SN kernel: [ 4970.147790] bbswitch: enabling discrete graphics
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.806433] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819911] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819939] pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100003, writing 0x100007)
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819954] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819957] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819965] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819969] pci 0000:01:00.0: setting latency timer to 64
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160742] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160747] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160756] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160764] nvidia 0000:01:00.0: setting latency timer to 64
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160768] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160880] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  290.10  Wed Nov 16 17:39:29 PST 2011
Feb  2 21:14:05 krischan-N43SN kernel: [ 4995.895066] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000000
Feb  2 21:14:13 krischan-N43SN kernel: [ 5003.890963] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000001
Feb  2 21:14:21 krischan-N43SN kernel: [ 5011.886856] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000002
Feb  2 21:14:29 krischan-N43SN kernel: [ 5019.882753] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000003
Feb  2 21:14:37 krischan-N43SN kernel: [ 5027.878645] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000004
Feb  2 21:14:45 krischan-N43SN kernel: [ 5035.874542] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000005
Feb  2 21:14:53 krischan-N43SN kernel: [ 5043.870438] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000006
Feb  2 21:15:01 krischan-N43SN kernel: [ 5051.866338] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000007

relevant sections of the sys log:

Feb  2 21:12:41 krischan-N43SN kernel: [ 4912.480103] bbswitch: enabling discrete graphics
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137665] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137684] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137758] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137766] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137783] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 21:12:42 krischan-N43SN kernel: [ 4913.137794] pci 0000:01:00.0: setting latency timer to 64
Feb  2 21:12:51 krischan-N43SN kernel: [ 4922.646165] bbswitch: disabling discrete graphics
Feb  2 21:12:51 krischan-N43SN kernel: [ 4922.646497] bbswitch: Result of Optimus _DSM call: 01000059
Feb  2 21:12:51 krischan-N43SN kernel: [ 4922.720765] pci 0000:01:00.0: power state changed by ACPI to D3
Feb  2 21:13:39 krischan-N43SN kernel: [ 4970.147790] bbswitch: enabling discrete graphics
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.806433] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819911] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819939] pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100003, writing 0x100007)
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819954] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819957] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819965] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 21:13:40 krischan-N43SN kernel: [ 4970.819969] pci 0000:01:00.0: setting latency timer to 64
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160742] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160747] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160756] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160764] nvidia 0000:01:00.0: setting latency timer to 64
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160768] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
Feb  2 21:13:40 krischan-N43SN kernel: [ 4971.160880] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  290.10  Wed Nov 16 17:39:29 PST 2011
Feb  2 21:13:40 krischan-N43SN acpid: client connected from 3840[0:1001]
Feb  2 21:13:40 krischan-N43SN acpid: 1 client rule loaded
Feb  2 21:13:45 krischan-N43SN acpid: client connected from 3840[0:1001]
Feb  2 21:13:45 krischan-N43SN acpid: 1 client rule loaded
Feb  2 21:14:05 krischan-N43SN kernel: [ 4995.895066] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000000
Feb  2 21:14:13 krischan-N43SN kernel: [ 5003.890963] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000001
Feb  2 21:14:21 krischan-N43SN kernel: [ 5011.886856] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000002
Feb  2 21:14:29 krischan-N43SN kernel: [ 5019.882753] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000003
Feb  2 21:14:37 krischan-N43SN kernel: [ 5027.878645] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000004
Feb  2 21:14:45 krischan-N43SN kernel: [ 5035.874542] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000005
Feb  2 21:14:53 krischan-N43SN kernel: [ 5043.870438] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000006
Feb  2 21:15:01 krischan-N43SN kernel: [ 5051.866338] NVRM: Xid (0000:01:00): 16, Head 00000000 Count 00000007

Can really see any errors.

Lekensteyn commented 12 years ago

@poVoq Can you try the nouveau driver, installed from ppa:xorg-edgers/ppa? Install the 3.2 kernel from it as well, currently it's the package linux-image-3.2.0-12-generic. Remove bumblebee-nvidia and nvidia-current before proceeding. Reboot after upgrading.

poVoq commented 12 years ago

Ok I deinstalled the nvidia blob and bumblebee-nvidia and then installed nouveau. Can't find the updated kernel on the xorg-edgers repository though :-/ Sure it is on there?

Anyways, after a reboot this is what now happens when:

optirun -vv glxspheres
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[DEBUG]Process /sbin/modinfo started, PID 1943.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Process /sbin/modinfo started, PID 1944.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Detected nouveau driver
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...
[INFO]Response: Yes. X is active.

[INFO]Running application through vglrun.
[DEBUG]Process vglrun started, PID 1955.
Polygons in scene: 62464
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Socket closed.
[DEBUG]Killing all remaining processes.

Thanks for helping out!

Edit: syslog output from the run above:

Feb  2 22:18:00 krischan-N43SN kernel: [  104.577458] bbswitch: enabling discrete graphics
Feb  2 22:18:01 krischan-N43SN kernel: [  105.260585] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 22:18:01 krischan-N43SN kernel: [  105.260592] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 22:18:01 krischan-N43SN kernel: [  105.260627] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 22:18:01 krischan-N43SN kernel: [  105.260630] pci 0000:01:00.0: power state changed by ACPI to D0
Feb  2 22:18:01 krischan-N43SN kernel: [  105.260637] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 22:18:01 krischan-N43SN kernel: [  105.260642] pci 0000:01:00.0: setting latency timer to 64
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332315] MXM: GUID detected in BIOS
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332380] ACPI Exception: AE_AML_BUFFER_LIMIT, Index (0x0000000000000003) is beyond end of object (20110413/exoparg2-418)
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332385] ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0._DSM] (Node ffff880148e494d8), AE_AML_BUFFER_LIMIT (20110413/psparse-536)
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332393] failed to evaluate _DSM: 12298
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332428] ACPI Exception: AE_AML_BUFFER_LIMIT, Index (0x0000000000000003) is beyond end of object (20110413/exoparg2-418)
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332432] ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0._DSM] (Node ffff880148e494d8), AE_AML_BUFFER_LIMIT (20110413/psparse-536)
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332437] ACPI Error: Method parse/execution failed [\_SB_.PCI0.PEGR.GFX0._DSM] (Node ffff880148e62e10), AE_AML_BUFFER_LIMIT (20110413/psparse-536)
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332443] failed to evaluate _DSM: 12298
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332445] VGA switcheroo: detected DSM switching method \_SB_.PCI0.PEGR.GFX0 handle
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332468] nouveau 0000:01:00.0: power state changed by ACPI to D0
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332471] nouveau 0000:01:00.0: power state changed by ACPI to D0
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332478] nouveau 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb  2 22:18:01 krischan-N43SN kernel: [  105.332482] nouveau 0000:01:00.0: setting latency timer to 64
Feb  2 22:18:01 krischan-N43SN kernel: [  105.335243] [drm] nouveau 0000:01:00.0: Detected an NVc0 generation card (0x0c1b00a1)
Feb  2 22:18:01 krischan-N43SN kernel: [  105.346082] vga_switcheroo: enabled
Feb  2 22:18:01 krischan-N43SN kernel: [  105.346094] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN
Feb  2 22:18:01 krischan-N43SN kernel: [  105.355821] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
Feb  2 22:18:01 krischan-N43SN kernel: [  105.355823] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PROM
Feb  2 22:18:01 krischan-N43SN kernel: [  105.355832] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
Feb  2 22:18:01 krischan-N43SN kernel: [  105.355836] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PCIROM
Feb  2 22:18:01 krischan-N43SN kernel: [  105.365702] nouveau 0000:01:00.0: Invalid ROM contents
Feb  2 22:18:01 krischan-N43SN kernel: [  105.365799] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
Feb  2 22:18:01 krischan-N43SN kernel: [  105.365801] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from ACPI
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184064] [drm] nouveau 0000:01:00.0: ... appears to be valid
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184068] [drm] nouveau 0000:01:00.0: BIT BIOS found
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184071] [drm] nouveau 0000:01:00.0: Bios version 70.08.45.00
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184072] [drm] nouveau 0000:01:00.0: Pointer to BIT loadval table invalid
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184075] [drm] nouveau 0000:01:00.0: TMDS table version 2.0
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184077] [drm] nouveau 0000:01:00.0: Found Display Configuration Block version 4.0
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184079] [drm] nouveau 0000:01:00.0: Raw DCB entry 0: 02011300 00000000
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184081] [drm] nouveau 0000:01:00.0: Raw DCB entry 1: 02012362 00020010
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184083] [drm] nouveau 0000:01:00.0: Raw DCB entry 2: 0000000e 00000000
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184085] [drm] nouveau 0000:01:00.0: DCB connector table: VHER 0x40 5 16 4
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184088] [drm] nouveau 0000:01:00.0:   1: 0x00000100: type 0x00 idx 1 tag 0xff
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184089] [drm] nouveau 0000:01:00.0:   2: 0x00002230: type 0x30 idx 2 tag 0x08
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184104] [drm] nouveau 0000:01:00.0: Adaptor not initialised, running VBIOS init tables.
Feb  2 22:18:03 krischan-N43SN kernel: [  107.184107] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 0 at offset 0xD56E
Feb  2 22:18:03 krischan-N43SN kernel: [  107.208147] [drm] nouveau 0000:01:00.0: 0xD518: i2c wr fail: -6
Feb  2 22:18:03 krischan-N43SN kernel: [  107.248346] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 1 at offset 0xDBBD
Feb  2 22:18:03 krischan-N43SN kernel: [  107.275203] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 2 at offset 0xEDC3
Feb  2 22:18:03 krischan-N43SN kernel: [  107.275209] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 3 at offset 0xEDC7
Feb  2 22:18:03 krischan-N43SN kernel: [  107.275263] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 4 at offset 0xEEAF
Feb  2 22:18:03 krischan-N43SN kernel: [  107.275265] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table at offset 0xEF14
Feb  2 22:18:03 krischan-N43SN kernel: [  107.313885] [drm] nouveau 0000:01:00.0: 3 available performance level(s)
Feb  2 22:18:03 krischan-N43SN kernel: [  107.313890] [drm] nouveau 0000:01:00.0: 0: memory 135MHz core 50MHz shader 101MHz voltage 830mV timing 0
Feb  2 22:18:03 krischan-N43SN kernel: [  107.313894] [drm] nouveau 0000:01:00.0: 1: memory 324MHz core 202MHz shader 405MHz voltage 830mV timing 1
Feb  2 22:18:03 krischan-N43SN kernel: [  107.313898] [drm] nouveau 0000:01:00.0: 3: memory 900MHz core 740MHz shader 1480MHz voltage 1080mV timing 2
Feb  2 22:18:03 krischan-N43SN kernel: [  107.313989] [TTM] Zone  kernel: Available graphics memory: 1982268 kiB.
Feb  2 22:18:03 krischan-N43SN kernel: [  107.313991] [TTM] Initializing pool allocator.
Feb  2 22:18:03 krischan-N43SN kernel: [  107.314014] [drm] nouveau 0000:01:00.0: Detected 512MiB VRAM
Feb  2 22:18:03 krischan-N43SN kernel: [  107.319184] [drm] nouveau 0000:01:00.0: 512 MiB GART (aperture)
Feb  2 22:18:03 krischan-N43SN kernel: [  107.319194] [drm] nouveau 0000:01:00.0: PGRAPH: unsupported chipset, please report!
Feb  2 22:18:03 krischan-N43SN kernel: [  107.328610] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
Feb  2 22:18:03 krischan-N43SN kernel: [  107.328614] [drm] No driver support for vblank timestamp query.
Feb  2 22:18:03 krischan-N43SN kernel: [  107.565867] [drm] nouveau 0000:01:00.0: allocated 1024x768 fb: 0x8020000, bo ffff880130df6000
Feb  2 22:18:03 krischan-N43SN kernel: [  107.565920] fb1: nouveaufb frame buffer device
Feb  2 22:18:03 krischan-N43SN kernel: [  107.565926] [drm] Initialized nouveau 0.0.16 20090420 for 0000:01:00.0 on minor 1
Feb  2 22:18:03 krischan-N43SN acpid: client connected from 1951[0:1001]
Feb  2 22:18:03 krischan-N43SN acpid: 1 client rule loaded
Feb  2 22:18:05 krischan-N43SN bumblebeed[1162]: [XORG] (EE) NOUVEAU(0): Error creating GPU channel: -19
Feb  2 22:18:05 krischan-N43SN bumblebeed[1162]: [XORG] (EE) NOUVEAU(0): Error initialising acceleration.  Falling back to NoAccel
Feb  2 22:18:05 krischan-N43SN kernel: [  109.721100] glxspheres[1955] trap invalid opcode ip:7f8cc2d346a5 sp:7fffd5621fb0 error:0 in swrast_dri.so[7f8cc2d2a000+d000]
Feb  2 22:18:06 krischan-N43SN kernel: [  110.013068] [TTM] Finalizing pool allocator.
Feb  2 22:18:06 krischan-N43SN kernel: [  110.013138] [TTM] Zone  kernel: Used memory at exit: 0 kiB.
Feb  2 22:18:06 krischan-N43SN kernel: [  110.034095] [drm] Module unloaded
Feb  2 22:18:06 krischan-N43SN kernel: [  110.035222] bbswitch: disabling discrete graphics
Feb  2 22:18:06 krischan-N43SN kernel: [  110.035385] bbswitch: Result of Optimus _DSM call: 01000059
Feb  2 22:18:06 krischan-N43SN kernel: [  110.035423] pci 0000:01:00.0: PCI INT A disabled
Feb  2 22:18:06 krischan-N43SN kernel: [  110.049179] pci 0000:01:00.0: Refused to change power state, currently in D0
Feb  2 22:18:06 krischan-N43SN kernel: [  110.137147] pci 0000:01:00.0: power state changed by ACPI to D3
Lekensteyn commented 12 years ago

After adding that PPA you must update your packages list with sudo apt-get update. Reboot after installing from xorg-edgers (it's a whole load of packages).

poVoq commented 12 years ago

Ahh sorry I though I had added that repository, but infact I was thinking about the one with the updated nvidia blobs.

Will report back what happens with the newer kernel.

joharei commented 12 years ago

Hm... still have the same compilation error. Here is the full output:


$ sudo packer -S bumblebee-git

Aur Targets    (1): bumblebee-git

Proceed with installation? [Y/n] 

Edit bumblebee-git PKGBUILD with $EDITOR? [Y/n] n
Edit bumblebee.install with $EDITOR? [Y/n] n
==> Determining latest git revision...
  -> Version found: 20120202
==> Making package: bumblebee-git 20120202-1 (Thu Feb  2 23:13:01 CET 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found bumblebeed.in
==> Validating source files with md5sums...
    bumblebeed.in ... Passed
==> Extracting Sources...
==> Starting build()...
==> Connecting to GIT server....
Cloning into 'Bumblebee'...
remote: Counting objects: 2137, done.
remote: Compressing objects: 100% (679/679), done.
remote: Total 2137 (delta 1483), reused 2083 (delta 1430)
Receiving objects: 100% (2137/2137), 376.10 KiB | 321 KiB/s, done.
Resolving deltas: 100% (1483/1483), done.
==> GIT checkout done or server timeout
configure.ac:77: installing `build-aux/compile'
configure.ac:62: installing `build-aux/install-sh'
configure.ac:62: installing `build-aux/missing'
Makefile.am: installing `build-aux/depcomp'
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for help2man... /usr/bin/help2man
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for x11... yes
checking for glib... yes
checking for libbsd... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
depbase=`echo src/module.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/module.o -MD -MP -MF $depbase.Tpo -c -o src/module.o src/module.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/bbconfig.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/bbconfig.o -MD -MP -MF $depbase.Tpo -c -o src/bbconfig.o src/bbconfig.c &&\
mv -f $depbase.Tpo $depbase.Po
src/bbconfig.c: In function ‘init_early_config’:
src/bbconfig.c:465:28: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/bbconfig.c: In function ‘init_config’:
src/bbconfig.c:484:22: warning: unused parameter ‘argc’ [-Wunused-parameter]
src/bbconfig.c:484:35: warning: unused parameter ‘argv’ [-Wunused-parameter]
depbase=`echo src/bblogger.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/bblogger.o -MD -MP -MF $depbase.Tpo -c -o src/bblogger.o src/bblogger.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/bbrun.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/bbrun.o -MD -MP -MF $depbase.Tpo -c -o src/bbrun.o src/bbrun.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/bbsocket.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/bbsocket.o -MD -MP -MF $depbase.Tpo -c -o src/bbsocket.o src/bbsocket.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/driver.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/driver.o -MD -MP -MF $depbase.Tpo -c -o src/driver.o src/driver.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/optirun.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/optirun.o -MD -MP -MF $depbase.Tpo -c -o src/optirun.o src/optirun.c &&\
mv -f $depbase.Tpo $depbase.Po
src/optirun.c: In function ‘main’:
src/optirun.c:264:13: warning: unused variable ‘bbcfg’ [-Wunused-variable]
depbase=`echo src/bbsocketclient.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.0\" -DPACKAGE_STRING=\"bumblebee\ 3.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.0\" -DWITH_PIDFILE=1 -I.  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"'  -Wall -Waggregate-return   -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT src/bbsocketclient.o -MD -MP -MF $depbase.Tpo -c -o src/bbsocketclient.o src/bbsocketclient.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -Wall -Waggregate-return    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls   -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe  -I/usr/include/libbsd   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wextra -funsigned-char -DGITVERSION='"3.0-17-g50b94bb"' -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2  -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o bin/optirun src/module.o src/bbconfig.o src/bblogger.o src/bbrun.o src/bbsocket.o src/driver.o src/optirun.o src/bbsocketclient.o -lglib-2.0   
/usr/bin/ld: src/bblogger.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [bin/optirun] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.
poVoq commented 12 years ago

Ok some progress with the newest kernel it seems... however 1st. this from the syslog:

Feb  2 23:09:04 krischan-N43SN bumblebeed[1175]: Module bbswitch could not be loaded (timeout?)
Feb  2 23:09:04 krischan-N43SN bumblebeed[1175]: No switching method available. The dedicated card will always be on.
Feb  2 23:09:04 krischan-N43SN kernel: [   21.699721] init: failsafe main process (850) killed by TERM signal
Feb  2 23:09:04 krischan-N43SN bumblebeed[1175]: /usr/sbin/bumblebeed 3.0 started

And if I start glxspheres on the sandy bridge intel card it is extremely slow (down from 60fps to 2fps) :(

However if I start with optirun it seems to work :)

optirun -vv glxspheres
[DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[DEBUG]Process /sbin/modinfo started, PID 2003.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Process /sbin/modinfo started, PID 2004.
[DEBUG]Hiding stderr for execution of /sbin/modinfo
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Detected nouveau driver
[DEBUG]Active configuration:
[DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[DEBUG] X display: :8
[DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-current:/usr/lib32/nvidia-current
[DEBUG] Socket path: /var/run/bumblebee.socket
[DEBUG] VGL Compression: proxy
[DEBUG]optirun version 3.0 starting...
[INFO]Response: Yes. X is active.

[INFO]Running application through vglrun.
[DEBUG]Process vglrun started, PID 2014.
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: Gallium 0.4 on NVC1
61.326736 frames/sec - 52.166975 Mpixels/sec
63.060615 frames/sec - 53.641881 Mpixels/sec
61.483392 frames/sec - 52.300232 Mpixels/sec
60.999789 frames/sec - 51.888861 Mpixels/sec
61.966980 frames/sec - 52.711592 Mpixels/sec
61.775128 frames/sec - 52.548395 Mpixels/sec
[DEBUG]SIGCHILD received, but wait failed with No child processes
[DEBUG]Socket closed.
[DEBUG]Killing all remaining processes.

However FPS seem a little low (or is it capped at screen refresh?) and the fan is now quite noisy and speeds up and down quite randomly :(

Lekensteyn commented 12 years ago

@joharei Weird... can you edit the LDFLAGS and add -lrt to it? It's not needed here though...

@poVoq bbswitch has not been built yet, install the required kernel headers:

sudo apt-get install linux-headers-$(uname -r)
joharei commented 12 years ago

All right, I got that working, so here is the output (note: it seems I got some reaction out of glxspheres since it's creating some output, but there was nothing graphical showing...):

$ optirun --debug glxspheres
[   85.040722] [DEBUG]Active configuration:
[   85.040761] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   85.040780] [DEBUG] X display: :8
[   85.040788] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee
[   85.040797] [DEBUG] Socket path: /var/run/bumblebee.socket
[   85.040805] [DEBUG] VGL Compression: proxy
[  275.150994] [INFO]Response: Yes. X is active.

[  275.151012] [INFO]Running application through vglrun.
[  275.151126] [DEBUG]Process vglrun started, PID 2061.
Polygons in scene: 62464
^C[  454.718695] [WARN]Received Interrupt signal.
[  454.718727] [DEBUG]Socket closed.
[  454.720509] [DEBUG]SIGCHILD received, but wait failed with No child processes
[  454.720533] [DEBUG]Socket closed.
[  454.720540] [DEBUG]Killing all remaining processes.
$ sudo bumblebeed -vv
Password: 
[   71.454107] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   71.467196] [DEBUG]Process /sbin/modinfo started, PID 2044.
[   71.467259] [DEBUG]Hiding stderr for execution of /sbin/modinfo
[   71.548549] [DEBUG]SIGCHILD received, but wait failed with No child processes
[   71.548607] [DEBUG]Detected nvidia driver (module nvidia)
[   71.548696] [DEBUG]bbswitch has been detected.
[   71.548729] [INFO]Switching method 'bbswitch' is available and will be used.
[   71.548756] [DEBUG]Active configuration:
[   71.548775] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   71.548801] [DEBUG] X display: :8
[   71.548820] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-bumblebee:/usr/lib32/nvidia-bumblebee
[   71.548842] [DEBUG] Socket path: /var/run/bumblebee.socket
[   71.548863] [DEBUG] pidfile: /var/run/bumblebeed.pid
[   71.548881] [DEBUG] xorg.conf file: /etc/bumblebee/xorg.conf.nvidia
[   71.548902] [DEBUG] ModulePath: /usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules
[   71.548924] [DEBUG] GID name: bumblebee
[   71.548945] [DEBUG] Power method: auto
[   71.548966] [DEBUG] Stop X on exit: 1
[   71.548986] [DEBUG] Driver: nvidia
[   71.549004] [DEBUG] Driver module: nvidia
[   71.549023] [DEBUG] Card shutdown state: 1
[   71.549199] [DEBUG]Process /sbin/modinfo started, PID 2045.
[   71.549257] [DEBUG]Hiding stderr for execution of /sbin/modinfo
[   71.626124] [DEBUG]SIGCHILD received, but wait failed with No child processes
[   71.626178] [DEBUG]Configuration test passed.
[   71.626550] [INFO]bumblebeed 3.0-17-g50b94bb started
[   71.626738] [DEBUG]Saving PCI configuration space...
[   71.626920] [INFO]Unloading nvidia driver
[   71.627077] [DEBUG]Process rmmod started, PID 2046.
[   71.657978] [DEBUG]Process with PID 2046 returned code 0
[   71.658284] [INFO]Switching dedicated card OFF [bbswitch]
[   71.830138] [INFO]Initialization completed - now handling client requests
[   84.940606] [DEBUG]Accepted new connection
[   85.140837] [INFO]Switching dedicated card ON [bbswitch]
[   85.477052] [DEBUG]Restoring PCI configuration space...
[   85.477195] [INFO]Loading driver nvidia (module nvidia)
[   85.477297] [DEBUG]Process modprobe started, PID 2055.
[   85.598045] [DEBUG]Process with PID 2055 returned code 0
[   85.598129] [INFO]Starting X server on display :8.
[   85.598228] [DEBUG]Process Xorg started, PID 2056.
[  275.040070] [DEBUG][XORG] X.Org X Server 1.11.4
[  275.040087] [DEBUG][XORG] Release Date: 2012-01-27
[  275.040091] [DEBUG][XORG] X Protocol Version 11, Revision 0
[  275.040094] [DEBUG][XORG] Build Operating System: Linux 3.2.2-1-ARCH x86_64 
[  275.040097] [DEBUG][XORG] Current Operating System: Linux johan-arch 3.2.2-1-ARCH #1 SMP PREEMPT Thu Jan 26 08:40:20 CET 2012 x86_64
[  275.040100] [DEBUG][XORG] Kernel command line: root=/dev/sda1 resume=/dev/sda2 ro i915.semaphores=1
[  275.040103] [DEBUG][XORG] Build Date: 29 January 2012  03:38:00PM
[  275.040107] [DEBUG][XORG] Current version of pixman: 0.24.2
[  275.040109] [DEBUG][XORG]    Before reporting problems, check http://wiki.x.org
[  275.040113] [DEBUG][XORG]    to make sure that you have the latest version.
[  275.040117] [DEBUG][XORG] Markers: (--) probed, (**) from config file, (==) default setting,
[  275.040120] [DEBUG][XORG]    (++) from command line, (!!) notice, (II) informational,
[  275.040123] [DEBUG][XORG]    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  275.040126] [DEBUG][XORG] (==) Log file: "/var/log/Xorg.8.log", Time: Fri Feb  3 00:29:18 2012
[  275.040129] [DEBUG][XORG] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[  275.040132] [DEBUG][XORG] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  275.040135] [DEBUG][XORG] (==) ServerLayout "Layout0"
[  275.040137] [DEBUG][XORG] (==) No screen section available. Using defaults.
[  275.040140] [DEBUG][XORG] (**) |-->Screen "Default Screen Section" (0)
[  275.040143] [DEBUG][XORG] (**) |   |-->Monitor "<default monitor>"
[  275.040145] [DEBUG][XORG] (==) No device specified for screen "Default Screen Section".
[  275.040148] [DEBUG][XORG]    Using the first device section listed.
[  275.040151] [DEBUG][XORG] (**) |   |-->Device "Device1"
[  275.040154] [DEBUG][XORG] (==) No monitor specified for screen "Default Screen Section".
[  275.040157] [DEBUG][XORG]    Using a default monitor configuration.
[  275.040160] [DEBUG][XORG] (**) Option "AutoAddDevices" "false"
[  275.040162] [DEBUG][XORG] (**) Not automatically adding devices
[  275.040165] [DEBUG][XORG] (==) Automatically enabling devices
[  275.040168] [DEBUG][XORG] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[  275.040171] [DEBUG][XORG]    Entry deleted from font path.
[  275.040175] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  275.040178] [DEBUG][XORG]    Entry deleted from font path.
[  275.040181] [DEBUG][XORG]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  275.040184] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  275.040187] [DEBUG][XORG]    Entry deleted from font path.
[  275.040190] [DEBUG][XORG]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  275.040193] [DEBUG][XORG] (==) FontPath set to:
[  275.040196] [DEBUG][XORG]    /usr/share/fonts/misc/,
[  275.040199] [DEBUG][XORG]    /usr/share/fonts/TTF/,
[  275.040202] [DEBUG][XORG]    /usr/share/fonts/Type1/
[  275.040205] [DEBUG][XORG] (++) ModulePath set to "/usr/lib/nvidia-bumblebee/xorg/,/usr/lib/xorg/modules"
[  275.040208] [DEBUG][XORG] (==) |-->Input Device "<default pointer>"
[  275.040211] [DEBUG][XORG] (==) |-->Input Device "<default keyboard>"
[  275.040214] [DEBUG][XORG] (==) The core pointer device wasn't specified explicitly in the layout.
[  275.040216] [DEBUG][XORG]    Using the default mouse configuration.
[  275.040219] [DEBUG][XORG] (==) The core keyboard device wasn't specified explicitly in the layout.
[  275.040222] [DEBUG][XORG]    Using the default keyboard configuration.
[  275.040225] [DEBUG][XORG] (II) Loader magic: 0x7ccae0
[  275.040228] [DEBUG][XORG] (II) Module ABI versions:
[  275.040230] [DEBUG][XORG]    X.Org ANSI C Emulation: 0.4
[  275.040233] [DEBUG][XORG]    X.Org Video Driver: 11.0
[  275.040236] [DEBUG][XORG]    X.Org XInput driver : 13.0
[  275.040239] [DEBUG][XORG]    X.Org Server Extension : 6.0
[  275.040242] [DEBUG][XORG] (--) PCI:*(0:1:0:0) 10de:0df4:1558:5140 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128
[  275.040246] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  275.040249] [DEBUG][XORG] (II) LoadModule: "extmod"
[  275.040251] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  275.040254] [DEBUG][XORG] (II) Module extmod: vendor="X.Org Foundation"
[  275.040256] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.0.0
[  275.040259] [DEBUG][XORG]    Module class: X.Org Server Extension
[  275.040262] [DEBUG][XORG]    ABI class: X.Org Server Extension, version 6.0
[  275.040266] [DEBUG][XORG] (II) Loading extension MIT-SCREEN-SAVER
[  275.040269] [DEBUG][XORG] (II) Loading extension XFree86-VidModeExtension
[  275.040271] [DEBUG][XORG] (II) Loading extension XFree86-DGA
[  275.040274] [DEBUG][XORG] (II) Loading extension DPMS
[  275.040276] [DEBUG][XORG] (II) Loading extension XVideo
[  275.040279] [DEBUG][XORG] (II) Loading extension XVideo-MotionCompensation
[  275.040282] [DEBUG][XORG] (II) Loading extension X-Resource
[  275.040284] [DEBUG][XORG] (II) LoadModule: "dbe"
[  275.040287] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  275.040290] [DEBUG][XORG] (II) Module dbe: vendor="X.Org Foundation"
[  275.040292] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.0.0
[  275.040295] [DEBUG][XORG]    Module class: X.Org Server Extension
[  275.040299] [DEBUG][XORG]    ABI class: X.Org Server Extension, version 6.0
[  275.040302] [DEBUG][XORG] (II) Loading extension DOUBLE-BUFFER
[  275.040304] [DEBUG][XORG] (II) LoadModule: "glx"
[  275.040307] [DEBUG][XORG] (II) Loading /usr/lib/nvidia-bumblebee/xorg/modules/extensions/libglx.so
[  275.040310] [DEBUG][XORG] (II) Module glx: vendor="NVIDIA Corporation"
[  275.040312] [DEBUG][XORG]    compiled for 4.0.2, module version = 1.0.0
[  275.040315] [DEBUG][XORG]    Module class: X.Org Server Extension
[  275.040318] [DEBUG][XORG] (II) NVIDIA GLX Module  290.10  Wed Nov 16 18:01:24 PST 2011
[  275.040321] [DEBUG][XORG] (II) Loading extension GLX
[  275.040324] [DEBUG][XORG] (II) LoadModule: "record"
[  275.040326] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  275.040329] [DEBUG][XORG] (II) Module record: vendor="X.Org Foundation"
[  275.040332] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.13.0
[  275.040335] [DEBUG][XORG]    Module class: X.Org Server Extension
[  275.040338] [DEBUG][XORG]    ABI class: X.Org Server Extension, version 6.0
[  275.040341] [DEBUG][XORG] (II) Loading extension RECORD
[  275.040344] [DEBUG][XORG] (II) LoadModule: "dri"
[  275.040348] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  275.040351] [DEBUG][XORG] (II) Module dri: vendor="X.Org Foundation"
[  275.040354] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.0.0
[  275.040377] [DEBUG][XORG]    ABI class: X.Org Server Extension, version 6.0
[  275.040381] [DEBUG][XORG] (II) Loading extension XFree86-DRI
[  275.040384] [DEBUG][XORG] (II) LoadModule: "dri2"
[  275.040387] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  275.040390] [DEBUG][XORG] (II) Module dri2: vendor="X.Org Foundation"
[  275.040393] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.2.0
[  275.040396] [DEBUG][XORG]    ABI class: X.Org Server Extension, version 6.0
[  275.040401] [DEBUG][XORG] (II) Loading extension DRI2
[  275.040403] [DEBUG][XORG] (II) LoadModule: "nvidia"
[  275.040406] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  275.040409] [DEBUG][XORG] (II) Module nvidia: vendor="NVIDIA Corporation"
[  275.040412] [DEBUG][XORG]    compiled for 4.0.2, module version = 1.0.0
[  275.040415] [DEBUG][XORG]    Module class: X.Org Video Driver
[  275.040418] [DEBUG][XORG] (II) LoadModule: "mouse"
[  275.040431] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[  275.040434] [DEBUG][XORG] (II) Module mouse: vendor="X.Org Foundation"
[  275.040437] [DEBUG][XORG]    compiled for 1.10.99.902, module version = 1.7.1
[  275.040440] [DEBUG][XORG]    Module class: X.Org XInput Driver
[  275.040443] [DEBUG][XORG]    ABI class: X.Org XInput driver, version 13.0
[  275.040446] [DEBUG][XORG] (II) LoadModule: "kbd"
[  275.040449] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[  275.040451] [DEBUG][XORG] (II) Module kbd: vendor="X.Org Foundation"
[  275.040454] [DEBUG][XORG]    compiled for 1.10.99.902, module version = 1.6.0
[  275.040457] [DEBUG][XORG]    Module class: X.Org XInput Driver
[  275.040460] [DEBUG][XORG]    ABI class: X.Org XInput driver, version 13.0
[  275.040463] [DEBUG][XORG] (II) NVIDIA dlloader X Driver  290.10  Wed Nov 16 17:41:10 PST 2011
[  275.040466] [DEBUG][XORG] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  275.040469] [DEBUG][XORG] (--) using VT number 7
[  275.040471] [DEBUG][XORG] (II) Loading sub module "fb"
[  275.040474] [DEBUG][XORG] (II) LoadModule: "fb"
[  275.040476] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libfb.so
[  275.040479] [DEBUG][XORG] (II) Module fb: vendor="X.Org Foundation"
[  275.040481] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.0.0
[  275.040484] [DEBUG][XORG]    ABI class: X.Org ANSI C Emulation, version 0.4
[  275.040487] [DEBUG][XORG] (II) Loading sub module "wfb"
[  275.040490] [DEBUG][XORG] (II) LoadModule: "wfb"
[  275.040492] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  275.040495] [DEBUG][XORG] (II) Module wfb: vendor="X.Org Foundation"
[  275.040497] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.0.0
[  275.040501] [DEBUG][XORG]    ABI class: X.Org ANSI C Emulation, version 0.4
[  275.040504] [DEBUG][XORG] (II) Loading sub module "ramdac"
[  275.040506] [DEBUG][XORG] (II) LoadModule: "ramdac"
[  275.040509] [DEBUG][XORG] (II) Module "ramdac" already built-in
[  275.040511] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  275.040514] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  275.040517] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/libfb.so
[  275.040519] [DEBUG][XORG] (II) NVIDIA(0): Creating default Display subsection in Screen section
[  275.040522] [DEBUG][XORG]    "Default Screen Section" for depth/fbbpp 24/32
[  275.040525] [DEBUG][XORG] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  275.040527] [DEBUG][XORG] (==) NVIDIA(0): RGB weight 888
[  275.040530] [DEBUG][XORG] (==) NVIDIA(0): Default visual is TrueColor
[  275.040533] [DEBUG][XORG] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  275.040535] [DEBUG][XORG] (**) NVIDIA(0): Option "NoLogo" "true"
[  275.040538] [DEBUG][XORG] (**) NVIDIA(0): Option "UseEDID" "false"
[  275.040540] [DEBUG][XORG] (**) NVIDIA(0): Option "ConnectedMonitor" "DFP"
[  275.040543] [DEBUG][XORG] (**) NVIDIA(0): ConnectedMonitor string: "DFP"
[  275.040546] [DEBUG][XORG] (**) NVIDIA(0): Ignoring EDIDs
[  275.040548] [DEBUG][XORG] (**) NVIDIA(0): Enabling 2D acceleration
[  275.040650] [WARN][XORG] (WW) NVIDIA(GPU-0): Invalid ConnectedMonitor request; request was for 'DFP-0', but
[  275.040660] [ERROR]You need to change the ConnectedMonitor setting in /etc/bumblebee/xorg.conf.nvidia to CRT-0
[  275.040664] [WARN][XORG] (WW) NVIDIA(GPU-0):     the valid display devices are 'CRT-0'.
[  275.040669] [DEBUG][XORG] (II) NVIDIA(GPU-0): Not probing EDID on CRT-0.
[  275.040673] [DEBUG][XORG] (II) NVIDIA(0): NVIDIA GPU GeForce GT 540M (GF108) at PCI:1:0:0 (GPU-0)
[  275.040676] [DEBUG][XORG] (--) NVIDIA(0): Memory: 1048576 kBytes
[  275.040679] [DEBUG][XORG] (--) NVIDIA(0): VideoBIOS: 70.08.45.00.17
[  275.040683] [DEBUG][XORG] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[  275.040696] [DEBUG][XORG] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[  275.040699] [DEBUG][XORG] (--) NVIDIA(0): Connected display device(s) on GeForce GT 540M at PCI:1:0:0
[  275.040702] [DEBUG][XORG] (--) NVIDIA(0):     CRT-0
[  275.040705] [DEBUG][XORG] (--) NVIDIA(0): CRT-0: 400.0 MHz maximum pixel clock
[  275.040708] [DEBUG][XORG] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID has been
[  275.040712] [DEBUG][XORG] (**) NVIDIA(0):     enabled on all display devices.
[  275.040714] [DEBUG][XORG] (II) NVIDIA(0): Assigned Display Device: CRT-0
[  275.040717] [DEBUG][XORG] (==) NVIDIA(0): 
[  275.040719] [DEBUG][XORG] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[  275.040722] [DEBUG][XORG] (==) NVIDIA(0):     will be used as the requested mode.
[  275.040725] [DEBUG][XORG] (==) NVIDIA(0): 
[  275.040727] [DEBUG][XORG] (II) NVIDIA(0): Validated modes:
[  275.040730] [DEBUG][XORG] (II) NVIDIA(0):     "nvidia-auto-select"
[  275.040733] [DEBUG][XORG] (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
[  275.040737] [DEBUG][XORG] (WW) NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
[  275.040740] [DEBUG][XORG] (WW) NVIDIA(0):     from CRT-0's EDID.
[  275.040742] [DEBUG][XORG] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[  275.040745] [DEBUG][XORG] (--) Depth 24 pixmap format is 32 bpp
[  275.040748] [DEBUG][XORG] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[  275.040750] [DEBUG][XORG] (II) NVIDIA:     access.
[  275.040753] [DEBUG][XORG] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[  275.040756] [DEBUG][XORG] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[  275.040759] [DEBUG][XORG] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[  275.040762] [DEBUG][XORG] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[  275.040764] [DEBUG][XORG] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[  275.040767] [DEBUG][XORG] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[  275.040769] [DEBUG][XORG] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[  275.040772] [DEBUG][XORG] (II) NVIDIA(0):     Config Options in the README.
[  275.040775] [DEBUG][XORG] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
[  275.040777] [DEBUG][XORG] (II) Loading extension NV-GLX
[  275.040780] [DEBUG][XORG] (==) NVIDIA(0): Disabling shared memory pixmaps
[  275.040783] [DEBUG][XORG] (==) NVIDIA(0): Backing store disabled
[  275.040785] [DEBUG][XORG] (==) NVIDIA(0): Silken mouse enabled
[  275.040788] [DEBUG][XORG] (==) NVIDIA(0): DPMS enabled
[  275.040791] [DEBUG][XORG] (II) Loading extension NV-CONTROL
[  275.040793] [WARN][XORG] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "DFP", but no
[  275.040796] [WARN][XORG] (WW) NVIDIA(0):     such display device could be found, or all display devices
[  275.040799] [WARN][XORG] (WW) NVIDIA(0):     by that name are currently unavailable.
[  275.040802] [WARN][XORG] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "TV", but no such
[  275.040806] [WARN][XORG] (WW) NVIDIA(0):     display device could be found, or all display devices by
[  275.040808] [WARN][XORG] (WW) NVIDIA(0):     that name are currently unavailable.
[  275.040811] [DEBUG][XORG] (II) Loading extension XINERAMA
[  275.040814] [DEBUG][XORG] (II) Loading sub module "dri2"
[  275.040816] [DEBUG][XORG] (II) LoadModule: "dri2"
[  275.040819] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  275.040822] [DEBUG][XORG] (II) Module dri2: vendor="X.Org Foundation"
[  275.040824] [DEBUG][XORG]    compiled for 1.11.4, module version = 1.2.0
[  275.040827] [DEBUG][XORG]    ABI class: X.Org Server Extension, version 6.0
[  275.040830] [DEBUG][XORG] (II) NVIDIA(0): [DRI2] Setup complete
[  275.040833] [DEBUG][XORG] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[  275.040836] [DEBUG][XORG] (==) RandR enabled
[  275.040839] [DEBUG][XORG] (II) Initializing built-in extension Generic Event Extension
[  275.040841] [DEBUG][XORG] (II) Initializing built-in extension SHAPE
[  275.040844] [DEBUG][XORG] (II) Initializing built-in extension MIT-SHM
[  275.040846] [DEBUG][XORG] (II) Initializing built-in extension XInputExtension
[  275.040849] [DEBUG][XORG] (II) Initializing built-in extension XTEST
[  275.040851] [DEBUG][XORG] (II) Initializing built-in extension BIG-REQUESTS
[  275.040854] [DEBUG][XORG] (II) Initializing built-in extension SYNC
[  275.040857] [DEBUG][XORG] (II) Initializing built-in extension XKEYBOARD
[  275.040859] [DEBUG][XORG] (II) Initializing built-in extension XC-MISC
[  275.040862] [DEBUG][XORG] (II) Initializing built-in extension SECURITY
[  275.040865] [DEBUG][XORG] (II) Initializing built-in extension XINERAMA
[  275.040867] [DEBUG][XORG] (II) Initializing built-in extension XFIXES
[  275.040870] [DEBUG][XORG] (II) Initializing built-in extension RENDER
[  275.040872] [DEBUG][XORG] (II) Initializing built-in extension RANDR
[  275.040875] [DEBUG][XORG] (II) Initializing built-in extension COMPOSITE
[  275.040877] [DEBUG][XORG] (II) Initializing built-in extension DAMAGE
[  275.040880] [DEBUG][XORG] (II) Initializing extension GLX
[  275.040882] [DEBUG][XORG] (II) Using input driver 'mouse' for '<default pointer>'
[  275.040885] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[  275.040888] [DEBUG][XORG] (**) Option "CorePointer"
[  275.040890] [DEBUG][XORG] (**) <default pointer>: always reports core events
[  275.040893] [DEBUG][XORG] (WW) <default pointer>: No Device specified, looking for one...
[  275.040896] [DEBUG][XORG] (II) <default pointer>: Setting Device option to "/dev/input/mice"
[  275.040899] [DEBUG][XORG] (--) <default pointer>: Device: "/dev/input/mice"
[  275.040901] [DEBUG][XORG] (==) <default pointer>: Protocol: "Auto"
[  275.040904] [DEBUG][XORG] (**) <default pointer>: always reports core events
[  275.040907] [DEBUG][XORG] (**) Option "Device" "/dev/input/mice"
[  275.040909] [DEBUG][XORG] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
[  275.040917] [DEBUG][XORG] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
[  275.040920] [DEBUG][XORG] (**) <default pointer>: Buttons: 9
[  275.040923] [DEBUG][XORG] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
[  275.040926] [DEBUG][XORG] (**) <default pointer>: (accel) keeping acceleration scheme 1
[  275.040928] [DEBUG][XORG] (**) <default pointer>: (accel) acceleration profile 0
[  275.040931] [DEBUG][XORG] (**) <default pointer>: (accel) acceleration factor: 2.000
[  275.040934] [DEBUG][XORG] (**) <default pointer>: (accel) acceleration threshold: 4
[  275.040936] [DEBUG][XORG] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
[  275.040939] [DEBUG][XORG] (II) <default pointer>: ps2EnableDataReporting: succeeded
[  275.040942] [DEBUG][XORG] (II) Using input driver 'kbd' for '<default keyboard>'
[  275.040944] [DEBUG][XORG] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[  275.040947] [DEBUG][XORG] (**) Option "CoreKeyboard"
[  275.040950] [DEBUG][XORG] (**) <default keyboard>: always reports core events
[  275.050768] [DEBUG][XORG] (**) <default keyboard>: always reports core events
[  275.050775] [DEBUG][XORG] (**) Option "Protocol" "standard"
[  275.050778] [DEBUG][XORG] (**) Option "XkbRules" "base"
[  275.050782] [DEBUG][XORG] (**) Option "XkbModel" "pc105"
[  275.050785] [DEBUG][XORG] (**) Option "XkbLayout" "us"
[  275.050788] [DEBUG][XORG] (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
[  275.050791] [DEBUG][XORG] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[  275.050797] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050800] [DEBUG][XORG] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[  275.050804] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050807] [DEBUG][XORG] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[  275.050810] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050813] [DEBUG][XORG] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[  275.050816] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050820] [DEBUG][XORG] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
[  275.050823] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050827] [DEBUG][XORG] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[  275.050830] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050832] [DEBUG][XORG] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event9)
[  275.050835] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050838] [DEBUG][XORG] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event10)
[  275.050841] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050844] [DEBUG][XORG] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event11)
[  275.050847] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050850] [DEBUG][XORG] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event12)
[  275.050853] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050856] [DEBUG][XORG] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[  275.050858] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050861] [DEBUG][XORG] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
[  275.050864] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050868] [DEBUG][XORG] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[  275.050871] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.050873] [DEBUG][XORG] (II) config/udev: Adding input device PC Speaker (/dev/input/event7)
[  275.050876] [DEBUG][XORG] (II) AutoAddDevices is off - not adding device.
[  275.150945] [ERROR]X unresponsive after 10 seconds - aborting
[  275.351632] [DEBUG][XORG] (II) UnloadModule: "mouse"
[  275.351655] [DEBUG][XORG] (II) Unloading mouse
[  275.351658] [DEBUG][XORG] (II) UnloadModule: "kbd"
[  275.351661] [DEBUG][XORG] (II) Unloading kbd
[  275.358414] [DEBUG]Process with PID 2056 returned code 0
[  275.358433] [DEBUG][XORG] Server terminated successfully (0). Closing log file.
[  454.807819] [DEBUG]Socket closed.
[  454.908059] [DEBUG]Saving PCI configuration space...
[  454.908186] [INFO]Unloading nvidia driver
[  454.908340] [DEBUG]Process rmmod started, PID 2225.
[  454.938149] [DEBUG]Process with PID 2225 returned code 0
[  454.938432] [INFO]Switching dedicated card OFF [bbswitch]
Lekensteyn commented 12 years ago

Could "Open ACPI failed (/var/run/acpid.socket) (No such file or directory)" have something to do with this?

joharei commented 12 years ago

Perhaps. I thought I had acpid running, but it seems I did not. Well, that warning vanished, but the rest is still the same:

http://pastebin.com/X33jWFBP http://pastebin.com/ydhAhuWu

Lekensteyn commented 12 years ago

Where did the delay came from :s

[   85.598129] [INFO]Starting X server on display :8.
[   85.598228] [DEBUG]Process Xorg started, PID 2056.
[  275.040070] [DEBUG][XORG] X.Org X Server 1.11.4

[   64.451801] [DEBUG]Process Xorg started, PID 2216.
[  253.920074] [DEBUG][XORG] X.Org X Server 1.11.4

Can you try the nouveau driver?

joharei commented 12 years ago

If I don't cancel the process, that is how long it takes before something happens :p Will try the nouveau driver now.

Lekensteyn commented 12 years ago

Which process? X or something else?

joharei commented 12 years ago

I just mean the optirun glxspheres command ;) Tried the nouveau driver, but it's the same delay and nothing's showing up. Now I just let optirun glxspheres run until it stopped itself:

http://pastebin.com/pr9Q8nFb http://pastebin.com/iLNxTumf

poVoq commented 12 years ago

Ok, installing the headers seems to have fixed the bbswitch problem, and optimus is working with the nouveau driver. However reinstalling nvidia-current and bumblebee-nvidia leaves me again at the exact same problem as before.

derkling commented 12 years ago

Hi all!

I've had this same problem and I would report my experience in the hope could give some clue to the developers.

My sysmte is an Ubuntu 11.10, with this system packages: http://pastebin.com/KGE2x7Fz

The symptoms were the same, basically:

  1. the card w switched on (at leas I could hear fans running)
  2. bumblebeed reported: "bumblebeed[1136]: X unresponsive after 10 seconds - aborting" on syslog and the "optirun glxgears" command was terminated.

Fortunately, a collegue of mine has the same Laptop: Dell XPS 15z - Core i7-2620M, GeForce GT525M 2GB with also the same software configuration, but with a working optirun configurtion.

Thus, I've checked the syslog entries when starting optirun, and I was able to notice really few differences, just on the two entries corresponding on the restoring of the PCI configuration. On my laptop (not working) I could read: pci 0000:01:00.0: restoring config space at offset 0x3 (was 0x800010, writing 0x10) pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100003) while in the working laptop they was: pci 0000:01:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x800000) pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100007)

All other thinks was the same... expect that my optirun aborted. Thus the idea: could it be a problem on PCI (re)configuration?

This thesis, perhaps, could be supported by the fact that I experienced some suspend/hibernation problems before the optirun problem appared, I had to forcely shout-down the machine by using the power-button. Than this problem...

Ok, the good news is that after a pair od days and many reboots, now optirun is still working. I've really not done anything, execpt than starting few times the bumblebeed dameon by hand in order to enable the verbose (-vv) logging. Now it works, and the two syslogs reads the same, i.e. the two "restoring config space" syslog entries read the same!

Thus again, could it be just a problem related to the saving/restoring of a working PCI configuraiton? Perhaps, could be expect a way to "define" a working off/on configuration and than saving/restoring alwasy that. Of course these are just free-mind reasoning, I'm pretty aware that thinks could be much more complex than what I'm describing there... anyway, that's just to throw some more experience/considerations on the table.

Regards, Patrick

Lekensteyn commented 12 years ago

@derkling You can try comparing the output of xxd -c4 /sys/bus/pci/devices/0000:01:00.0/config on both machines just after a reboot (without running optirun/trying to load drivers). They should be the same. If not, please post the outputs here. I've noticed that issues related to ACPI are often resolved after two reboots or pulling the cables and batteries off and leaving it unpowered for a minute.

derkling commented 12 years ago

These are the today news. On my system optirun sometimes works others not... even without rebooting the machine. The dump @Lekensteyn required is this, right after a reboot (on both machine):

derkling@graystar:~$ xxd -c4 /sys/bus/pci/devices/0000:01:00.0/config
0000000: ffff ffff  ....
0000004: ffff ffff  ....
0000008: ffff ffff  ....
000000c: ffff ffff  ....
0000010: ffff ffff  ....
0000014: ffff ffff  ....
0000018: ffff ffff  ....
000001c: ffff ffff  ....
0000020: ffff ffff  ....
0000024: ffff ffff  ....
0000028: ffff ffff  ....
000002c: ffff ffff  ....
0000030: ffff ffff  ....
0000034: ffff ffff  ....
0000038: ffff ffff  ....
000003c: ffff ffff  ....

When I'm able to run a program using optirun (in this case it was the X-Plane flight simulator, which is 32bit compiled, while I'm running on a 64bit OS), the same dump returns these values:

derkling@graystar:XPlane10Demo$ xxd -c4 /sys/bus/pci/devices/0000:01:00.0/config
0000000: de10 f50d  ....
0000004: 0700 1000  ....
0000008: a100 0003  ....
000000c: 0000 8000  ....
0000010: 0000 00f0  ....
0000014: 0c00 00c0  ....
0000018: 0000 0000  ....
000001c: 0c00 00d0  ....
0000020: 0000 0000  ....
0000024: 0130 0000  .0..
0000028: 0000 0000  ....
000002c: 2810 4604  (.F.
0000030: 0000 0000  ....
0000034: 6000 0000  `...
0000038: 0000 0000  ....
000003c: 0b01 0000  ....

Hope this could help. Please note that I could not leave my notebook unpowered for a while, since the battery is embedded (i.e. not removable).

poVoq commented 12 years ago

So this is now a known (and understood?) bug and will be fixed in the development version soon?

Just asking because otherwise I might revert back to Ironhide... even though I would much rather use an in development software.

Anyways, keep up the great work on Bumblebee!

Lekensteyn commented 12 years ago

Can you recompile and disable the PCI configuration space load/save stuff? apt-get source bumblebee, cd bumblebee-3.0, edit src/bbsecondary.c and:

Use sudo apt-get build-dep bumblebee to install build dependencies and build the package with dpkg-buildpackage -uc -us -b. Then sudo dpkg -i ../bumblebee_*.deb to install the new bumblebee version. A reboot might be necessary.

derkling commented 12 years ago

I've followed your directions, unfortunately still no progress. Thereafter the syslog and the PIC configuration dump.

This is the patch I've applied on the source tree obtained via "apt-get source", I show you since the codelines modified does not match exactly the ones indicated by you... maybe you referred some other branch?

The behaviors is always the same, sometimes optirun works, others not.

Feb 12 19:29:09 graystar kernel: [  222.380965] bbswitch: enabling discrete graphics
Feb 12 19:29:09 graystar kernel: [  222.769195] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 12 19:29:09 graystar kernel: [  222.769202] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 12 19:29:09 graystar kernel: [  222.769225] pci 0000:01:00.0: restoring config space at offset 0x3 (was 0x800010, writing 0x10)
Feb 12 19:29:09 graystar kernel: [  222.769228] pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100003)
Feb 12 19:29:09 graystar kernel: [  222.769240] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 12 19:29:09 graystar kernel: [  222.769242] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 12 19:29:09 graystar kernel: [  222.769249] pci 0000:01:00.0: found PCI INT A -> IRQ 11
Feb 12 19:29:09 graystar kernel: [  222.769257] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:1a.0
Feb 12 19:29:09 graystar kernel: [  222.769261] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.0
Feb 12 19:29:09 graystar kernel: [  222.769269] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.4
Feb 12 19:29:09 graystar kernel: [  222.769375] pci 0000:01:00.0: setting latency timer to 64
Feb 12 19:29:09 graystar kernel: [  223.114084] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb 12 19:29:09 graystar kernel: [  223.114088] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb 12 19:29:09 graystar kernel: [  223.114095] nvidia 0000:01:00.0: found PCI INT A -> IRQ 11
Feb 12 19:29:09 graystar kernel: [  223.114103] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:1a.0
Feb 12 19:29:09 graystar kernel: [  223.114108] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.0
Feb 12 19:29:09 graystar kernel: [  223.114114] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.4
Feb 12 19:29:09 graystar kernel: [  223.114219] nvidia 0000:01:00.0: setting latency timer to 64
Feb 12 19:29:09 graystar kernel: [  223.114223] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
Feb 12 19:29:09 graystar kernel: [  223.114327] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  280.13  Wed Jul 27 16:53:56 PDT 2011
Feb 12 19:29:09 graystar acpid: client connected from 2613[0:1001]
Feb 12 19:29:09 graystar acpid: 1 client rule loaded
Feb 12 19:29:17 graystar acpid: client connected from 2613[0:1001]
Feb 12 19:29:17 graystar acpid: 1 client rule loaded
Feb 12 19:29:42 graystar kernel: [  255.438565] spurious 8259A interrupt: IRQ7.
Feb 12 19:32:19 graystar bumblebeed[1257]: X unresponsive after 10 seconds - aborting
Feb 12 19:32:19 graystar bumblebeed[1257]: Could not write data! Error: Broken pipe
Feb 12 19:32:19 graystar kernel: [  412.253887] bbswitch: disabling discrete graphics
Feb 12 19:32:19 graystar kernel: [  412.254141] bbswitch: Result of Optimus _DSM call: 11000059
Feb 12 19:32:19 graystar kernel: [  412.267750] pci_raw_set_power_state: 4 callbacks suppressed
Feb 12 19:32:19 graystar kernel: [  412.267755] pci 0000:01:00.0: Refused to change power state, currently in D0
Feb 12 19:32:19 graystar kernel: [  412.567259] pci 0000:01:00.0: power state changed by ACPI to D3
derkling@graystar:~$ xxd -c4 /sys/bus/pci/devices/0000:01:00.0/config
0000000: ffff ffff  ....
0000004: ffff ffff  ....
0000008: ffff ffff  ....
000000c: ffff ffff  ....
0000010: ffff ffff  ....
0000014: ffff ffff  ....
0000018: ffff ffff  ....
000001c: ffff ffff  ....
0000020: ffff ffff  ....
0000024: ffff ffff  ....
0000028: ffff ffff  ....
000002c: ffff ffff  ....
0000030: ffff ffff  ....
0000034: ffff ffff  ....
0000038: ffff ffff  ....
000003c: ffff ffff  ....
joharei commented 12 years ago

Hi! I thought I should report that after I updated today, this issue is gone on my computer. Everything works as expected! I don't know what did it, but thanks anyway :-)

derkling commented 12 years ago

Sorry @joharei, what update are you referring to? I'm with linux 3.2 and Bumblebee 3.0... and BB sometimes works others no!... it's really a pain: every time I would like to use the GPU I have to cross my fingers... :-/

joharei commented 12 years ago

I built bumblebee and bbswitch from git (I run arch linux, so I use the aur packages; always did that actually) at 15. feb, and suddenly everything worked. I'm also running linux 3.2 btw. Sorry I can't help more than this, but I don't understand much of what's going on here :-)

Samsagax commented 12 years ago

@derkling: maybe purging bbswitch and bumblebee packages and reinstalling them again may solve your issue?

poVoq commented 12 years ago

Sorry to say, but the latest xorg stuff made my system so unstable that I reinstalled and reverted back to ironhide. Everything working like a charm again with it as expected. Still looking forward to try Bumblebee 4.0 at some point ;)

Samsagax commented 12 years ago

Shall we close this issue then? Is anyone getting this strange behavior?

poVoq commented 12 years ago

Why? The issue sadly isn't solved at all... and judging by my web-searches prior to starting this post it isn't uncommon at all.

derkling commented 12 years ago

I'm still with the problem. I've tried the actions suggested by @Samsagax, by pruning both bumblebee and bbswitch and re-installing them. I've tried both GIT version of Bumblebee as well as the one provided by ppa:bumblebee/stable, I've tried with official Ubuntu 11.10 kernel (3.0) as well as 3.2.5 and 3.2.7... still the problem is there.

Perhaps it is also going worst: now I'm really not more able to start any application on the external GPU. I'm with a standard Ubuntu 11.10 kernel (3.0.0-16-generic) and the PPA provided Bumblebee... now this is the log:

Feb 26 17:26:30 graystar kernel: [   77.880554] bbswitch: enabling discrete graphics
Feb 26 17:26:30 graystar bumblebeed[1146]: The PCI config space could not be written fully at offset 0x3; 0 bytes have been written; error: Resource temporarily unavailable
Feb 26 17:26:30 graystar kernel: [   78.269695] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 26 17:26:30 graystar kernel: [   78.269702] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 26 17:26:30 graystar kernel: [   78.269727] pci 0000:01:00.0: restoring config space at offset 0x3 (was 0x800010, writing 0x10)
Feb 26 17:26:30 graystar kernel: [   78.269731] pci 0000:01:00.0: restoring config space at offset 0x1 (was 0x100006, writing 0x100003)
Feb 26 17:26:30 graystar kernel: [   78.269744] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 26 17:26:30 graystar kernel: [   78.269747] pci 0000:01:00.0: power state changed by ACPI to D0
Feb 26 17:26:30 graystar kernel: [   78.269755] pci 0000:01:00.0: found PCI INT A -> IRQ 11
Feb 26 17:26:30 graystar kernel: [   78.269763] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:16.0
Feb 26 17:26:30 graystar kernel: [   78.269767] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:1a.0
Feb 26 17:26:30 graystar kernel: [   78.269772] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.0
Feb 26 17:26:30 graystar kernel: [   78.269780] pci 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.4
Feb 26 17:26:30 graystar kernel: [   78.269887] pci 0000:01:00.0: setting latency timer to 64
Feb 26 17:26:30 graystar kernel: [   78.316422] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb 26 17:26:30 graystar kernel: [   78.316426] nvidia 0000:01:00.0: power state changed by ACPI to D0
Feb 26 17:26:30 graystar kernel: [   78.316434] nvidia 0000:01:00.0: found PCI INT A -> IRQ 11
Feb 26 17:26:30 graystar kernel: [   78.316440] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:16.0
Feb 26 17:26:30 graystar kernel: [   78.316443] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:1a.0
Feb 26 17:26:30 graystar kernel: [   78.316446] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.0
Feb 26 17:26:30 graystar kernel: [   78.316452] nvidia 0000:01:00.0: sharing IRQ 11 with 0000:00:1c.4
Feb 26 17:26:30 graystar kernel: [   78.316558] nvidia 0000:01:00.0: setting latency timer to 64
Feb 26 17:26:30 graystar kernel: [   78.316562] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
Feb 26 17:26:30 graystar kernel: [   78.316645] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  295.20  Mon Feb  6 21:07:30 PST 2012
Feb 26 17:26:30 graystar acpid: client connected from 2179[0:1001]
Feb 26 17:26:30 graystar acpid: 1 client rule loaded
Feb 26 17:26:39 graystar acpid: client connected from 2179[0:1001]
Feb 26 17:26:39 graystar acpid: 1 client rule loaded
Feb 26 17:27:44 graystar kernel: [  151.781251] iwlagn 0000:03:00.0: receive reply tx with bt_kill
Feb 26 17:28:57 graystar kernel: [  224.272850] iwlagn 0000:03:00.0: receive reply tx with bt_kill
Feb 26 17:35:59 graystar bumblebeed[1146]: X unresponsive after 10 seconds - aborting
Feb 26 17:35:59 graystar bumblebeed[1146]: Could not write data! Error: Broken pipe
Feb 26 17:35:59 graystar kernel: [  646.008255] bbswitch: disabling discrete graphics
Feb 26 17:35:59 graystar kernel: [  646.008869] bbswitch: Result of Optimus _DSM call: 11000059
Feb 26 17:35:59 graystar kernel: [  646.023062] pci_raw_set_power_state: 4 callbacks suppressed
Feb 26 17:35:59 graystar kernel: [  646.023073] pci 0000:01:00.0: Refused to change power state, currently in D0
Feb 26 17:35:59 graystar kernel: [  646.322786] pci 0000:01:00.0: power state changed by ACPI to D3