Skip to content

Instantly share code, notes, and snippets.

@armandocerna
Created November 28, 2018 04:07
Show Gist options
  • Save armandocerna/248f8f1350fcc5a2e472f9e5ce0741a0 to your computer and use it in GitHub Desktop.
Save armandocerna/248f8f1350fcc5a2e472f9e5ce0741a0 to your computer and use it in GitHub Desktop.
P52 Optimus xorg config
xrandr --setprovideroutputsource 0 1
xrandr --auto
i3
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "IgnoreDisplayDevices" ""
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "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