Skip to content

Instantly share code, notes, and snippets.

@sagebind
Created July 3, 2020 22:31
Show Gist options
  • Save sagebind/77b8900c3f2cfbd391340b69eb8d6330 to your computer and use it in GitHub Desktop.
Save sagebind/77b8900c3f2cfbd391340b69eb8d6330 to your computer and use it in GitHub Desktop.
NVIDIA Prime offloading config for Ubuntu
Section "Files"
ModulePath "/usr/lib/xorg/modules"
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "iGPU"
Option "AllowNvidiaGpuScreens"
EndSection
Section "Device"
Identifier "iGPU"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "iGPU"
Device "iGPU"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment