All pastes #47423 Raw Edit

xorg.conf for iBook G4 dual-head

public text v1 · immutable
#47423 ·published 2006-03-29 10:46 UTC
rendered paste body
# By JettLogic

# This is an x.org config for an August 2005 iBook G4 12" on Gentoo
# Linux, using non-accelerated radeon driver.  It provides layouts for
# cloning of the screen to an external 1280x1024 display, and
# extending the desktop on to the external 1280x1024 display (on the
# left) using the radeon display extender.  

# It also needs Xinerama so that you can scroll up/down on the
# 1024x768 internal display (the viewport width is the sum of the
# displays, but the height is the same as the largest to make it
# rectangular, which is taller than the small screen can show at
# once).  There is some flicker when doing the scrolling.

Section "Module"
    Load        "dbe" # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga" # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "synaptics"  
    # BEGIN TEST
    Load        "extmod"
    Load        "int10"
    Load        "GLcore"
    Load        "i2c"
    Load        "glx"
    Load        "vbe"
    Load        "dri"
    # END TEST
EndSection

Section "Files"
    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"
EndSection

Section "ServerFlags"
    Option      "Xinerama"              "True"       
EndSection

Section "InputDevice"
    Identifier	"Keyboard"
    Driver	"kbd"
    Option      "CoreKeyboard"          "True"
    Option      "AutoRepeat"            "500 30"
    Option      "XkbRules"              "xorg"
    Option      "XkbModel"              "pc105"
    Option      "XkbLayout"             "us"
EndSection

Section "InputDevice"
    Identifier	"Mouse"
    Driver	"mouse"
    Option      "Protocol"              "ImPS/2"
    Option      "CorePointer"           "True"
    Option      "Device"                "/dev/input/mice"
    Option      "ZAxisMapping"          "4 5"
EndSection

Section "InputDevice"
    Identifier  "Touchpad"
    Driver      "synaptics"
    Option      "SendCoreEvents"     "True"
    Option      "Device"             "/dev/psaux"
    Option      "Protocol"           "auto-dev"
    Option      "SHMConfig"           "on"
    Option      "LeftEdge"            "35"
    Option      "RightEdge"           "930"
    Option      "TopEdge"             "25"
    Option      "BottomEdge"          "320"
    Option      "FingerLow"           "20"
    Option      "FingerHigh"          "40"
    Option      "MaxTapTime"          "150"
    Option      "MaxTapMove"          "15"
    Option      "MaxDoubleTapTime"    "150"
    Option      "ClickTime"           "100"
    Option      "VertScrollDelta"     "20"
    Option      "HorizScrollDelta"    "80"
    Option      "MinSpeed"            "0.2"
    Option      "MaxSpeed"            "1.0"
    Option      "AccelFactor"         "0.08"
    Option      "EdgeMotionMinZ"      "50"
    Option      "EdgeMotionMaxZ"      "90"
    Option      "EdgeMotionMinSpeed"  "30"
    Option      "EdgeMotionMaxSpeed"  "250"
    Option      "EdgeMotionUseAlways" "0"
    Option      "RTCornerButton"      "3"
    Option      "LTCornerButton"      "2"
    Option      "TapButton1"          "1"
    Option      "TapButton2"          "2"
    Option      "TapButton3"          "3"
    Option      "CircularScrolling"   "1"
    Option      "CircScrollDelta"     "0.2"
    Option      "CircScrollTrigger"   "1"
    Option      "CoastingSpeed"       "0"
EndSection

Section "Device"
    Identifier  "Cloned Display"
    Driver      "radeon"
    Option      "EnablePageFlip"        "True"
    ### DRI-only Optimisations
    #Option     "AGPMode"               "4"
    #Option     "RenderAccel"           "On"
    #Option     "AGPFastWrite"          "1"
    ### Radeon-specific Cloning
    # CloneDisplay: 0 - disable, 1 - auto, 2 - force
    Option      "CloneDisplay"          "1"
    Option      "CloneMode"             "1280x1024"
EndSection 

Section "Device"
    Identifier  "Dual Display"
    Driver      "radeon"
    ### Radeon-specific Xinerama
    # CRT2Position: Clone, LeftOf, RightOf
    Option     "EnablePageFlip"         "False"
    Option     "MergedFB"               "True"
    Option     "MergedNonRectangular"   "True"
    Option     "CRT2Position"           "LeftOf"
    Option     "MetaModes"              "1024x768-1280x1024 1024x768-1024x768"
EndSection 

Section "Monitor"
    Identifier  "Internal LCD"
    Option      "DPMS"
EndSection

Section "Screen"
    Identifier  "Cloned Screen"
    Device      "Cloned Display"
    Monitor     "Internal LCD"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" 
    EndSubsection
EndSection

Section "Screen"
    Identifier  "Dual Screen"
    Device      "Dual Display"
    Monitor     "Internal LCD"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1024x768" 
        # 1024x768 + 1024x768 = 2048x768
        # 1024x768 + 1280x1024 = 2304x1024
	#Virtual     2048 768
	Virtual     2304 1024
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier "Dual"
    Screen "Dual Screen"
    InputDevice "Touchpad"
    InputDevice "Mouse" 
    InputDevice "Keyboard"
EndSection

Section "ServerLayout"
    Identifier "Cloned"
    Screen "Cloned Screen"
    InputDevice "Touchpad"
    InputDevice "Mouse" 
    InputDevice "Keyboard"
EndSection