All pastes #463085 Raw Edit

Anonymous

public text v1 · immutable
#463085 ·published 2007-04-28 18:59 UTC
rendered paste body
#
# xorg config
#


# configuration to use
Section "ServerFlags"
        #Option         "DefaultServerLayout" "Single Local Layout"
        #Option         "DefaultServerLayout" "Single External1280 Layout"
        #Option         "DefaultServerLayout" "Single External1024 Layout"
        #Option         "DefaultServerLayout" "Double Duplicated 1024 Layout"
        #Option         "DefaultServerLayout" "Double Share Desktop 1280 Layout"
        #Option         "DefaultServerLayout" "Double Separate Desktop 1280 Layout"
        Option          "DefaultServerLayout" "Double Separate Desktop 1024 Layout"
EndSection


# two screens sharing a desktop, external 1280x1024
Section "ServerLayout"
        Identifier      "Double Share Desktop 1280 Layout"
        Screen          0 "Dual Local Screen" LeftOf "Dual External1280 Screen"
        Screen          1 "Dual External1280 Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
        Option          "Xinerama" "true"
EndSection


# two screens with two desktop, external 1280x1024
Section "ServerLayout"
        Identifier      "Double Separate Desktop 1280 Layout"
        Screen          0 "Dual Local Screen" LeftOf "Dual External1280 Screen"
        Screen          1 "Dual External1280 Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
EndSection


# two screens with two desktop, external 1024x768
Section "ServerLayout"
        Identifier      "Double Separate Desktop 1024 Layout"
        Screen          0 "Dual Local Screen" LeftOf "Dual External1024 Screen"
        Screen          1 "Dual External1024 Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
EndSection


# two screens with single duplicated 1024 desktop on both local lcd and vga
Section "ServerLayout"
        Identifier      "Double Duplicated 1024 Layout"
        Screen          "Duplicated Dual Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
EndSection


# one screen one desktop on local lcd
Section "ServerLayout"
        Identifier      "Single Local Layout"
        Screen          "Single Local Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
EndSection


# one screen one desktop on external 1280 display
Section "ServerLayout"
        Identifier      "Single External1280 Layout"
        Screen          "Single External1280 Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
EndSection


# one screen one desktop on external 1024 display
Section "ServerLayout"
        Identifier      "Single External1024 Layout"
        Screen          "Single External1024 Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"
EndSection


# font files
Section "Files"
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
         # paths to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection


# test what this does
Section "Extensions"
        # required for shadows, transparent windows etc.
        Option "Composite" "true"
EndSection


# modules to use
Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "evdev"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "type1"
        Load    "vbe"
EndSection


# keyboard
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "gb"

EndSection

# touchpad
Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
EndSection


# laptop lcd device section
Section "Device"
        Identifier      "Single LocalLCD Device"
        Driver          "i810" # change to vesa if it doesn't work
        BusID           "PCI:0:2:0"
        Screen          0

        Option          "PageFlip"              "true"
        Option          "VBERestore"            "true"
        Option          "DRI"                   "true"
        Option          "AGPMode"               "4"
        Option          "AGPFastWrite"          "true"
        Option          "EnablePageFlip"        "true"
        Option          "DisplayInfo"           "false"
        Option          "VideoRam"              "131072"

        # ddc might complain about a wrong refreshrate
        Option          "DDC"           "false"
EndSection


# duplicated laptop lcd and external device section
Section "Device"
        Identifier      "Double Duplicated Device"
        Driver          "i810" # change to vesa if it doesn't work
        BusID           "PCI:0:2:0"

        ##### test this one
        #Option         "AGPFastWrite" "true"

        Screen          0

        # options for the i810 module only!
        # external monitor and local flat panel
        Option          "MonitorLayout" "CRT,LFP"
        # ddc might complain about a wrong refreshrate
        Option          "DDC"           "false"

        # use the next two lines to enable a cloned display for the external monitor
        # this might be used instead of dual head / xinerama (e.g. for presentations / beamer)
        Option "Clone" "On"
        # refreshrate for the external monitor
        Option "CloneRefresh" "60"
EndSection


# laptop lcd device section
Section "Device"
        Identifier      "Dual LocalLCD Device"
        Driver          "i810" # change to vesa if it doesn't work
        BusID           "PCI:0:2:0"

        ##### test this one
        #Option         "AGPFastWrite" "true"

        Screen          0

        # options for the i810 module only!
        # external monitor and local flat panel
        Option          "MonitorLayout" "CRT,LFP"
        # ddc might complain about a wrong refreshrate
        Option          "DDC"           "false"

        # use the next two lines to enable a cloned display for the external monitor
        # this might be used instead of dual head / xinerama (e.g. for presentations / beamer)
