User Tools

Site Tools


xorg.dualscreen.conf
Section "Module"
    Load        "dbe"   # Double buffer extension

    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
#    Load        "type1"
#    Load        "speedo"
     Load        "freetype"
#    Load        "xtt"
# This loads the GLX module
     Load       "glx"
# This loads the DRI module
#    Load       "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
    FontPath   "/usr/share/fonts/misc"
    FontPath   "/usr/share/fonts/75dpi"
    FontPath   "/usr/share/fonts/100dpi"
    FontPath   "/usr/share/fonts/Type1"
EndSection

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "fr"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2" # Explorer PS/2
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"   "4 5 6 7"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier  "samsung"
    HorizSync   31.5 - 64.3
    VertRefresh 50-90
EndSection

Section "Monitor"
        Identifier  "acer"
         HorizSync   31.5 - 64.3
        VertRefresh 50-90
EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************

# Device configured by xorgconfig:

Section "Device"
        Identifier      "nvidia0"
        Driver          "nvidia"
        BusID           "PCI:5:0:0"
        Option          "VBERestore" "TRUE"
        Option          "MonitorLayout"
        Screen          0
EndSection

Section "Device"
        Identifier      "nvidia1"
        Driver          "nvidia"
        BusID           "PCI:5:0:0"
        Screen          1
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

Section "Screen"
        Identifier "Screen 0"
        Device "nvidia0"
        Monitor "acer"
        DefaultDepth 24

Subsection "Display"
        Depth       24
        Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection

Subsection "Display"
        Depth       16
        Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
Section "Screen"
    Identifier  "Screen 1"
    Device      "nvidia1"
    Monitor     "samsung"
    DefaultDepth 24

        Subsection "Display"
                Depth       24
                Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
                ViewPort    0 0
        EndSubsection
        Subsection "Display"
                Depth       16  
                Modes       "1680x1050" "1280x1024" "1024x768" "800x600" "640x480"
                ViewPort    0 0
        EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

#Section "ServerLayout"

# The Identifier line must be present
  #  Identifier  "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

 #   Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

 #   InputDevice "Mouse1" "CorePointer"
 #   InputDevice "Keyboard1" "CoreKeyboard"
#EndSection
Section "ServerLayout"
        Identifier      "DualHead Layout"
        Screen          0 "Screen 0" 0 0
        Screen          1 "Screen 1" LeftOf "Screen 0"

        Option      "Xinerama" "on"
        #Option     "Clone" "on"
        
        InputDevice "Mouse1" "CorePointer"
        InputDevice "Keyboard1" "CoreKeyboard"

        #InputDevice    "Generic Keyboard"
        #InputDevice    "Configured Mouse"
        #InputDevice    "Synaptics Touchpad"
EndSection

# Section "DRI"
#    Mode 0666
# EndSection
xorg.dualscreen.conf.txt · Last modified: 2018/06/18 11:07 (external edit)