Skip to content

Instantly share code, notes, and snippets.

@inscapist
Created August 29, 2022 01:57
Show Gist options
  • Save inscapist/5f9cfb607f5a3eef0bf791711bd2d1f1 to your computer and use it in GitHub Desktop.
Save inscapist/5f9cfb607f5a3eef0bf791711bd2d1f1 to your computer and use it in GitHub Desktop.
Xorg config for alienware x15 (Nvidia Prime Render Offload)
# https://web.mit.edu/rhel-doc/4/RH-DOCS/rhel-rg-en-4/s1-x-server-configuration.html
Section "ServerLayout"
Identifier "layout"
Screen 0 "laptopscreen"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "Device"
# Option "PrimaryGPU" "no"
# BusID "PCI:1:0:0"
Identifier "rtx3070"
Driver "nvidia"
EndSection
Section "Device"
Identifier "intel_uhd"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "laptopscreen"
Device "intel_uhd"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment