[TriLUG] ATI Rage XL onboard graphics in Debian Sarge

Alan Porter porter at trilug.org
Wed May 25 14:28:14 EDT 2005


>   Anyone have some experience with ATI's Rage XL chipset in an onboard
> configuration in Debian?  I tried the fglrx package from ATI, ...

You're on the right track.

I have an HP laptop with an ATI Mobility Radeon 9600, running Debian.
I also downloaded the fglrx package, converted it to a .deb using 'alias',
installed it with '--force-overwrite' to get by the libmesa conflict.

I made sure to 'rmmod radeon' and 'modprobe fglrx'.

I did a lot of tweaking to my XF86Config file.  I managed to get it to
work with one "screen" (if I plug in an external monitor, I get the same
image on the laptop LCD and the external monitor).  I was not able to
get two independent screens to work using the FGLRX driver.  I *could*
get dual-head working with the open-source 'radeon' driver, but it was
not accelerated.

This is my XF86Config file...


# File: XF86Config-4
# File generated by fglrxconfig (C) ATI Research, a substitute for xf86config.
# Modified by Alan



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



Section "dri"
    # Access to OpenGL ICD is allowed for all users:
    Mode 0666
    # Access to OpenGL ICD is restricted to a specific user group:
    #    Group 100    # users
    #    Mode 0660
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"

    Load        "ati"
    Load        "radeon"

    # This loads the GLX module
    Load        "glx"   # libglx.a
    Load        "dri"   # libdri.a

EndSection



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



Section "Files"

    # The location of the RGB database.  Note, this is the name of the
    # file minus the extension (like ".txt" or ".db").  There is normally
    # no need to change the default.

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

    # Multiple FontPath entries are allowed (which are concatenated together),
    # as well as specifying multiple comma-separated entries in one FontPath
    # command (or a combination of both methods)
    #
    # If you don't have a floating point coprocessor and emacs, Mosaic or other
    # programs take long to start up, try moving the Type1 and Speedo directory
    # to the end of this list (or comment them out).
    #

    #    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/"

    # The module search path.  The default path is shown here.

    #    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



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



Section "InputDevice"

    Identifier	"generic_keyboard"
    Driver	"Keyboard"
    # For most OSs the protocol can be omitted (it defaults to "Standard").
    # When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
    # uncomment the following line.

    #    Option "Protocol"   "Xqueue"

    Option "AutoRepeat" "500 30"

    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
    #    Option "Xleds"      "1 2 3"

    #    Option "LeftAlt"    "Meta"
    #    Option "RightAlt"   "ModeShift"

    # To customise the XKB settings to suit your keyboard, modify the
    # lines below (which are the defaults).  For example, for a non-U.S.
    # keyboard, you will probably want to use:
    #    Option "XkbModel"   "pc102"
    # If you have a US Microsoft Natural keyboard, you can use:
    #    Option "XkbModel"   "microsoft"
    #
    # Then to change the language, change the Layout setting.
    # For example, a german layout can be obtained with:
    #    Option "XkbLayout"  "de"
    # or:
    #    Option "XkbLayout"  "de"
    #    Option "XkbVariant" "nodeadkeys"
    #
    # If you'd like to switch the positions of your capslock and
    # control keys, use:
    #    Option "XkbOptions" "ctrl:swapcaps"

    # These are the default XKB settings for XFree86
    #    Option "XkbRules"   "xfree86"
    #    Option "XkbModel"   "pc101"
    #    Option "XkbLayout"  "us"
    #    Option "XkbVariant" ""
    #    Option "XkbOptions" ""

    #    Option "XkbDisable"

    Option "XkbRules"	"xfree86"
    Option "XkbModel"	"pc104"
    Option "XkbLayout"	"us"

EndSection



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



