2005-03-29

Aopen 1545 Nvidia Xorg.conf

/etc/X11/xorg.conf:
xorg.conf [Aopen 1545 / NVidia ]

############################################################
#
# startx [-- -layout Default]   Laptop ONLY
# startx [-- -layout Dual]      Laptop + Proview
#
############################################################

Section "ServerFlags"
        Option  "DefaultServerLayout" "Default"
        Option  "DontZoom"
        Option  "AllowMouseOpenFail"
        # Option        "Xinerama" "Yes"
EndSection

Section "Module"
        Load    "synaptics"

        # 2003.09.20
        # (1)   Load "xtt"
        # (2)   remark Load "Type1"
        # (3)   remark Load "freetype"
        # Load  "xtt"
        # Load  "freetype"
        Load    "type1"

        # do not use GLcore/dri with nVidia
        Load    "dbe"
        Load    "extmod"

        # from NvNews forum
        # Load  "fbdevhw"
        Load    "glx"           # Required for NVidia
        # Load  "dri"           # Prohibited for NVidia
        # Load  "record"
        # Load  "ddc"           # what is DDC ?
        # Load  "xtrap"
        # Load  "speedo"
EndSection

Section "Files"
        RgbPath         "/usr/lib/X11/rgb"
        ModulePath      "/usr/X11R6/lib/modules"
        FontPath        "/usr/share/fonts/misc/"
        # FontPath      "/usr/share/fonts/Speedo/"
        FontPath        "/usr/share/fonts/Type1/"
        # FontPath      "/usr/share/fonts/CID/"
        FontPath        "/usr/share/fonts/ttf/zh_TW/"
        FontPath        "/usr/share/fonts/ttf/zh_CN/"
        FontPath        "/usr/share/fonts/ttf/ja/aqua/"
        FontPath        "/usr/share/fonts/75dpi/"
        FontPath        "/usr/share/fonts/100dpi/"
        FontPath        "/usr/share/fonts/truetype"
EndSection

Section "InputDevice"
        Identifier  "KEYBOARD"
        Driver      "kbd"
        Option "AutoRepeat" "250 30"

#       Option "XkbModel"       "microsoft"
        Option "XkbLayout"      "us"
EndSection

Section "InputDevice"
        Identifier  "SYNAPTICS"
        Driver  "synaptics"
        Option  "Protocol"      "auto"
        #Driver "mouse"
        #Option "Protocol"      "IMPS/2"
        Option  "Device"        "/dev/input/mice"

        # 2004.03.22 Testing
        #Option "Protocol"      "auto-dev"
        #Option "Device"        "/dev/psaux"
        #Option "Device"        "/dev/input/mice"

#       Option  "LeftEdge"      "1900"
#       Option  "RightEdge"     "5400"
#       Option  "BottomEdge"    "1800"
#       Option  "TopEdge"       "3900"
#       Option  "FingerLow"     "25"
#       Option  "FingerHigh"    "30"
#       Option  "MaxTapTime"    "180"
#       Option  "MaxTapMove"    "220"
#       Option  "VertScrollDelta" "100"
#       Option  "MinSpeed"      "0.02"
#       Option  "MaxSpeed"      "0.18"
#       Option  "AccelFactor"   "0.0010"
EndSection

Section "InputDevice"
        Identifier      "USBMOUSE"
        Driver  "mouse"
        #Option "SendCoreEvents" "true"

        # Option        "Device" "/dev/mouse"
        Option  "Device"        "/dev/input/mice"
        # Option        "Device" "/dev/input/event2"

        Option  "Protocol" "auto"
        # Option        "Protocol" "auto-dev"

        Option  "ZAxisMapping" "4 5"
        Option  "Emulate3Buttons"
        Option  "Emulate3Timeout" "50"
EndSection

Section "Monitor"
        Identifier   "Laptop"
        Option          "DPMS"

        # Added: 2004-03-11
        Option "NoDDC" "true"

        #HorizSync      29-65
        #VertRefresh    31.5-60
        #DisplaySize    304 228         # at 117dpi

        #DisplaySize    416 312         # 1.37 times of above

        # Updated 2003.09.23
        HorizSync       29-65
        VertRefresh     31.5-60
        DisplaySize     290 220

        # 2003.10.05 from xvidtune
        # Modeline      "1400x1050"     122.00  1400 1488 1640 1880     1050 1052 1064 1082 +hsync +vsync
        # 2004.03.25 from ddcxinfo-knoppix
        Modeline        "1400x1050"     122.61  1400 1488 1640 1880     1050 1051 1054 1087 -Hsync +Vsync
