I have to 2 video outputs a VGA and Displayport.
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108GLM [Quadro 1000M] (rev a1)
The following file is needed /etc/X11/xorg.conf I made one for each setup. It is important to modify : Section “Device” and set the hardware ID for the NVIDIA Displayport : BusID “PCI:1:0:0” .
The driver is necessary to specify : Driver “nvidia”
This xorg.conf will disable the laptop screen and display only video from the Displayport.
Section “ServerLayout”
Identifier “X.org Configured”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
InputDevice “Mouse0” “CorePointer”
InputDevice “Keyboard0” “CoreKeyboard”
EndSection
Section “Files”
ModulePath “/usr/lib/xorg/modules”
FontPath “/usr/share/fonts/X11/misc”
FontPath “/usr/share/fonts/X11/cyrillic”
FontPath “/usr/share/fonts/X11/100dpi/:unscaled”
FontPath “/usr/share/fonts/X11/75dpi/:unscaled”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/100dpi”
FontPath “/usr/share/fonts/X11/75dpi”
FontPath “built-ins”
EndSection
Section “Module”
Load “glx”
EndSection
Section “InputDevice”
Identifier “Keyboard0”
Driver “kbd”
EndSection
Section “InputDevice”
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/input/mice”
Option “ZAxisMapping” “4 5 6 7”
EndSection
Section “Monitor”
Identifier “Monitor0”
VendorName “Monitor Vendor”
ModelName “Monitor Model”
Option “ignore” “true”
EndSection
Section “Monitor”
Identifier “Monitor1”
VendorName “Monitor Vendor”
ModelName “Monitor Model”
EndSection
Section “Device”
### Available Driver options are:-
### Values: : integer, : float, : “True”/“False”,
### : “String”, : “ Hz/kHz/MHz”,
### : “%”
### [arg]: arg optional
#Option “Accel” # []
#Option “AccelMethod” #
#Option “Backlight” #
#Option “CustomEDID” #
#Option “DRI” #
#Option “Present” # []
#Option “ColorKey” #
#Option “VideoKey” #
#Option “Tiling” # []
#Option “LinearFramebuffer” # []
#Option “HWRotation” # []
#Option “VSync” # []
#Option “PageFlip” # []
#Option “SwapbuffersWait” # []
#Option “TripleBuffer” # []
#Option “XvPreferOverlay” # []
#Option “HotPlug” # []
#Option “ReprobeOutputs” # []
#Option “XvMC” # []
#Option “ZaphodHeads” #
#Option “VirtualHeads” #
#Option “TearFree” # []
#Option “PerCrtcPixmaps” # []
#Option “FallbackDebug” # []
#Option “DebugFlushBatches” # []
#Option “DebugFlushCaches” # []
#Option “DebugWait” # []
#Option “BufferCache” # []
Identifier “Card0”
Driver “intel”
BusID “PCI:0:2:0”
EndSection
Section “Device”
### Available Driver options are:-
### Values: : integer, : float, : “True”/“False”,
### : “String”, : “ Hz/kHz/MHz”,
### : “%”
### [arg]: arg optional
#Option “SWcursor” # []
#Option “HWcursor” # []
#Option “NoAccel” # []
#Option “ShadowFB” # []
#Option “VideoKey” #
#Option “WrappedFB” # []
#Option “GLXVBlank” # []
#Option “ZaphodHeads” #
#Option “PageFlip” # []
#Option “SwapLimit” #
#Option “AsyncUTSDFS” # []
#Option “AccelMethod” #
#Option “DRI” #
Identifier “Card1”
Driver “nvidia”
BusID “PCI:1:0:0”
EndSection
Section “Screen”
Identifier “Screen0”
Device “Card0”
Monitor “Monitor0”
SubSection “Display”
Viewport 0 0
Depth 1
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 4
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 8
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section “Screen”
Identifier “Screen1”
Device “Card1”
Monitor “Monitor1”
SubSection “Display”
Viewport 0 0
Depth 1
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 4
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 8
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection
root@trabajar2:/etc/X11# cat xorg.conf
Section “ServerLayout”
Identifier “X.org Configured”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1” RightOf “Screen0”
InputDevice “Mouse0” “CorePointer”
InputDevice “Keyboard0” “CoreKeyboard”
EndSection
Section “Files”
ModulePath “/usr/lib/xorg/modules”
FontPath “/usr/share/fonts/X11/misc”
FontPath “/usr/share/fonts/X11/cyrillic”
FontPath “/usr/share/fonts/X11/100dpi/:unscaled”
FontPath “/usr/share/fonts/X11/75dpi/:unscaled”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/100dpi”
FontPath “/usr/share/fonts/X11/75dpi”
FontPath “built-ins”
EndSection
Section “Module”
Load “glx”
EndSection
Section “InputDevice”
Identifier “Keyboard0”
Driver “kbd”
EndSection
Section “InputDevice”
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/input/mice”
Option “ZAxisMapping” “4 5 6 7”
EndSection
Section “Monitor”
Identifier “Monitor0”
VendorName “Monitor Vendor”
ModelName “Monitor Model”
Option “ignore” “true”
EndSection
Section “Monitor”
Identifier “Monitor1”
VendorName “Monitor Vendor”
ModelName “Monitor Model”
EndSection
Section “Device”
### Available Driver options are:-
### Values: : integer, : float, : “True”/“False”,
### : “String”, : “ Hz/kHz/MHz”,
### : “%”
### [arg]: arg optional
#Option “Accel” # []
#Option “AccelMethod” #
#Option “Backlight” #
#Option “CustomEDID” #
#Option “DRI” #
#Option “Present” # []
#Option “ColorKey” #
#Option “VideoKey” #
#Option “Tiling” # []
#Option “LinearFramebuffer” # []
#Option “HWRotation” # []
#Option “VSync” # []
#Option “PageFlip” # []
#Option “SwapbuffersWait” # []
#Option “TripleBuffer” # []
#Option “XvPreferOverlay” # []
#Option “HotPlug” # []
#Option “ReprobeOutputs” # []
#Option “XvMC” # []
#Option “ZaphodHeads” #
#Option “VirtualHeads” #
#Option “TearFree” # []
#Option “PerCrtcPixmaps” # []
#Option “FallbackDebug” # []
#Option “DebugFlushBatches” # []
#Option “DebugFlushCaches” # []
#Option “DebugWait” # []
#Option “BufferCache” # []
Identifier “Card0”
Driver “intel”
BusID “PCI:0:2:0”
EndSection
Section “Device”
### Available Driver options are:-
### Values: : integer, : float, : “True”/“False”,
### : “String”, : “ Hz/kHz/MHz”,
### : “%”
### [arg]: arg optional
#Option “SWcursor” # []
#Option “HWcursor” # []
#Option “NoAccel” # []
#Option “ShadowFB” # []
#Option “VideoKey” #
#Option “WrappedFB” # []
#Option “GLXVBlank” # []
#Option “ZaphodHeads” #
#Option “PageFlip” # []
#Option “SwapLimit” #
#Option “AsyncUTSDFS” # []
#Option “AccelMethod” #
#Option “DRI” #
Identifier “Card1”
Driver “nvidia”
BusID “PCI:1:0:0”
EndSection
Section “Screen”
Identifier “Screen0”
Device “Card0”
Monitor “Monitor0”
SubSection “Display”
Viewport 0 0
Depth 1
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 4
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 8
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section “Screen”
Identifier “Screen1”
Device “Card1”
Monitor “Monitor1”
SubSection “Display”
Viewport 0 0
Depth 1
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 4
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 8
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection