# File: xorg.conf
# "Klippt och klistrat" av Håkan från lite olika config-filer.

# **********************************************************************
# DRI Section
# **********************************************************************

Section "dri"

# Tillgång till OpenGL ICD år tillåtet för alla:

Mode 0666
EndSection

# **********************************************************************
# 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

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

SubSection  "extmod"

Option    "omit xfree86-dga"   # don't initialise the DGA extension

EndSubSection

# This loads the Type1 and FreeType font modules

Load        "type1"
Load        "freetype"

# This loads the GLX module

Load        "glx"   # libglx.a
Load        "dri"   # libdri.a

# Laddar "Synaptik" för "pekplattan":

Load        "synaptics"

EndSection

# **********************************************************************
# Files section.  Sökvägen till fonter, rgb och moduler
# **********************************************************************

Section "Files"

RgbPath"/usr/X11R6/lib/X11/rgb"

FontPath   "/usr/X11R6/lib/X11/fonts/local/"
FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
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/Speedo/"
FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

ModulePath "/usr/X11R6/lib/modules"

EndSection

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

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is 
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client. 

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings. 

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

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

# **********************************************************************
# Core keyboard's InputDevice section 
# För dom flesta operativsystem kan detta uteslutas..
# Option "Protocol"   "Standard"
#..det är förvalt.
# **********************************************************************

Section "InputDevice"

Identifier"Keyboard1"
Driver"kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules""xfree86"
Option "XkbModel""pc105"
Option "XkbLayout""se"

EndSection


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

Section "InputDevice"

# För "pekplattan"

Identifier  "ALPs Touchpad"
Driver  "synaptics"
Option"SendCoreEvents""true"
Option"Device"  "/dev/psaux"
Option"Protocol""auto-dev"
Option"LeftEdge""120"
Option"RightEdge""830"
Option"TopEdge""120"
Option"BottomEdge""650"
Option"FingerLow""14"
Option"FingerHigh""15"
Option"MaxTapTime""180"
Option"MaxTapMove""110"
Option"EmulateMidButtonTime""75"
Option"VertScrollDelta""20"
Option"HorizScrollDelta""20"
Option"MinSpeed""0.3"
Option"MaxSpeed""0.75"
Option"AccelFactor""0.015"
Option"EdgeMotionMinSpeed""200"
Option"EdgeMotionMaxSpeed""200"
Option"UpDownScrolling""1"
Option"CircularScrolling""1"
Option"CircScrollDelta""0.1"
Option"CircScrollTrigger""2"

EndSection

Section "InputDevice"

#För USB_musen

Identifier"USB Mouse"
Driver"mouse"
Option"SendCoreEvents""true"
Option"Device""/dev/input/mice"
Option"Protocol""ImPS/2"
Option"Emulate3Buttons""true"
Option"ZAxisMapping""4 5"

EndSection


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

# Any number of monitor sections may be present

Section "Monitor"
Identifier   "Monitor0"
DisplaySize  370 230
HorizSync    31-90
ModelName    "1400X LAPTOP DISPLAY PANEL"
Option       "DPMS"
VendorName   "DELL"
VertRefresh  59-75
UseModes     "Modes0"
EndSection


Section "Modes"
Identifier   "Modes0"
Modeline "1440x900" 132.71 1440 1536 1688 1936 900 901 904 939
Modeline "1440x900" 112.86 1440 1528 1680 1920 900 901 904 933
Modeline "1280x800" 104.35 1280 1360 1496 1712 800 801 804 835
Modeline "1280x800" 88.68 1280 1352 1488 1696 800 801 804 830
Modeline "1152x864" 102.08 1152 1224 1352 1552 864 865 868 901
Modeline "1152x864" 86.70 1152 1224 1344 1536 864 865 868 896
Modeline "1280x768" 99.17 1280 1352 1488 1696 768 769 772 801
Modeline "1280x768" 84.35 1280 1344 1480 1680 768 769 772 797
Modeline "1024x768" 79.52 1024 1080 1192 1360 768 769 772 801
Modeline "1024x768" 67.48 1024 1080 1184 1344 768 769 772 797
Modeline "800x600" 47.53 800 840 920 1040 600 601 604 626
Modeline "800x600" 40.19 800 832 912 1024 600 601 604 623
Modeline "768x576" 43.52 768 800 880 992 576 577 580 601
Modeline "768x576" 37.37 768 800 880 992 576 577 580 598
Modeline "640x480" 29.84 640 664 728 816 480 481 484 501
Modeline "640x480" 25.10 640 656 720 800 480 481 484 498

