##########################################################################
#                                                                        #
#         T.O.M.'s X-server settings                                     #
#                                                                        #
##########################################################################
#                                                                        #
#        Monitor: BENQ FP937s+ (flat panel)                              #
#     Video card: nVidia GeForce4 Ti 4200 (AGP 4x, 64MB)                 #
#          Cabel: DVI                                                    #
#             OS: Gentoo 2006.0 (kernel 2.6.25-gentoo-r7 PREEMPT)        #
#   Video driver: nvidia-drivers (96.43.07)                              #
#       X server: XOrg (7.2)                                             #
#           X WM: KWin                                                   #
#                                                                        #
##########################################################################

Section "Files"
#    FontPath   "unix/:-1"
    FontPath 	"/usr/share/fonts/75dpi"
    FontPath 	"/usr/share/fonts/100dpi"
    FontPath 	"/usr/share/fonts/local"
    FontPath 	"/usr/share/fonts/TTF"
    FontPath 	"/usr/share/fonts/misc"
    FontPath 	"/usr/share/fonts/Type1"
    FontPath 	"/usr/share/fonts/util"
    FontPath 	"/usr/share/fonts/ukr"
    FontPath 	"/usr/share/fonts/cyrillic"
    FontPath 	"/usr/share/fonts/intlfonts"
    FontPath 	"/usr/share/fonts/default"
    FontPath 	"/usr/share/fonts/lfpfonts-fix"
    FontPath 	"/usr/share/fonts/lfpfonts-var"
    FontPath 	"/usr/share/fonts/terminus"
    FontPath 	"/usr/local/share/fonts"
EndSection

##########################################################################
# Server flags section.                                                  #
##########################################################################

Section "ServerFlags"
    # This allows the server to start up even if the
    # mouse device can't be opened/initialised.
#    AllowMouseOpenFail
EndSection

##########################################################################
# Input devices                                                          #
##########################################################################

####################
# Keyboard section #
####################
Section "InputDevice"
    Identifier  "MyKeyboard"
    Driver      "kbd"
    Option      "CoreKeyboard"
    Option      "XkbRules"      "xorg"
    Option      "XkbModel"      "pc105"
    Option      "XkbLayout"     "us,cz"
    Option      "XkbVariant"    ",qwerty"
    Option      "XkbOptions"    "grp:alt_shift_toggle,grp_led:scroll"
EndSection

###################
# Pointer section #
###################
#For old A4-Tech WOP-35 mouse on PS/2
#Section "InputDevice"
#    Identifier  "MyMouse"
#    Driver      "mouse"
#    Option      "Protocol"      "ExplorerPS/2"
#    Option      "Device"        "/dev/input/mice"
#    Option      "ZAxisMapping"  "4 5"
#    Option      "Buttons"       "7"
#EndSection

#Autodetection for any USB mouse
#Section "InputDevice"
#    Identifier  "MyMouse"
#    Driver      "evdev"
#    Option      "evBits"         "+1-2"
#    Option      "keyBits"        "~272-287"
#    Option      "relBits"        "~0-2 ~6 ~8"
#    Option      "Pass"           "3"
#    Option      "HWheelRelativeAxisButtons" "7 6"
#EndSection

#Works for Genius Ergo 525V
Section "InputDevice"
    Identifier  "MyMouse"
    Driver      "evdev"
    Option      "CorePointer"
    Option      "Name"                      "Genius Ergo Mouse"
    Option      "HWHEELRelativeAxisButtons" "7 6"
    Option      "WHEELRelativeAxisButtons"  "4 5"
    Option      "SendCoreEvents"            "true"
EndSection

#Configuration for btnx tool
#Section "InputDevice"
#    Identifier  "MyMouse"
#    Driver      "mouse"
#    Option      "Protocol"       "auto"
#    Option      "Device"         "/dev/input/mice"
#    Option      "ZAxisMapping"  "4 5"
##    Option      "Buttons"       "10"
#EndSection

##########################################################################
# Module section                                                         #
##########################################################################

Section "Module"
    Load        "dbe"           # Double-Buffering Extension
    Load        "v4l"           # Video for Linux
    Load        "extmod"
    Load        "type1"
    Load        "freetype"
    Load        "glx"
EndSection

##########################################################################
# Monitor section                                                        #
##########################################################################

Section "Monitor"
    Identifier  "MyMonitor"
    VendorName  "BENQ"
    ModelName   "FP937s+"
    HorizSync   31-82
    VertRefresh 60-75

    # 1280x1024 @ 60Hz
    Modeline    "1280x1024"    109.62 1280 1336 1472 1720 1024 1024 1026 1062
    Option      "DPMS"
EndSection

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

Section "Device"
    Identifier  "MyDevice"
    VendorName  "nVidia"
    BoardName   "GeForce4 Ti 4200"
    Driver      "nvidia"
    BusID       "PCI:1:0:0"    # Output of the 'lspci' command
    Option      "NoLogo"
    Option      "NvAGP" "3"    # "0": disables AGP support
                               # "1": use NVAGP, if possible
                               # "2": use AGPGART, if possible
                               # "3": try AGPGART; if that fails, try NVAGP

    Option      "RenderAccel" "true"
    Option      "BackingStore" "true"
#    Option      "TwinView"
#    Option      "TwinViewOrientation" "Clone"
#    Option      "ConnectedMonitor" "DFP, TV"
#    Option      "SecondMonitorHorizSync" "30-50"
#    Option      "SecondMonitorVertRefresh" "60"
#    Option      "MetaModes" "1280x1024,1024x768; 1024x768,1024x768; 800x600,1024x768; 640x480,1024x768"
#    Option      "TVStandard" "PAL-G"
#    Option      "TVOutFormat" "COMPOSITE"    #"SVIDEO"

EndSection

##########################################################################
# Screen section                                                         #
##########################################################################

Section "Screen"
    Identifier          "MyScreen"
    Device              "MyDevice"
    Monitor             "MyMonitor"
    DefaultColorDepth   24

#    Subsection         "Display"
#        Depth          8
#        Modes          "1280x1024" "1024x768" "800x600" "640x480"
#    EndSubsection
    Subsection          "Display"
        Depth           16
        Modes           "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection          "Display"
        Depth           24
        Modes           "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
EndSection

##########################################################################
# ServerLayout section                                                   #
# (invoke using the '-layout' option of 'startx'.                        #
##########################################################################

Section "ServerLayout"
    Identifier  "MyServerLayout"
    Screen      "MyScreen"
    InputDevice "MyMouse"       "CorePointer"
#    InputDevice "MyMouse2"       "AlwaysCore"
    InputDevice "MyKeyboard"     "CoreKeyboard"
EndSection

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