Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO configure ati mobility cards for xfree/xorg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
siro
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2004
Posts: 102

PostPosted: Wed Jun 09, 2004 8:38 am    Post subject: HOWTO configure ati mobility cards for xfree/xorg Reply with quote

Ok, there are loads of threads about this and finally i found a configuration that works for most people i talked to. If it doesnt work for you please let me know and ill try to fix it.

My systems got a ATI Mobility 9600 card and i use a 2.6 kernel but i know some people with other ati cards made them work with this config too. (know nothing about 2.4 kernels)

1) Compile your kernel with NO drm support. Yep i said NO DRM. Dont know exactly why but it doesnt work with it.

2) Emerge XFree/Xorg if you havent done it yet

3) emerge ati-drivers and run fglrxconfig. The main problem with these cards is that it will generate a config file that doesnt work. Now ill post an xorg.conf file that works for me. Pay attention to the monitor section, specially to the HorizSDync and the modeline lines, it wont look nice if you leave the default modelines and wont work at all if the HorizSYnc is not set right.

Code:

# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
Load "dbe" # Double buffer extension

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

Load "type1"
Load "freetype"

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

EndSection

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

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

FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/truetype/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"

# ModulePath "/usr/X11R6/lib/modules"

EndSection

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

Section "ServerFlags"
EndSection

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

Section "InputDevice"
Identifier "Keyboard0"
Driver "Keyboard"

Option "AutoRepeat" "500 30"

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


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection


Section "InputDevice"
Identifier "Mouse1"
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 330 210
Option "DPMS"

HorizSync 31.5 - 110.0
VertRefresh 28 - 90

Modeline "1920x1200" 161.750000 1920 2020 2052 2184 1200 1202 1208 1235 -HSync -VSync
EndSection


# === ATI device section ===

Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"

# ### generic DRI settings ###
# === disable PnP Monitor ===
Option "NoDDC"
Option "NoDDC1"
Option "NoDDC2"
# === 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" "0x00000100"
Option "MonitorLayout" "AUTO, AUTO"
Option "IgnoreEDID" "false"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
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 ===
##kj Option "VideoOverlay" "on"
Option "VideoOverlay" "off"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
##kj Option "OpenGLOverlay" "off"
Option "OpenGLOverlay" "off"
# === Center Mode (Laptops only) ===
Option "CenterMode" "on"
# === Pseudo Color Visuals (8-bit visuals) ===
Option "PseudoColorVisuals" "off"
# === QBS Management ===
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
# === FSAA Management ===
Option "FSAAEnable" "Yes"
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"
Option "KernelModuleParm" "agplock=0" # AGP locked user pages: disabled
BusID "PCI:1:0:0" # vendor=1002, device=4e50
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

Subsection "Display"
Depth 24
Virtual 1920 1200
ViewPort 0 0 # initial origin if mode is smaller than desktop
EndSubsection
EndSection

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

Section "ServerLayout"
Identifier "Server Layout"
Screen "Screen0"
InputDevice "Mouse0" "PS/2 Mouse -> Touchpad"
InputDevice "Mouse1" "USB Mouse"
InputDevice "Keyboard0" "CoreKeyboard"

Option "Xinerama" "off"
EndSection

# **********************************************************************
# DRI Section
# **********************************************************************
Section "dri"
Mode 0666
EndSection


5) When i set OpenGLOverlay to on the xserver suddenly shuts down; this happens in my system but i know people that left it on and it worked fine for them -> when you have a working system i suggest you play a bit with the settings.

6) In case you use xorg, after running fglrxconfig you will see that just renaming the config file it creates to xorg and tweaking the Graphics Device settings doesnt work. You will have to change the font paths: change the "X11R6/lib/X11" for a "share" in all the font paths and it should work fine.

7) Now startx and hope for the best ...
7.1) You open a terminal and run glxgears and get a score about 20000 -> it works :)
7.2) glxgears crashes -> check the config again and if its just like the one i posted post you xorg.0.log and ill try to help.
7.3) You get a very low score in glxgears (about 300/400) -> probably dri is not working for you, make sure your card has acceleration capabilities and is it does just go to 7.2 and suppose glxgears crashes==true :)

I took the config file from www.jelmoni.com/linux/dell_8600_install.html
Its just for a Dell Inspiron 8600 so the monitor settings and the modeline may be different for your system. If you dont know what to put there first try to startx without a modeline (so it tries the default ones) but if that doesnt work you will have to search a bit in the forums or maybe in google.

I hope it helped.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum