aspire@aspire-V3-571G ~ $ sudo service bumblebeed restart
[sudo] password for aspire:
bumblebeed stop/waiting
bumblebeed start/running, process 8406
aspire@aspire-V3-571G ~ $ optirun -vvv glxgears
[ 115.062883] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 115.063074] [INFO]Configured driver: nvidia
[ 115.063189] [DEBUG]optirun version 3.2.1 starting...
[ 115.063197] [DEBUG]Active configuration:
[ 115.063199] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 115.063202] [DEBUG] X display: :8
[ 115.063204] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-340:/usr/lib32/nvidia-340
[ 115.063206] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 115.063207] [DEBUG] Accel/display bridge: auto
[ 115.063209] [DEBUG] VGL Compression: proxy
[ 115.063211] [DEBUG] VGLrun extra options:
[ 115.063213] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 115.063263] [DEBUG]Using auto-detected bridge virtualgl
[ 119.468251] [INFO]Response: No - error: [XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[ 119.468268] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) intel(0): [drm] failed to set drm interface version: Permission denied [13].
[ 119.468271] [DEBUG]Socket closed.
[ 119.468296] [ERROR]Aborting because fallback start is disabled.
[ 119.468300] [DEBUG]Killing all remaining processes.
aspire@aspire-V3-571G ~ $ cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
BusID "PCI:01:00:0"
# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection