Created
January 24, 2013 04:57
-
-
Save dstar4138/4617773 to your computer and use it in GitHub Desktop.
My Xorg.conf scripts for when my laptop is docked/undocked and my graphics card is on/off.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" 0 0 | |
Screen 1 "Screen1" RightOf "Screen0" | |
Screen 2 "Screen2" RightOf "Screen1" | |
InputDevice "Keyboard0" "CoreKeyboard" | |
InputDevice "Mouse0" "CorePointer" | |
Option "Xinerama" "1" | |
EndSection | |
Section "Module" | |
Load "bitmap" | |
Load "dbe" | |
Load "ddc" | |
Load "dri" | |
Load "extmod" | |
Load "freetype" | |
Load "glx" | |
Load "int10" | |
Load "record" | |
Load "type1" | |
Load "vbe" | |
EndSection | |
Section "InputDevice" | |
# generated from default | |
Identifier "Mouse0" | |
Driver "mouse" | |
Option "Protocol" "auto" | |
Option "Device" "/dev/psaux" | |
Option "Emulate3Buttons" "no" | |
Option "ZAxisMapping" "4 5" | |
EndSection | |
Section "InputDevice" | |
# generated from default | |
Identifier "Keyboard0" | |
Driver "kbd" | |
EndSection | |
Section "Monitor" | |
# HorizSync source: edid, VertRefresh source: edid | |
Identifier "Monitor0" | |
VendorName "Unknown" | |
ModelName "Samsung SyncMaster" | |
HorizSync 30.0 - 81.0 | |
VertRefresh 56.0 - 75.0 | |
Option "DPMS" | |
EndSection | |
Section "Monitor" | |
# HorizSync source: edid, VertRefresh source: edid | |
Identifier "Monitor1" | |
VendorName "Unknown" | |
ModelName "LG Electronics W2486" | |
HorizSync 30.0 - 83.0 | |
VertRefresh 56.0 - 75.0 | |
Option "DPMS" | |
EndSection | |
Section "Monitor" | |
Identifier "Monitor2" | |
VendorName "Unknown" | |
ModelName "Unknown" | |
HorizSync 30.0 - 81.0 | |
VertRefresh 50.0 - 63.0 | |
Option "DPMS" | |
EndSection | |
Section "Device" | |
Identifier "Device0" | |
Driver "nvidia" | |
VendorName "NVIDIA Corporation" | |
BoardName "Quadro 1000M" | |
BusID "PCI:1:0:0" | |
Screen 0 | |
Option "RenderAccel" "true" | |
Option "UseEdidDpi" "False" | |
Option "DPI" "141x141" | |
EndSection | |
Section "Device" | |
Identifier "Device1" | |
Driver "nvidia" | |
VendorName "NVIDIA Corporation" | |
BoardName "Quadro 1000M" | |
BusID "PCI:1:0:0" | |
Screen 1 | |
Option "RenderAccel" "true" | |
EndSection | |
Section "Device" | |
Identifier "Device2" | |
Driver "intel" | |
BusID "PCI:0:2:0" | |
Option "Clone" "off" | |
EndSection | |
Section "Screen" | |
Identifier "Screen0" | |
Device "Device0" | |
Monitor "Monitor0" | |
DefaultDepth 24 | |
Option "Stereo" "0" | |
Option "nvidiaXineramaInfoOrder" "DFP-0" | |
Option "metamodes" "DFP: 1920x1080 +0+0 { Rotation=left }" | |
SubSection "Display" | |
Depth 24 | |
EndSubSection | |
EndSection | |
Section "Screen" | |
Identifier "Screen1" | |
Device "Device1" | |
Monitor "Monitor1" | |
DefaultDepth 24 | |
Option "Stereo" "0" | |
Option "metamodes" "CRT: 1920x1080 +0+0" | |
SubSection "Display" | |
Depth 24 | |
EndSubSection | |
EndSection | |
Section "Screen" #Laptop Screen | |
Identifier "Screen2" | |
Device "Device2" | |
Monitor "Monitor2" | |
DefaultDepth 24 | |
SubSection "Display" | |
Depth 24 | |
EndSubSection | |
EndSection | |
Section "Extensions" | |
Option "Composite" "Disable" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" | |
InputDevice "Keyboard0" "CoreKeyboard" | |
InputDevice "Mouse0" "CorePointer" | |
EndSection | |
Section "Module" | |
Load "bitmap" | |
Load "dbe" | |
Load "ddc" | |
Load "dri" | |
Load "extmod" | |
Load "freetype" | |
Load "glx" | |
Load "int10" | |
Load "record" | |
Load "type1" | |
Load "vbe" | |
EndSection | |
Section "InputDevice" | |
# generated from default | |
Identifier "Mouse0" | |
Driver "mouse" | |
Option "Protocol" "auto" | |
Option "Device" "/dev/psaux" | |
Option "Emulate3Buttons" "no" | |
Option "ZAxisMapping" "4 5" | |
EndSection | |
Section "InputDevice" | |
# generated from default | |
Identifier "Keyboard0" | |
Driver "kbd" | |
EndSection | |
Section "Monitor" | |
Identifier "Monitor0" | |
Option "DPMS" | |
EndSection | |
Section "Device" | |
Identifier "Device0" | |
Driver "intel" | |
VendorName "NVIDIA Corporation" | |
Option "RegistryDwords" "EnableBrightnessControl=1" | |
EndSection | |
Section "Screen" | |
Identifier "Screen0" | |
Device "Device0" | |
Monitor "Monitor0" | |
DefaultDepth 24 | |
SubSection "Display" | |
Depth 24 | |
EndSubSection | |
EndSection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment