Skip to content

Instantly share code, notes, and snippets.

@KaySchneider
Forked from marcioAlmada/xorg.conf
Created December 30, 2018 12:17
Show Gist options
  • Save KaySchneider/74d0b44b7e4a5cd32bc0f4aee176b9c6 to your computer and use it in GitHub Desktop.
Save KaySchneider/74d0b44b7e4a5cd32bc0f4aee176b9c6 to your computer and use it in GitHub Desktop.
#/etc/X11/xorg.conf
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