Skip to content

Instantly share code, notes, and snippets.

@mmtrt
Created May 18, 2022 20:55
Show Gist options
  • Save mmtrt/79b42b52abe7b095a542f83641e67e6e to your computer and use it in GitHub Desktop.
Save mmtrt/79b42b52abe7b095a542f83641e67e6e to your computer and use it in GitHub Desktop.
#
# Uses Intel GPU as Primary and NVIDIA as Secondary
#
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
Screen "Screen1"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection
Section "Screen"
Identifier "Screen0"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "Coolbits" "8"
EndSection
Section "Screen"
Identifier "Screen1"
Device "nvidia"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment