Skip to content

Instantly share code, notes, and snippets.

Created May 14, 2016 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f0c210c8483e75c9a3a4848660e88fab to your computer and use it in GitHub Desktop.
Save anonymous/f0c210c8483e75c9a3a4848660e88fab to your computer and use it in GitHub Desktop.
/etc/X11/xorg.conf.d/10-gpu.conf
# Discrete Card as Primary GPU
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:2:0:0" # Sample: "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0:2:0" # Sample: "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment