Section "Module"

   Load        "dbe"
   Load        "type1"
   Load        "freetype"
   Load        "speedo"
   Load        "extmod"

# This loads the GLX module
#    Load       "glx"
#    Load       "GLcore"
#    Load       "xie"
#    Load       "record"
#    Load       "dri"
EndSection

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

Section "Files"

FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/local"
 FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
 FontPath     "/usr/X11R6/lib/X11/fonts/URW"
 FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"
 FontPath     "/usr/X11R6/lib/X11/fonts/PEX"
 FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
 FontPath     "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/latin2/Type1"
 FontPath     "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/kwintv"
 FontPath     "/usr/X11R6/lib/X11/fonts/truetype"
 FontPath     "/usr/X11R6/lib/X11/fonts/uni"
 FontPath     "/usr/X11R6/lib/X11/fonts/CID"
 FontPath     "/usr/X11R6/lib/X11/fonts/ucs/misc"
 FontPath     "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
 FontPath     "/usr/X11R6/lib/X11/fonts/hellas/Type1"
 FontPath     "/usr/X11R6/lib/X11/fonts/misc/sgi"
 FontPath     "/usr/X11R6/lib/X11/fonts/xtest"
 ModulePath   "/usr/X11R6/lib/modules"
 RgbPath      "/usr/X11R6/lib/X11/rgb"
EndSection

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

Section "ServerFlags"

 Option       "AllowMouseOpenFail"

EndSection

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

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

Section "Pointer"
  Protocol        "Microsoft"
  Device          "/dev/ttyS0"
  Emulate3Timeout 50
  Resolution      100
  Buttons         2
  Buttons         3
  Emulate3Buttons
EndSection

Section "InputDevice"

   Identifier  "Keyboard1"
   Driver      "Keyboard"

   Option "AutoRepeat" "500 30"


   Option "XkbModel"   "pc105"
   Option "XkbLayout"  "de"
   Option "XkbVariant" "nodeadkeys"
   Option "XkbOptions" "grp:toggle,ctrl:ctrl_aa,grp_led:caps"
EndSection


Section "InputDevice"

# Identifier and driver

   Identifier  "Mouse1"
   Driver      "mouse"
   Option "Protocol"    "PS/2"
   #Option "Protocol"    "Microsoft"
   Option "Device"      "/dev/psaux"

EndSection



Section "InputDevice"
         Identifier    "touchscreen"
         Driver        "lbtouch"
         Option        "Device"        "/dev/psaux"
         #Option       "Device"        "/dev/ttyS1"
         #Option       "DeviceName"    "touchscreen"
         Option        "MinX"    "80"
         Option        "MinY"    "43"
         Option        "MiddleX" "509"
         Option        "MiddleY" "1191"
         Option        "MaxX"    "950"
         Option        "MaxY"    "925"
         Option        "ReportingMode" "Raw"
         #Option       "DebugLevel" "9"
         Option        "Emulate3Buttons"
         Option        "Emulate3Timeout" "50"
         Option        "SendCoreEvents"
EndSection



Section "Monitor"

   Identifier  "lcd"


   HorizSync   31.5 - 48.5


   VertRefresh 50-90

EndSection


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


# Device configured by xf86config:

Section "Device"
   Identifier  "mach64"
   Driver      "ati"
   #VideoRam    4096
   # Insert Clocks lines here if appropriate
EndSection


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

Section "Screen"
   Identifier  "Screen 1"
   Device      "mach64"
   Monitor     "lcd"
   DefaultDepth 16

   Subsection "Display"
       Depth       8
       Modes       "1024x768"
       ViewPort    0 0
   EndSubsection
   Subsection "Display"
       Depth       16
       Modes       "1024x768"
       ViewPort    0 0
   EndSubsection
   Subsection "Display"
       Depth       24
       Modes       "1024x768"
       ViewPort    0 0
   EndSubsection
EndSection

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


Section "ServerLayout"

# The Identifier line must be present
   Identifier  "Simple Layout"


   Screen "Screen 1"


   InputDevice "Keyboard1" "CoreKeyboard"
   InputDevice "touchscreen"

EndSection

Section "DRI"
       Mode 0666
EndSection