Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Radeon R100 QD [Radeon 7200] 3D howto..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
OhSh33t
Apprentice
Apprentice


Joined: 03 Sep 2003
Posts: 169
Location: South-Seattle Park

PostPosted: Wed Mar 24, 2004 5:00 am    Post subject: Radeon R100 QD [Radeon 7200] 3D howto.. Reply with quote

I've had several people email me over that last 6 months asking me to stick this in the "Documentation Tips and Tricks" Forum. So here it is.

I'm long-winded, so this is a bit of a read.
I just spent about 6hrs thumping away at getting my Radeon 7200 to work correctly.
Heh..I think the wifes a wee-bit jealous..Gentoo requires allot of my time.... Might I also add, that this is a Radeon 7200. So I don't know if my stuff will apply to anything other than the 7200 specific model. All of my trial and error to get this working was taken from many different postings on this forum.

!!!!!!
One warning first.
!!!!!!

I had to recompile my Kernel which caused me to have-ta recompile a few existing pkgs again. Just letting ya know ahead of time. I run shorewall firewall and I basically had to remerge iptables again.

Anyways,

Heh..Heh...
Please make sure you read through this whole posting before trying stuff as you read. (for reasons to long to go into on this posting)

My card specifically:
ATI Technologies Inc Radeon R100 QD [Radeon 7200] 32MB; DDR; AGP 4x/2x; version 2.0

General system specs:
Code:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
x11-base/xfree-4.3.0-r5
x11-base/xfree-drm-4.3.0-r7

There's obviously allot more to add but that's the base. If more is needed please let me know. :D

Check list: (Starting from what I consider most important)

1>
I unmerged my ati-drivers.

2>
Kernel setup... I use "genkernel --config" because this is what I used intially to install gentoo-sources.

You need to make sure that you have your processor specified correctly in your Kerenl setup. I'm phyically at a PIII coppermine and my processor was set at (i386). (i386 wont let you do 3d rendering much less a i486 from what others say in the forum) Being a noobian I thought that Genkernel automatically new to choose PIII. Not the case. [edit] I stopped using Genkernel a long time ago. Manually compiling is the only way to go. Becasue of the buggy Genkernel release at the time I was forced to learn how to manually compile. Thanks Genkernel. Heh.. You Bloated Pig. "We'll just choose everything in the kernel. That'll fix all the problems".. [/edit]

2a>
Listed under:

Code:

Processor type and features>>Processor Family>>Specify your processor type.

(X) Pentium-III/Celeron(Coppermine)(gcc>31)

[*] MTRR (Memory Type Range Register) support = "y"

2b>
I chose "m" for /dev/agpgart as a module. Wasn't having luck choosing "y".
Chose "n" for DRI or listed as "Direct Rendering Manager" (XFree 86 DRI support) Heh.. don't let this scare ya. This needs to happen and XFree-drm will take care of this later on..Heh...Heh...

My chipset was already compiled directly into the Kernel so I didn't have to worry about that part.

Listed under:
Character devices --->down towards the bottom..
<M> /dev/agpgart (AGP Support) and
[ ] Direct Rendering Manager (XFree86 DRI support) >>choose "n".


2c>
Listed under:
Console drivers --->
Frame-buffer support --->
If you have: [*] Support for frame buffer devices (EXPERIMENTAL) then make sure that you hit "n" for < > ATI Radeon display support (EXPERIMENTAL)

Exit out and "Yes" save changes....

My screen turned black when the kernel was finished compiling..Scared the bajesus out-a-me because not matter what I tried I couldn't get a console to come up.. I was forced to manually power off at this point. Good to go though. Logged back in just fine. I think this is where the Ext3 and Resierfs came in and saved my bacon.. Heh..Heh...

These steps were very important for me.
3a>
From the console as su:
Code:

root@deadmeat / # VIDEO_CARDS="radeon" emerge xfree-drm

3b>
Modify XF86Config:

But just to let you know DRI wouldn't happen if my Section "Screen""DefaultDepth was set to "24". This had to be at "16"
Next........
For what ever reason I had to change the name of my Driver from "ati" to "radeon" under the "Section Device"
Next.......
And I had to manually add:
Section "DRI"
Mode 0666
EndSection

You should notice that I also manually modified my Section "Device" and added a few Options after doing some extensive research.

My XF86Config follows.
Code:

*****************************************************
root@deadmeat / # cat /etc/X11/XF86Config
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "glx"
Load "xtrap"
Load "type1"
Load "speedo"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "microsoft"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
#DisplaySize 360 270 # mm
Identifier "Monitor0"
VendorName "VSC"
ModelName "E790-3"
Option "DPMS"
ModeLine "1280x1024/100Hz" 181.75 1280 1312 1440 1696 1024 1031 1046 1072 -HSync -VSync
ModeLine "1024x768/100Hz" 115.5 1024 1056 1248 1440 768 771 781 802 -HSync -VSync
EndSection

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 "ForcePCIMode" # [<bool>]
#Option "CPPIOMode" # [<bool>]
#Option "CPusecTimeout" # <i>
Option "AGPMode" "4"
Option "AGPFastWrite" "True"
#Option "AGPSize" # <i>
#Option "RingSize" # <i>
#Option "BufferSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
Option "EnablePageFlip" "True"
#Option "NoBackBuffer" # [<bool>]
#Option "DRIReinit" # [<bool>]
#Option "PanelOff" # [<bool>]
#Option "DDCMode" # [<bool>]
#Option "MonitorLayout" # [<str>]
#Option "IgnoreEDID" # [<bool>]
#Option "OverlayOnCRTC2" # [<bool>]
#Option "CloneMode" # [<str>]
#Option "CloneHSync" # [<str>]
#Option "CloneVRefresh" # [<str>]
#Option "UseFBDev" # [<bool>]
#Option "VideoKey" # <i>
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "Radeon R100 QD [Radeon 7200]"
BusID "PCI:1:0:0"
EndSection

Section "DRI"
Mode 0666
EndSection


Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16

SubSection "Display"
Depth 8
Modes "1024x768/100Hz" "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768/100Hz" "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768/100Hz" "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
EndSection


Section "ServerFlags"

EndSection

***************************************************

Edit /etc/modules.autoload.d/kernel-2.4
Very important.
I had to have "agpgart" listed first before "radeon" or AGP wouldn't load.

My /etc/modules.autoload.d/kernel-2.4 config file:
Code:

******************************************
# /etc/modules.autoload.d/kernel-2.4: kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.4,v 1.1 2003/03/09 09:06:23 azarah Exp $
#
# Note that this file is for 2.4 kernels. If you need different modules
# for a 2.5 kernel, you can create /etc/modules.autoload.d/kernel-2.5
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line. Comments begin with # and
# are ignored. Read man modules.autoload for additional details.

# For example:
# 3c59x
agpgart
radeon
*******************************************************

You can Reboot, logout and/or Unsure of any other way. Maybe "Ctrl-Alt-F1" and then "Ctrl-Alt-F7" I used this trick to fix my mouse when it would would freeze up..suddenly unfrozen...

As su:
Code:

modprobe agpgart
modprobe radeon

lsmod .....should list both of the above. If they are listed but listed as <unused> then something needs to be troubleshot. My agpgart was listed as <unused> and AGP would actually never load and DRI wouldn't work of course until I listed agpgart above radeon in my module.autoload.d/kernel-2.4 config file.


Things/tools that I consistently used every time I would try something different until I finally got 3D working.
Code:

cat /var/log/kdm.log

cat /var/log/XFree86.0.log

The tail end of both of these usually tells all..

As non-root user from console terminal:
Code:

/usr/X11R6/bin/glxgears
/usr/X11R6/bin/glxinfo

When my card's working:
Code:

toejam@deadmeat / $ /usr/X11R6/bin/glxgears
5967 frames in 5.0 seconds = 1193.400 FPS
6630 frames in 5.0 seconds = 1326.000 FPS
6625 frames in 5.0 seconds = 1325.000 FPS
6534 frames in 5.0 seconds = 1306.800 FPS
6552 frames in 5.0 seconds = 1310.400 FPS
6546 frames in 5.0 seconds = 1309.200 FPS
6392 frames in 5.0 seconds = 1278.400 FPS

When the above isn't working correctly I would average around 1000 frames at 160 FPS
Code:

toejam@deadmeat / $ /usr/X11R6/bin/glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 4x x86/MMX/SSE TCL
OpenGL version string: 1.2 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_clip_volume_hint, GL_EXT_convolution, GL_EXT_compiled_vertex_array,
GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_secondary_color, GL_EXT_texture3D,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_object, GL_EXT_texture_lod_bias, GL_EXT_vertex_array,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat, GL_MESA_window_pos,
GL_NV_blend_square, GL_NV_texgen_reflection, GL_SGI_color_matrix,
GL_SGI_color_table, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x24 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 None
0x25 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x26 16 tc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x27 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x28 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 None
0x29 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x2a 16 tc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x2b 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2c 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 0 0 0 0 0 0 None
0x2d 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x2e 16 dc 0 16 0 r . . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
0x2f 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x30 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 0 0 0 0 0 0 None
0x31 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 Slow
0x32 16 dc 0 16 0 r y . 5 6 5 0 0 16 8 16 16 16 0 0 0 Slow
**********************************************************

When this isn't working correctly "glxinfo" will spit some info out at the very head of the output.

If anyone can give me any other suggestions as to how to squeeze some more juice out of what I already have done that would be awesome.

Hope this helps those running Ancient (actually not so long ago) purchased equipment..
_________________
JB
Back to top
View user's profile Send private message
HardenCoonor
n00b
n00b


Joined: 19 Feb 2004
Posts: 54

PostPosted: Fri Mar 26, 2004 1:29 pm    Post subject: Reply with quote

Quote:
If anyone can give me any other suggestions as to how to squeeze some more juice out of what I already have done that would be awesome.


I hope i can.

First, one may use 2.6 kernel. I have a radeon 7500, which most probably uses the same chip as the 7200, maybe just shrinked and with different memory.

The new kernel is quite stable, and the new schedulers and the builtin 4.3-dri support makes them good choices.

Another point is using xfree86-4.3.99... , which includes enhanced dri-support for the radeon chipsets 7###, such as 7500 or 7200.

The string
Quote:
OpenGL version string: 1.2 Mesa 4.0.4
will have a 6.0 instead of 4.0.4 in it, and there are much more OpenGL extensions implemented, making the list probably twice as long.

Of course, xfree-4.3.99.. is masked, so use and unmask at your own risk.

In the (hopefully near) future the Xserver from freedesktop might bring along some perfomance boosts for radeon 7### owners, since it seems to include the newest dri-stuff.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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