Xorg.conf for Gateway M460

I spent my free time today tweaking my Ubuntu Feisty 7.04 xorg.conf file to death. I have to say, the “fglrx” driver absolutely sucks butt for the Radeon Mobility X600 video card. There’s just no point in using it. Even with default settings, you get black regions in Wine and render-errors in Firefox due to VRAM randomly being overwritten thanks to piss-poor management.

The default “ati” driver Ubuntu gives you sucks equally hard. It has no 3D support and lags terribly when doing very complicated tasks like scrolling. The winner is definitely the “radeon” driver. I get 600fps on glxgears with no screen artifacts.

Section "Files"
    FontPath    "/usr/share/X11/fonts/misc"
    #FontPath   "/usr/share/X11/fonts/cyrillic"
    FontPath    "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/X11/fonts/Type1"
    FontPath    "/usr/share/X11/fonts/100dpi"
    FontPath    "/usr/share/X11/fonts/75dpi"
    #FontPath   "/usr/share/fonts/X11/misc"
    # path to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    # path to windows fonts
    FontPath    "/usr/share/fonts/en_US/TrueType"
    FontPath    "/usr/share/fonts/ja_JP/TrueType"
    FontPath    "/usr/share/fonts/ko_KR/TrueType"
    FontPath    "/usr/share/fonts/zh_CN/TrueType"
    FontPath    "/usr/share/fonts/zh_TW/TrueType"
    # path to VeraSansYuanTi
    FontPath    "/usr/share/fonts/VeraSansYuanTi"
EndSection
Section "Module"
    Load        "dbe"
    Load        "extmod"
    SubSection  "extmod"
        Option  "omit xfree86-dga"
    EndSubSection
    Load        "glx"
    Load        "freetype"
    Load        "type1"
    Load        "dri"
EndSection
Section "InputDevice"
    Identifier  "Generic Keyboard"
    Driver      "kbd"
    Option      "CoreKeyboard"
    Option      "XkbRules" "xorg"
    Option      "XkbModel" "pc105"
    Option      "XkbLayout" "us"
    Option      "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
    Identifier  "Configured Mouse"
    Driver      "mouse"
    Option      "CorePointer"
    Option      "Device" "/dev/input/mice"
    Option      "Protocol" "ExplorerPS/2"
    Option      "ZAxisMapping" "4 5"
    Option      "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
    Identifier  "Synaptics Touchpad"
    Driver      "synaptics"
    Option      "SendCoreEvents" "true"
    Option      "Device" "/dev/psaux"
    Option      "Protocol" "auto-dev"
    Option      "HorizScrollDelta" "0"
EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device" "/dev/wacom"   # Change to 
                                        # /dev/input/event
                                        # for USB
  Option        "Type" "stylus"
  Option        "ForceDevice" "ISDV4"   # Tablet PC ONLY
EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device" "/dev/wacom"   # Change to 
                                        # /dev/input/event
                                        # for USB
  Option        "Type" "eraser"
  Option        "ForceDevice" "ISDV4"   # Tablet PC ONLY
EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device" "/dev/wacom"   # Change to 
                                        # /dev/input/event
                                        # for USB
  Option        "Type" "cursor"
  Option        "ForceDevice" "ISDV4"   # Tablet PC ONLY
EndSection
Section "Device"
    Identifier  "ATI Technologies, Inc. M24 1P [Radeon Mobility X600]”
    Driver      ”radeon”
    Option      ”SWcursor” ”off”
    Option      ”EnablePageFlip” ”on”
    Option      ”AGPMode” ”8″
    Option      ”AGPFastWrite” ”yes”
    Option      ”AccelMethod” ”XAA”
    Option      ”ColorTiling” ”on”
    Option      ”DynamicClocks” ”on”
    Option      ”XAANoOffscreenPixmaps”
    Option      ”RenderAccel” ”true”
    Option      ”no_accel” ”no”
    BusID       ”PCI:1:0:0″
EndSection
Section ”Monitor”
    Identifier  ”Generic Monitor”
    DisplaySize 270.933 169.333 #this line changes
    HorizSync   30-67
    VertRefresh 50-75
    Option      ”dpms”
EndSection
Section ”Screen”
    Identifier  ”Default Screen”
    Device      ”ATI Technologies, Inc. M24 1P [Radeon Mobility X600]”
    Monitor     ”Generic Monitor”
    DefaultDepth 24
    SubSection  ”Display”
        Depth   1
        Modes   ”1280×800″
    EndSubSection
    SubSection  ”Display”
        Depth   4
        Modes   ”1280×800″
    EndSubSection
    SubSection  ”Display”
        Depth   8
        Modes   ”1280×800″
    EndSubSection
    SubSection  ”Display”
        Depth   15
        Modes   ”1280×800″
    EndSubSection
    SubSection  ”Display”
        Depth   16
        Modes   ”1280×800″
    EndSubSection
    SubSection  ”Display”
        Depth   24
        Modes   ”1280×800″
    EndSubSection
EndSection
Section ”ServerLayout”
    Identifier  ”Default Layout”
    Screen      ”Default Screen”
    InputDevice ”Generic Keyboard”
    InputDevice ”Configured Mouse”
    InputDevice ”stylus” ”SendCoreEvents”
    InputDevice ”cursor” ”SendCoreEvents”
    InputDevice ”eraser” ”SendCoreEvents”
    InputDevice ”Synaptics Touchpad”
EndSection
Section ”DRI”
    Mode        0666
EndSection
Section ”Extensions”
    Option      ”Composite” ”Enable”
EndSection

Edit: Section Monitor->DisplaySize has been changed. Thanks byuu! Somehow I did totally wrong math for the vertical range. If you change the value to the new one, you will have real 120dpi fonts.


About this entry