Skip to content

Instantly share code, notes, and snippets.

@PhDP
Created January 30, 2015 19:12
Show Gist options
  • Save PhDP/5ff4bed8c15f6be728a3 to your computer and use it in GitHub Desktop.
Save PhDP/5ff4bed8c15f6be728a3 to your computer and use it in GitHub Desktop.
Section "Device"
Identifier "nvidia"
Driver "nvidia"
Option "NoLogo" "true"
Option "DPI" "96 x 96"
# Specify Nvidia PCI device
BusID "PCI:1:0:0"
# Make sure X starts also when no outputs are connected to the Nvidia chip
Option "AllowEmptyInitialConfiguration"
EndSection
# Slave device
Section "Device"
Identifier "intel"
# Simple output, no full Intel driver
Driver "modesetting"
# BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
EndSection
# Make sure the Nvidia device is the first in the server
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment