# File configurated by zogs - <zogs@anche.no> - http://www.autistici.org/c0de

#
# Copyright (c) 1999 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Except as contained in this notice, the name of the XFree86 Project shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# XFree86 Project.
#

# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of 
# this file.
# **********************************************************************


# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
    Load        "freetype"
    #Load        "speedo"

# This loads the GLX module
    Load       "glx"

EndSection

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

Section "Files"

    RgbPath	"/usr/share/X11/rgb"

    FontPath   "/usr/share/fonts/local/"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/OTF/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/Speedo/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/cyrillic/"

#    ModulePath "/usr/lib/xorg/modules"

EndSection

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

Section "ServerFlags"

#    Option     "NoTrapSignals"
#    Option     "DontVTSwitch"
#    Option     "DontZap"
#    Option     "DontZoom"
#    Option     "DisableVidModeExtension"
#    Option     "AllowNonLocalXvidtune"
#    Option     "DisableModInDev"
#    Option     "AllowNonLocalModInDev"
#    Option      "blank time"    "10"    # 10 minutes
#    Option      "standby time"  "20"
#    Option      "suspend time"  "30"
#    Option      "off time"      "60"
#    Option   "EstimateSizesAggresively" "0"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

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

Section "InputDevice"

    Identifier	"Keyboard1"
    Driver	"kbd"
#    Option     "Protocol"      "Xqueue"
#    Option     "AutoRepeat"    "500 5"
#    Option     "Xleds" "1 2 3"
#    Option     "XkbDisable"
#    Option     "XkbModel"      "pc102"
#    Option     "XkbModel"      "pc105"
     Option     "XkbModel"      "pc104"
#    Option     "XkbVariant"    "nodeadkeys"
#    Option     "XkbOptions"    "ctrl:swapcaps"
     Option     "XkbLayout"     "us"

EndSection


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

Section "InputDevice"

    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/mouse"
    Option "EmulateWheel" "on"
    Option "EmulateWheelTimeout" "200"
    Option "EmulateWheelButton" "2"
    Option "YAxisMapping" "4 5"
    Option "XAxisMapping" "6 7"
EndSection

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

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

Section "Monitor"
      Identifier      "External CRT"
      Option          "DPMS"
      HorizSync 28-75
      VertRefresh 43-100
EndSection


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

#### For CRT Monitor

#Section "Device"
#       Identifier      "Intel Corporation Mobile Integrated Graphics Controller"
#       Driver          "i810"
#      BusID           "PCI:0:2:0"
#       Option "MonitorLayout" "CRT,LFP"
#       Option "DevicePresence" "true" 
#       Screen 1
#EndSection

Section "Device"
       Identifier      "** Intel i810 (generic)               [i810]"
       Driver          "i810"
       BusID           "PCI:0:2:0"
       Screen 0
EndSection

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

#### For CRT Monitor

#Section "Screen"
#       Identifier      "External Screen"
#       Device          "Intel Corporation Mobile Integrated Graphics Controller External CRT"
#       Monitor         "External CRT"
#       DefaultDepth    24
#       SubSection "Display"
#               Depth           24
#               Modes           "1280x1024"
#       EndSubSection
#EndSection

Section "Screen"
       Identifier      "Default Screen"
       Device          "** Intel i810 (generic)               [i810]"
       Monitor         "LCD"
       DefaultDepth    24
       SubSection "Display"
               Depth           1
               Modes           "1024x768"
       EndSubSection
EndSection


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

Section "ServerLayout"

    Identifier      "Default Layout"
    Screen          0 "Default Screen" 0 0
#    Screen          1 "External Screen" RightOf "Default Screen"    ## For CRT Monitor
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

######## zogs - http://www.autistici.org/c0de - <zogs@anche.no>