Section "InputDevice"

    # Identifier and driver

    Identifier	"touch_pad"
    Driver "mouse"
    Option "Protocol"       "IMPS/2"
    Option "Device"         "/dev/input/mouse0"
    Option "ZAxisMapping"   "4 5"
    Option "Buttons"        "5"

    # When using XQUEUE, comment out the above two lines, and uncomment
    # the following line.

    #    Option "Protocol"   "Xqueue"

    # Baudrate and SampleRate are only for some Logitech mice. In
    # almost every case these lines should be omitted.

    #    Option "BaudRate"   "9600"
    #    Option "SampleRate" "150"

    # Emulate3Buttons is an option for 2-button Microsoft mice
    # Emulate3Timeout is the timeout in milliseconds (default is 50ms)

     Option "Emulate3Buttons"
     Option "Emulate3Timeout"    "50"

    # ChordMiddle is an option for some 3-button Logitech mice

    #    Option "ChordMiddle"

EndSection



Section "InputDevice"
    Identifier  "usb_mouse"
    Driver      "mouse"
    Option      "Protocol"      "IMPS/2"
    Option      "Device"        "/dev/input/mice"
    Option      "ZAxisMapping"  "4 5"
    Option      "Buttons"       "5"
    Option      "Accel"         "off"
EndSection



# **********************************************************************
# Monitor section
# Any number of monitor sections may be present
# **********************************************************************



Section "Monitor"
    Identifier  "Monitor_LCD"
    HorizSync   31.5 - 48.4
    VertRefresh 60 - 75
    Option "DPMS"
EndSection



Section "Monitor"
    Identifier  "Monitor_External"
    HorizSync   31.5 - 64.0
    VertRefresh 60 - 75
    #Option "DPMS"
EndSection



Section "Monitor"
    Identifier   "TV"
    HorizSync    30-40
    VertRefresh  60
EndSection



# **********************************************************************
# Graphics device section
# Any number of graphics device sections may be present
# **********************************************************************



# === ATI device section ===



Section "Device"
    Identifier                          "fglrx_0"
    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 ===
    # disable DRI mtrr mapper, driver has its own code for mtrr
    Option "mtrr"                       "off"
    # ### FireGL DDX driver module specific settings ###
    # === Screen Management ===
    Option "DesktopSetup"               "0x00000100"
    Option "MonitorLayout"              "LVDS, CRT"

    # if cloning on an external monitor, use this resolution
    Option "CloneMode"                  "1280x1024"
    Option "HSync2"                     "31.5 - 91.1"
    Option "VRefresh2"                  "60 - 85"

    Option "IgnoreEDID"                 "off"
    Option "ScreenOverlap"              "0"
    # === TV-out Management ===
    Option "NoTV"                       "yes"
    Option "TVStandard"                 "NTSC-M"
    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"
    # === 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"              "off"
    # === 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:5:0"    # vendor=1002, device=4e50
    Screen 0
EndSection



Section "Device"
    Identifier                          "fglrx_1"
    Driver                              "fglrx"
    BusID "PCI:1:5:0"    # vendor=1002, device=4e50
    Screen 1
EndSection



Section "Device"
    Identifier                          "radeon_0"
    Driver                              "radeon"
    Screen 0
EndSection



Section "Device"
    Identifier                          "radeon_1"
    Driver                              "radeon"
    Screen 1
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  "Screen_LCD"
    Device      "fglrx_0"
    Monitor     "Monitor_LCD"
    DefaultDepth 24
    Option "backingstore" "on"

    Subsection "Display"
        Depth       24
        Modes       "1680x1050"  "1400x1050"  "1280x1024"  "1024x768"  "800x600"
    EndSubsection
EndSection



Section "Screen"
    Identifier  "Screen_External"
    Device      "fglrx_1"
    Monitor     "Monitor_External"
    DefaultDepth 24
    Option "backingstore" "on"
    SubSection "Display"
        Depth 24
        Modes "1400x1050"  "1280x1024"  "1024x768"  "800x600"
    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 0 "Screen_LCD"
    #Screen 1 "Screen_External" LeftOf "Screen_LCD"

    # 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".

    Option "AllowMouseOpenFail"  "1"
    InputDevice "touch_pad" "CorePointer"
    InputDevice "usb_mouse" "SendCoreEvents"
    InputDevice "generic_keyboard" "CoreKeyboard"


EndSection



### EOF ###








More information about the TriLUG mailing list