#       Option "Clone" "On"
        # refreshrate for the external monitor
#       Option "CloneRefresh" "60"
EndSection


# external vga device as dual display section
Section "Device"
        Identifier      "Dual VGAOUT Device"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Screen          1
        Option          "MonitorLayout" "CRT,LFP"

        ##### test this one
        #Option         "AGPFastWrite" "true"

        Option          "DDC"           "false"
#       Option          "Rotate"        "CCW"
EndSection


# external vga device as only display section
Section "Device"
        Identifier      "Single VGAOUT Device"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Screen          0
        Option          "MonitorLayout" "CRT"

        ##### test this one
        #Option         "AGPFastWrite" "true"
EndSection


# laptop lcd monitor section
Section "Monitor"
        Identifier      "Dell X1 LCD Monitor"
        VendorName      "Dell"
        ModelName       "X1"
        Option          "DPMS"
        DisplaySize     338 203

        Mode            "1280x768"      # vfreq 59.870Hz, hfreq 47.776kHz
                DotClock        79.500000
                HTimings        1280 1344 1472 1664
                VTimings        768 771 778 798
                Flags           "-HSync" "-VSync"
        EndMode
        # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
        #Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060 -HSync +Vsync
EndSection


# external generic vga monitor section
Section "Monitor"
        Identifier      "Generic VGA Monitor"
        HorizSync       27 - 96
        VertRefresh     50 - 160
        VertRefresh     60
        DisplaySize     347 260 
        Option "DPMS"
        Modeline "1024x768_60.00" 65 1024 1032 1176 1344  768 771 777 806 -hsync -vsync
EndSection


# external viewsonic vp191b lcd vga monitor section
Section "Monitor"
        Identifier      "Viewsonic VP191b Monitor"
#       HorizSync       30 - 82
#       VertRefresh     50 - 85
#        DisplaySize     376 302
        Option "DPMS"
        Modeline "1024x768_60.00" 65 1024 1032 1176 1344  768 771 777 806 -hsync -vsync
EndSection


# laptop 1280x768 lcd screen section 
Section "Screen"
        Identifier      "Single Local Screen"
        Device          "Single LocalLCD Device"
        Monitor         "Dell X1 LCD Monitor"
        DefaultDepth    24
        SubSection "Display"
                # test this
                Viewport        0 0

                Depth           24
                Modes           "1280x768" "1024x768" "1280x1024" "800x600"
        EndSubSection
EndSection


# laptop 1024x768 duplicated dual screen section 
Section "Screen"
        Identifier      "Duplicated Dual Screen"
        Device          "Double Duplicated Device"
        Monitor         "Dell X1 LCD Monitor"
        DefaultDepth    24
        SubSection "Display"
                # test this
                Viewport        0 0

                Depth           24
                Modes           "1024x768"
        EndSubSection
EndSection


# laptop 1280x768 lcd screen section 
Section "Screen"
        Identifier      "Dual Local Screen"
        Device          "Dual LocalLCD Device"
        Monitor         "Dell X1 LCD Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x768"
        EndSubSection
EndSection


# dual display with external viewsonic vp191b 1280x1024 screen section
Section "Screen"
        Identifier      "Dual External1280 Screen"
        Device          "Dual VGAOUT Device"
        Monitor         "Viewsonic VP191b Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024"
        EndSubSection
EndSection


# single display with viewsonic vp191b 1280x1024 screen section
Section "Screen"
        Identifier      "Single External1280 Screen"
        Device          "Single VGAOUT Device"
        Monitor         "Viewsonic VP191b Monitor"
        DefaultDepth    24
        SubSection "Display"

                ##### test this
                #Viewport       0 0

                Depth           24
                Modes           "1280x1024" "1024x768"
        EndSubSection
EndSection


# single display with viewsonic vp191b 1024x768 screen section
Section "Screen"
        Identifier      "Single External1024 Screen"
        Device          "Single VGAOUT Device"
        Monitor         "Generic VGA Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1024x768"
                # this force it to 1024x768, although above should do it
                Virtual         1024 768
        EndSubSection
EndSection


# external 1024x768 vga screen section
Section "Screen"
        Identifier      "Dual External1024 Screen"
        Device          "Dual VGAOUT Device"
        Monitor         "Generic VGA Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1024x768"
                Virtual         1024 768
        EndSubSection
EndSection


# dri options
Section "DRI"
        Mode    0666
EndSection