Skip to content

Instantly share code, notes, and snippets.

@ds0nt
Created May 14, 2015 04:59
Show Gist options
  • Select an option

  • Save ds0nt/432118f4cc625dec66bb to your computer and use it in GitHub Desktop.

Select an option

Save ds0nt/432118f4cc625dec66bb to your computer and use it in GitHub Desktop.
xorg example multihead
Section "Module"
Load "dbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
Load "speedo"
Load "freetype"
Load "glx"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/msfonts"
FontPath "/usr/share/fonts/misc2"
FontPath "/usr/share/fonts/local"
FontPath "/usr/local/share/fonts"
EndSection
Section "ServerFlags"
# Option "DontZap"
Option "AllowMouseOpenFail" "true"
# Option "DefaultServerLayout" "alltogether"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
Identifier "keyboard0"
Driver "evdev"
Option "Device" "/dev/input/event1"
Option "XkbModel" "evdev"
Option "XkbLayout" "be"
EndSection
Section "InputDevice"
Identifier "keyboard1"
Driver "evdev"
Option "Device" "/dev/input/event5"
Option "XkbModel" "evdev"
Option "XkbLayout" "be"
EndSection
Section "InputDevice"
Identifier "mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2" # Auto detect
Option "Device" "/dev/input/mouse2"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse1"
EndSection
Section "Device"
Identifier "nvidia0"
Driver "nvidia"
Option "RenderAccel" "true"
Option "TripleBuffer" "True"
Option "NoLogo" "1"
BusId "PCI:1:0:0"
EndSection
Section "Device"
Identifier "nvidia1"
Driver "nvidia"
Option "RenderAccel" "true"
Option "TripleBuffer" "True"
Option "NoLogo" "1"
BusId "PCI:0:10:0"
EndSection
Section "Screen"
Identifier "screen0"
Device "nvidia0"
Monitor "l1730s"
DefaultDepth 24
Option "DPI" "100x100"
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768"
EndSubsection
EndSection
Section "Screen"
Identifier "screen1"
Device "nvidia1"
Monitor "cpdm151"
DefaultDepth 24
Option "DPI" "100x100"
Subsection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "seat0"
Screen "screen0" 0 0
InputDevice "mouse0" "CorePointer"
InputDevice "keyboard0" "CoreKeyboard"
Option "AutoAddDevices" "off"
EndSection
Section "ServerLayout"
Identifier "seat1"
Screen "screen1" 0 0
InputDevice "mouse1" "CorePointer"
InputDevice "keyboard1" "CoreKeyboard"
Option "AutoAddDevices" "off"
EndSection
Section "Extensions"
Option "Composite" "Disable"
Option "RENDER" "Enable"
EndSection
Section "Monitor"
Identifier "l1730s"
HorizSync 30-93
VertRefresh 60
Option "dpms"
EndSection
Section "Monitor"
Identifier "cpdm151"
Option "dpms"
HorizSync 30-61
VertRefresh 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment