### version of /etc/X11/xorg.conf
### on Dell Latitude D610 laptop running fedora 8 with opensource ati graphics driver
### xorg-x11-drv-ati (originally xorg-x11-drv-ati-6.7.195-3.fc8.i386 then updated)
###
### After installing the driver I started up X11 without an xorg.conf file
### to see if the system would configure itself, which it did.
### So I then ran 'Xorg -configure' which generated a sample xorg.conf file in
### the /root directory. I copied that across to /etc/X11/xorg.conf and then
### edited it to suit my needs (e.g. swapping CTRL and CAPS-Lock keys, and
### ensuring that this option was included for the touchpad:
###    Option      "Emulate3Buttons" "yes"
###
### I had previously tried the proprietary ATI fglrx driver, which made the glxgears
### demo run very quickly allowing the mouse keys to be used to control it.
### The xorg-x11-drv-ati driver did not do that so well, running at about a
### third of the speed, but it interacts much better with xrandr for enabling
### an external display or projector to be used, so I decided to stick with it.
### For more information see
###     http://www.cs.bham.ac.uk/~axs/laptop/
###     http://www.cs.bham.ac.uk/~axs/laptop/external-display.html
###

Section "ServerLayout"
    Identifier     "X.orgConfigured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    #Touchpad
    InputDevice    "Synaptics" "CorePointer"
#
## The Dell has a trackpoint device on the keyboard. This does not seem
## to be needed for it to work.
#   InputDevice    "TrackPoint"
#   InputDevice    "TrackPoint" "AlwaysCore"  "false"
    InputDevice    "Mouse0" "AlwaysCore"  "true"
EndSection

### should this be turned on??
## Section "ServerFlags"
##  Option      "AIGLX" "on"
## EndSection

### not sure how much of this is still needed.
Section "Files"
    RgbPath      "/usr/share/X11/rgb"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "catalogue:/etc/X11/fontpath.d"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "xtrap"
    Load  "dri"
    Load  "extmod"
    Load  "dbe"
    Load  "glx"
    Load  "record"
    Load  "GLcore"
EndSection

Section "InputDevice"
    ## Keyboard
    # Now done at boot time (AS)
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option      "XkbModel" "pc105"
    ## change the following to suit your keyboard.
    Option      "XkbLayout" "gb"
    #
    # If you'd like to switch the positions of your capslock and
    # control keys, use:
    Option      "XkbOptions" "ctrl:swapcaps"
    # Or if you just want both to be control, use:
    #   Option  "XkbOptions"    "ctrl:nocaps"
    # How to control autorepeat delay and speed
    Option      "AutoRepeat" "500 30"
EndSection

### The synaptic settings support using the right hand edge of the
### touch pad for scrolling vertically and the bottom edge for scrolling
### horizontally.
Section "InputDevice"
    ## touchpad
    Identifier  "Synaptics"
    Driver      "synaptics"
#   Option      "Device" "/dev/input/mice"
    Option      "Device" "/dev/input/mice/mouse0"
    Option      "Protocol" "auto-dev"
    Option      "Emulate3Buttons" "yes"
    Option      "LeftEdge" "120"
    Option      "RightEdge" "830"
    Option      "TopEdge" "120"
    Option      "BottomEdge" "650"
    Option      "FingerLow" "14"
    Option      "FingerHigh" "15"
    Option      "MaxTapMove" "110"
    Option      "VertScrollDelta" "20"
    Option      "HorizScrollDelta" "20"
    Option      "MinSpeed" "0.3"
    Option      "MaxSpeed" "0.75"
    Option      "SHMConfig" "on"
##  Option      "GuestMouseOff" "False"
    Option      "GuestMouseOff" "True"
    Option      "SendCoreEvents" "False"
EndSection

Section "InputDevice"
    ### this supports a USB mouse with scroll wheel doubling as middle button
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection


## I don't know where this comes from
Section "Monitor"
    #DisplaySize      290   210 # mm
    Identifier   "Monitor0"
    VendorName   "SEC"
    ModelName    "3450"
EndSection