EndSection

Section "Screen"
        Identifier      "Laptop"
        Device          "Card0"
        Monitor         "Laptop"
        DefaultDepth    16
        # Option                "IgnoreEdid" "1"
        # Option                "GenerateRTList" "0"
        # Option                "OverridePolarity" "1"
        SubSection "Display"
                Depth     16
                Modes   "1400x1050"
        EndSubSection
EndSection

#Section "Monitor"
#       Identifier      "Proview 568"
#       VendorName      "BMM"
#       ModelName       "BMM0238"
#       HorizSync       35.0-58.0
#       VertRefresh     55.0-75.0
#       Option          "dpms" "true"
#EndSection

#Section "Screen"
#       Identifier      "Proview 568"
#       Device          "Card1"
#       Monitor         "Proview 568"
#       DefaultDepth    16
#       SubSection "Display"
#               Depth   16
#               Modes   "1024x768" "800x600" "640x480"
#       EndSubSection
#EndSection

############################################################
#
# Default Laptop Display at 1400x1050 (No TwinView)
#
############################################################
Section "ServerLayout"
        Identifier      "Default"
        Screen      0  "Laptop" 0 0
        InputDevice     "SYNAPTICS" "CorePointer"
        InputDevice     "KEYBOARD" "CoreKeyboard"
        InputDevice     "USBMOUSE" "SendCoreEvents"
#       InputDevice     "USBMOUSE" "CorePointer"
EndSection

Section "Device"
        Identifier      "Card0"
        Driver          "nvidia"
        VendorName      "nVidia Corporation"
        BoardName       "NV11 [GeForce2 Go]"
        BusID   "PCI:1:0:0"
        Option  "UseEdidFreqs" "True"
        Option  "dpms"
        Option  "NvAGP" "1"     # "0"=no "1"=nvagp "2"=agpart "3"=any
        Option  "NoLogo" "True"
        Option  "HWcursor" "On"
        Option  "SWCursor" "Off"
        Option  "CursorShadow"  "1"
 # Option "FlatPanelScalingMode" "Centered" # "Centered" or "Scaled"
        Option  "RenderAccel"  "on"
        #Option  "Rotate"  "ccw"
        Option  "AGPMode"  "4"
        Option  "AGPFastWrite"  "true"
        # Option "EnablePageFlip" "true"

        # TwinView on nVidia
 #Option  "TwinView"
 #Option  "SecondMonitorHorizSync" "35.0-58.0"
 #Option  "SecondMonitorVertRefresh" "55.0-75.0"
 #Option  "MetaModes"                     
 #Option  "TwinViewOrientation"  "LeftOf"
 #Option  "ConnectedMonitor"
 Screen  0
EndSection

Section "Extensions"
#       Option "Composite" "Enable"
EndSection

############################################################
#
# Default Laptop Display at 1400x1050 with TwinView on Separte Device
#
############################################################
#Section "ServerLayout"
#       Identifier      "Dual"
#       Screen          0 "Laptop"
#       SCreen          1 "Proview 568" leftof "Laptop"
#       InputDevice     "SYNAPTICS" "CorePointer"
#       InputDevice     "KEYBOARD" "CoreKeyboard"
#       InputDevice     "USBMOUSE" "SendCoreEvents"
##      InputDevice     "USBMOUSE" "CorePointer"
#EndSection

#Section "Device"
##      Identifier      "NVIDIA GeForce2Go 32MB DDR"
#       Identifier      "Card1"
#       Driver  "nvidia"
#       BusID   "PCI:1:0:0"
#       Option  "NODDC" "1"
#       Option  "NvAGP" "1"     # "0"=no "1"=nvagp "2"=agpart "3"=any
#       #Option "NoLogo" "True"
#       Option  "HWcursor" "On"
#       Option  "SWCursor" "Off"
#       Option  "CursorShadow"  "1"
#       Option  "FlatPanelScalingMode" "Scaled"         # "Centered" or "Scaled"
#       Option  "RenderAccel"           "false"
#       Screen  1
#EndSection