Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cpburnz/21694595b6dfffebf964 to your computer and use it in GitHub Desktop.
Save cpburnz/21694595b6dfffebf964 to your computer and use it in GitHub Desktop.
NVIDIA GeForce GTX 960M with Optimus on Arch Linux
#/etc/bumblebee/bumblebee.conf
[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d
[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false
[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
#/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"
BusID "PCI:1:0:0"
Option "ProbeAllGpus" "false"
Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection
#/etc/X11/xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Inactive "nvidia"
EndSection
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0:2:0"
Option "AccelMethod" "sna"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "Yes"
EndSection

Packages

  • bumblebee 3.2.1-10 (provides nvidia-libgl)
  • mesa 11.0.4-1
  • mesa-libgl 11.0.4-1
  • nvidia 355.11-4 (Nvidia driver)
  • primus 20150118-2 (Bumblebee bridge)
  • xf86-video-intel 1:2.99.917+478+gdf72bc5-2 (Intel driver)
  • xorg-server 1.17.3-1 (xorg)
  • xorg-xrandr 1.4.3-1
@camilosampedro
Copy link

camilosampedro commented Jun 21, 2017

After doing this, the fans just go crazy starting X.

Everything works smoothly, but the fans starts screaming like if they were an air-plane.

Do you know how to solve it?

One thing I did not see is the Bumblebeed status:

● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2017-06-21 10:01:43 -05; 4min 6s ago
 Main PID: 419 (bumblebeed)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bumblebeed.service
           └─419 /usr/bin/bumblebeed

jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351298] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351301] [WARN][XORG] (WW) Warning, couldn't open module mouse
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351307] [ERROR][XORG] (EE) No devices detected.
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351309] [ERROR][XORG] (EE)
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351311] [ERROR][XORG] (EE) no screens found(EE)
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351313] [ERROR][XORG] (EE)
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351315] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351317] [ERROR][XORG] (EE)
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.351318] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
jun 21 10:05:27 rog-csampedro bumblebeed[419]: [  240.370313] [ERROR]X did not start properly

@iturdikulov
Copy link

@camilosampedro -> no screens found. I think you need configure xorg, screen sections.

@EnricoVerzegnassi
Copy link

@camilosampedro I have the same problem, did you manage to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment