Skip to content

Instantly share code, notes, and snippets.

@hwchong
Created December 12, 2017 10:04
Show Gist options
  • Select an option

  • Save hwchong/28d7c70aafd62a0d3114c5746da7da36 to your computer and use it in GitHub Desktop.

Select an option

Save hwchong/28d7c70aafd62a0d3114c5746da7da36 to your computer and use it in GitHub Desktop.

Revisions

  1. Hon Weng Chong created this gist Dec 12, 2017.
    28 changes: 28 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
    EndSection

    Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    EndSection

    Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    EndSection

    Section "Device"
    Identifier "intel"
    Driver "modesetting"
    EndSection

    Section "Screen"
    Identifier "intel"
    Device "intel"
    EndSection