Skip to content

Instantly share code, notes, and snippets.

@marcioAlmada
Created January 17, 2017 16:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marcioAlmada/fb1fb8abd4dd1d03d72afb410ff160e9 to your computer and use it in GitHub Desktop.
Save marcioAlmada/fb1fb8abd4dd1d03d72afb410ff160e9 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
@marcioAlmada
Copy link
Author

Also don't forget to uncomment WaylandEnable=false on /etc/gdm/custom.conf

@KaySchneider
Copy link

thanks for the xorg conf ;-)

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