Skip to content

Instantly share code, notes, and snippets.

@bpostlethwaite
Created August 7, 2014 00:54
Show Gist options
  • Save bpostlethwaite/39a3f4325b0b16f7158c to your computer and use it in GitHub Desktop.
Save bpostlethwaite/39a3f4325b0b16f7158c to your computer and use it in GitHub Desktop.
nvidia optimus conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:PCI address determined earlier"
# e.g. BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
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