EndSection


# **********************************************************************
# Graphics device section: Med Ati's "drivare"
# **********************************************************************
# === ATI device section ===

Section "Device"

Identifier                          "ATI Graphics Adapter"
Driver                              "fglrx"

# ### generic DRI settings ###
# === disable PnP Monitor  ===
#Option                              "NoDDC"

# === disable/enable XAA/DRI ===

Option "no_accel"                   "no"
Option "no_dri"                     "no"

# === misc DRI settings ===

Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr

# ### FireGL DDX driver module specific settings ###

# === Screen Management ===

Option "DesktopSetup"               "(null)" 
Option "ScreenOverlap"              "0" 
Option "GammaCorrectionI"           "0x00000000"
Option "GammaCorrectionII"          "0x00000000"

# === TV-out Management ===

Option "TVFormat"                   "PAL-B"     
Option "TVStandard"                 "NTSC-N"     
Option "TVHSizeAdj"                 "0"     
Option "TVVSizeAdj"                 "0"     
Option "TVHPosAdj"                  "0"     
Option "TVVPosAdj"                  "0"     
Option "TVHStartAdj"                "0"     
Option "TVColorAdj"                 "0"     
Option "GammaCorrectionI"           "0x00000000"
Option "GammaCorrectionII"          "0x00000000"

# === OpenGL specific profiles/settings ===

Option "Capabilities"               "0x00000000"
Option "CapabilitiesEx"             "0x00000000"

# === Video Overlay for the Xv extension ===

Option "VideoOverlay"               "on"

# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically

Option "OpenGLOverlay"              "on"

# === Center Mode (Laptops only) ===

Option "CenterMode"                 "off"

# === Pseudo Color Visuals (8-bit visuals) ===

Option "PseudoColorVisuals"         "off"

# === QBS Management ===

Option "Stereo"                     "off"
Option "StereoSyncEnable"           "1"

# === FSAA Management ===

Option "FSAAEnable"                 "no"
Option "FSAAScale"                  "1"
Option "FSAADisableGamma"           "no"
Option "FSAACustomizeMSPos"         "no"
Option "FSAAMSPosX0"                "0.000000"
Option "FSAAMSPosY0"                "0.000000"
Option "FSAAMSPosX1"                "0.000000"
Option "FSAAMSPosY1"                "0.000000"
Option "FSAAMSPosX2"                "0.000000"
Option "FSAAMSPosY2"                "0.000000"
Option "FSAAMSPosX3"                "0.000000"
Option "FSAAMSPosY3"                "0.000000"
Option "FSAAMSPosX4"                "0.000000"
Option "FSAAMSPosY4"                "0.000000"
Option "FSAAMSPosX5"                "0.000000"
Option "FSAAMSPosY5"                "0.000000"

# === Misc Options ===

Option "UseFastTLS"                 "0"
Option "BlockSignalsOnLock"         "on"
Option "UseInternalAGPGART"         "yes"
Option "ForceGenericCPU"            "no"
BusID "PCI:1:0:0"    # vendor=1002, device=5460
Screen 0

EndSection

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

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.

Section "Screen"

Identifier  "Screen0"
Device      "ATI Graphics Adapter"
Monitor     "Monitor0"
DefaultDepth 24
#Option "backingstore"

SubSection "Display"
Depth      24
Modes      "1440x900" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480" 
EndSubSection

EndSection

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

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

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

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.

Screen "Screen0"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

InputDevice"ALPS Touchpad"
InputDevice"USB Mouse"
InputDevice "Keyboard1" "CoreKeyboard"

EndSection

### EOF ###