### this was mostly generated by Xorg -configure:
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"               # [<bool>]
        #Option     "SWcursor"              # [<bool>]
        #Option     "Dac6Bit"               # [<bool>]
        #Option     "Dac8Bit"               # [<bool>]
        #Option     "BusType"               # [<str>]
        #Option     "CPPIOMode"             # [<bool>]
        #Option     "CPusecTimeout"         # <i>
        #Option     "AGPMode"               # <i>
        #Option     "AGPFastWrite"          # [<bool>]
        #Option     "AGPSize"               # <i>
        #Option     "GARTSize"              # <i>
        #Option     "RingSize"              # <i>
        #Option     "BufferSize"            # <i>
        #Option     "EnableDepthMoves"      # [<bool>]
        #Option     "EnablePageFlip"        # [<bool>]
        #Option     "NoBackBuffer"          # [<bool>]
        #Option     "DMAForXv"              # [<bool>]
        #Option     "FBTexPercent"          # <i>
        #Option     "DepthBits"             # <i>
        #Option     "PCIAPERSize"           # <i>
        #Option     "AccelDFS"              # [<bool>]
        #Option     "DDCMode"               # [<bool>]
        #Option     "IgnoreEDID"            # [<bool>]
        #Option     "DisplayPriority"       # [<str>]
        #Option     "PanelSize"             # [<str>]
        #Option     "ForceMinDotClock"      # <freq>
        #Option     "ColorTiling"           # [<bool>]
        #Option     "VideoKey"              # <i>
        #Option     "RageTheatreCrystal"    # <i>
        #Option     "RageTheatreTunerPort"  # <i>
        #Option     "RageTheatreCompositePort"  # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"             # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "ScalerWidth"           # <i>
        #Option     "RenderAccel"           # [<bool>]
        #Option     "SubPixelOrder"         # [<str>]
        #Option     "ShowCache"             # [<bool>]
        #Option     "DynamicClocks"         # [<bool>]
        #Option     "VGAAccess"             # [<bool>]
        #Option     "ReverseDDC"            # [<bool>]
        #Option     "LVDSProbePLL"          # [<bool>]
        #Option     "AccelMethod"           # <str>
        #Option     "DRI"                   # [<bool>]
        #Option     "ConnectorTable"        # <str>
        #Option     "DefaultConnectorTable"     # [<bool>]
        #Option     "DefaultTMDSPLL"        # [<bool>]
        #Option     "LVDSBiosNativeMode"    # [<bool>]
    Identifier  "Card0"
    Driver      "ati"
    VendorName  "ATI Technologies Inc"
    BoardName   "M22 [Radeon Mobility M300]"
    #Option     "OpenGLOverlay" "off"
    #Option     "VideoOverlay" "on"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        #Modes    "1400x1050" "1280x1024" "1280x960" "1152x864"
        Modes     "1280x1024" "1280x960" "1152x864"
    EndSubSection
EndSection

### The following was generated by xrandr running with a 1280x1024 external
### display plugged in to the external VGA port. It gives information
### about possible resolutions
###
## [lap610]# xrandr
## Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1400 x 1200
## VGA-0 connected (normal left inverted right x axis y axis)
##    1280x1024      60.0 +   75.0     59.9
##    1280x960       59.9
##    1152x864       75.0     74.8
##    1024x768       75.1     70.1     60.0
##    832x624        74.6
##    800x600        72.2     75.0     60.3     56.2
##    640x480        75.0     72.8     66.7     60.0
##    720x400        70.1
## DVI-0 disconnected (normal left inverted right x axis y axis)
## LVDS connected 1280x1024+0+0 (normal left inverted right x axis y axis)
## 0mm x 0mm
##    1280x1024      59.9*+
##    1400x1050      60.0
##    1280x960       59.9
##    1360x768       59.8     60.0
##    1280x800       60.0
##    1152x864       60.0     60.0
##    1280x768       60.0
##    1280x720       60.0
##    1024x768       60.0
##    800x600        60.3
##    640x480        59.9
## S-video disconnected (normal left inverted right x axis y axis)
## [lap610]#