Skip to content

Instantly share code, notes, and snippets.

@4JX
Created May 14, 2023 16:01
Show Gist options
  • Save 4JX/ec3b37198fdc5900ac258ca99ce0e068 to your computer and use it in GitHub Desktop.
Save 4JX/ec3b37198fdc5900ac258ca99ce0e068 to your computer and use it in GitHub Desktop.
# -- Snip --
Section "ServerLayout"
Identifier "Layout[all]"
Option "AllowNVIDIAGPUScreens"
# Reference the Screen sections for each driver. This will
# cause the X server to try each in turn.
Screen "Screen-modesetting[0]"
Screen "Screen-amdgpu[0]"
EndSection
# For each supported driver, add a "Device" and "Screen"
# section.
Section "Device"
Identifier "Device-modesetting[0]"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "Screen-modesetting[0]"
Device "Device-modesetting[0]"
EndSection
Section "Device"
Identifier "Device-amdgpu[0]"
Driver "amdgpu"
BusID "PCI:6:0:0"
EndSection
Section "Screen"
Identifier "Screen-amdgpu[0]"
Device "Device-amdgpu[0]"
EndSection
Section "Device"
Identifier "Device-nvidia[0]"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment