Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Guides & Solutions (No Questions)

Guides & Solutions (No Questions) Post your guides here. You can also add your comments to a guide, but don't start a thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2004-05-06, 03:23 PM CDT
Scoob_E's Avatar
Scoob_E Offline
Registered User
 
Join Date: Mar 2004
Location: FLORIDA, USA
Posts: 104
Talking NO LONGER NEEDED: 3D support on an ATI IGP 340m!!!

NOTE: version 6.8 of x.org includes support for IGP series chipsets. I installed yesterday following the directions in the documentation and have my laptop pumping out 3d like a champ (not really a champ only ~400 fps in glxgears - that will need some more work)

This is my first how-to, so feel free to critizize it, make additions, or just tell me I'm full of crap. Have fun....

First let me start by saying this worked for me, however your mileage may vary. Also BACK UP YOUR SYSTEM BEFORE YOU TRY THIS, this is the result of about the thousandth time I have tried this, yet only the first successful attempt. My previous attempts have resulted in failures varying from destroying gnome to not being able to boot X, so you've been warned... this is not for the faint of heart.

Okay, if your still reading this I'll assume your extremely brave and made backups... (no if you haven't backed up your files, GO AND DO IT, or you could find yourself having to learn to burn CDs from the command line very quickly... this is the voice of experience speaking).

Here is the hardware (and software) that I'm using:

A HP Pavilion ze4220 Laptop
1.7ghz (iirc) Celeron
ATI IGP 340M 64mb onboard video
512mb of RAM

Fedora Core 2 Test 3
2.6.5-1.351 kernel
fully up2date (as of 5/6/04)

This should work with Fedora Core 1 with a 2.4 kernel also, but I'm not quite sure (if someone wants to try it out and let me know that would be great)

And now ladies and gentlemen the feature presentation:

NOTE: You may need to install some development packages including kernel-source and xorg-X11-devel and any required dependancies. (I usually install all the developement stuff when I install Linux, so I am not sure if this is the complete list... if some one does please post and let me know)

I'll put all the commands to type in brackets ({}) with each command in in its own set of brackets

1.In your home folder make a directory called 3d:
{mkdir ~/3d}

2.Change to the directory you just made:
{cd ~/3d}

3.Get DRI, DRM, and Mesa from CVS (when asked for a password hit enter):
{cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login}
{cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co xc}
{cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/mesa login}
{cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/mesa co Mesa}
{cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login}
{cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri co drm}
This will create 3 new directories: dri, drm, and Mesa.

If you cannot access the CVS (i.e. firewalls, etc.) I have been told that you can download the CVS from these links:

for the Mesa source:
http://freedesktop.org/cgi-bin/viewcvs.cgi/mesa/
and for xc and drm:
http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/

NOTE: If you download from the above links you will get two tarballs. Download them into your 3d folder and extract them
{tar xzvf mesa.tar.gz}
{tar xzvf dri.tar.gz}

Change to the dri directory to compensate for the different directory structure in the tarball (so the rest of the howto should work).
{cd dri}

4.Configure DRI so that it knows where the DRI and Mesa directories are:
Edit xc/xc/config/cf/host.def with your favorite text editor mine is gedit so I ran
{gedit xc/xc/config/cf/host.def}

Now edit the lines that say “#define MesaSrcDir” and “#define DRMSrcDir” to point to the directories just created in the previous step. i.e. my lines were edited to:
#define MesaSrcDir /home/john/3d/Mesa
#define DRMSrcDir /home/john/3d/drm

NOTE: If you are using the tarballs of the cvs the line that I list above as:
#define DRMSrcDir /home/john/3d/drm
would change to:
#define DRMSrcDir /home/john/3d/dri/drm
and the line I list above as:
#define MesaSrcDir /home/john/3d/Mesa
would change to:
#define MesaSrcDir /home/john/3d/mesa/Mesa

This should be the last change to compensate for the difference in getting the cvs from the cvs command and getting it from the tarballs.

5.Now we compile mesa, drm and dri:
{cd xc/xc/}
{make World >& world.log &}

This will save the output of th compile to a file called world.log in the current directory. If you want to watch the compile (I found this the easiest way to know that the compile finished) type:
{tail -f world.log}

When the compile is done hit CTRL+D to exit tail.

6.Check the compile for errors by typing:
{grep '\*\*\*' world.log}

If anything is displayed, you will have to go through world.log and try and trouble shoot your errors (I have no idea what errors you will run into, because this worked on the first try for me)

7.Now we install the files that we just built:
IF YOU ARE USING XFREE86 (this would be people with Fedora Core 1 installed (I haven't tested this so it may or may not work... thats why we made backups remember) simply type as root (i.e. use the su command to become root first):
{make install}

IF YOU ARE USING X.ORG (this is the Fedora Core 2 people) things are a little more complicated so here we go:
First we back up our old X server modules (as root... use su to become root):
{tar cfP /tmp/old-modules.tar /usr/X11R6/lib/modules}

Now we install our new 3d and 2d modules we just built (still as root):
{cp exports/lib/modules/dri/*.so /usr/X11R6/lib/modules/dri}
{cp exports/lib/modules/extensions/lib{glx,GLcore,dri}.a /usr/X11R6/lib/modules/extensions}
{cp exports/lib/modules/linux/libdrm.a /usr/X11R6/lib/modules/linux}
{cp exports/lib/modules/drivers/*_drv.o /usr/X11R6/lib/modules/drivers}



Now we back up Mesa and install the new files (still as root):
{tar cfP /tmp/old-mesa.tar /usr/X11R6/lib/*{GL,Mesa}*}
{cp exports/lib/*{GL,Mesa}* /usr/X11R6/lib}
{ldconfig}

This can be undone (if it doesn't work and only for the x.org method) by typing as root:
{tar xfP /tmp/old-modules.tar}
{tar xfP /tmp/old-mesa.tar}
{ldconfig}

8.Now we need to download the latest DRI kernel module snapshot from: http://www.freedesktop.org/~dri/snapshots/
At the time of writing the file we need is radeon-20040506-linux.i386.tar.bz2, but a new file is released everyday, so its probably best to get the latest file. Download the file to the 3d directory that you created.

9.Change to your 3d directory
{cd ~/3d/}

UnTar the file
{tar xjvf radeon-*-linux.i386.tar.bz2}

Change to the new directory
{cd ./dripkg}

as root run the installer
{./install.sh}

Now it will give you a warning about running the install while X is running, thats okay, just hit enter. The installer found all of my directories just fine so I just had to hit enter every time it told me to (you should to, unless you've done something funky to your system in which case you should now which folders to use).

10.Now its time to edit Xfree86Config or xorg.config (which ever one is in your /etc/X11/ directory) NOTE: You will need to be root to do this. So its su time again.
{cd /etc/X11/}

now open the appropriate file (Xfree86 for Fedora Core 1 and xorg.conf for Fedora Core 2) with your favorite text editor. For me this was:
{gedit /etc/X11/xorg.config}

First make sure that you are loading all the required modules in the “modules” section of the file. If they are not all there (as some of them probably aren't) you'll need to add the ones you are missing from the list below:
Load “GLcore”
Load “glx”
Load “dri”

Now change the video card section to optimize the card. Mine changed from:

Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "Videocard vendor"
BoardName "ATI Radeon (generic)"
EndSection

To:

Section "Device"
Identifier "Videocard0"
Driver "radeon”
VendorName "ATI"
BoardName "Radeon Mobility U2"
VideoRam 65536
BusID "PCI:1:5:0"
Option "AGPMode" "4"
Option "DPMS"
Option "AGPFastWrite" "On"
Option "EnablePageFlip" "On"
EndSection

Now all that should be left is to reboot your computer and enjoy your 3d acceleration.

Thanks to the people working on the DRI modules for one their work to support my chipset, and two the installation how to that I used as the basis for the DRI, DRM, Mesa install section. Also, I would like to thank the author of: http://users.telenet.be/ze5500 whose name I do not know, but his or her site pointed me in the right direction with this how to.

Also I would like to thank everyone on fedoraforum.org for pointing out the shortcoming of my how-to and helping me correct them.

NOTE: I only experienced a 300 fps jump in glxgears, but I can play tuxracer just fine.
NOTE: To play tuxracer your ~/.tuxracer/config file needs to be edited things that you need to change in it are
a. set the fullscreen resolution to 1024x768 (or the resolution you are running X at). (you may not have to do this, but I did)
b. there is a setting to remove the fog... the file says that this is for a RAGE 128, i needed to set this to true so the screen didn't look washed out.

CHANGE LOG:
May 25, 2004 -
Added change log.
Corrected typo (GLcore instead of Glcore). Thanks ogetbilo
Added notes to mitigate the differences between CVS and the CVS tarballs. Thanks momendo

July 9, 2004 -
Corrected typo in instructions for CVS tarballs. Thanks termleech

July 21, 2004 -
Added note to make sure that development packages are installed first. Thanks magotes
Also would like to thank Matthew.east for the links to the CVS tarballs (belatedly).
Added thank you's to the change log... (finally... better late than never I guess)

Last edited by Scoob_E; 2004-09-10 at 08:36 AM CDT. Reason: DRI CVS tree changes break the How-To
Reply With Quote
  #2  
Old 2004-05-16, 09:20 PM CDT
HappyMutant Offline
Registered User
 
Join Date: May 2004
Posts: 3
The beauty is inexpressible in language ... ah, the tears of joy.

A thousand thanks. This finally makes my Radeon card happy.

critical HOWTO bug: in step 7, each of those lines should read "cd export/..."

other than that, this worked perfectly for me.
Reply With Quote
  #3  
Old 2004-05-16, 09:34 PM CDT
Scoob_E's Avatar
Scoob_E Offline
Registered User
 
Join Date: Mar 2004
Location: FLORIDA, USA
Posts: 104
Lightbulb

THNX for the heads up, the dir name must have changed since my install.
Reply With Quote
  #4  
Old 2004-05-17, 12:02 AM CDT
HappyMutant Offline
Registered User
 
Join Date: May 2004
Posts: 3
Sorry, I typoed that beyond recognition. I meant,
"cp exports/..."

Strangely enough, this stopped working after I rebooted... *sweats*
Reply With Quote
  #5  
Old 2004-05-17, 02:59 PM CDT
Scoob_E's Avatar
Scoob_E Offline
Registered User
 
Join Date: Mar 2004
Location: FLORIDA, USA
Posts: 104
Ok now that i see your typo i see mine...

and if your still having xserver probs let me know (post you x logs and config too) and I'll try and help (or at least point you in the right direction)
Reply With Quote
  #6  
Old 2004-05-17, 04:29 PM CDT
HappyMutant Offline
Registered User
 
Join Date: May 2004
Posts: 3
X starts up fine. In fact, the log file shows no errors or warnings. glxgears also gives reasonable perfomance. But any application I try to run in fullscreen mode is just a blank screen - even though its music accompanies it, and keyboard input goes to that application. (I can therefore get out easily.)

From `lspci -v`
[. . .]
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 340M (prog-if 00 [VGA])

Selections from /etc/X11/xorg.config:

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "record"
Load "freetype"
Load "type1"
Load "Glcore"
Load "glx"
Load "dri"
EndSection

[ . . . ]

Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "ATI"
BoardName "ATI Radeon"
VideoRam 65536
BusID "PCI:1:5:0"
Option "AGPMode" "4"
Option "DPMS"
Option "AGPFastWrite" "On"
Option "EnablePageFlip" "On"
EndSection

I put both files online: xorg.config Xorg.0.log

Last edited by HappyMutant; 2004-05-17 at 04:32 PM CDT.
Reply With Quote
  #7  
Old 2004-05-17, 05:07 PM CDT
Picomp314's Avatar
Picomp314 Offline
Registered User
 
Join Date: May 2004
Posts: 524
are you sure you need the lines:
Load "Glcore"
Load "dri"
????
Reply With Quote
  #8  
Old 2004-05-18, 04:56 AM CDT
matthew.east Offline
Registered User
 
Join Date: May 2004
Location: Italy
Posts: 12
I am quite keen to try this, as I have this graphics card and am having some problems with it (example attached).

However can you let me know how to do step 3 in a different way. I am behind a firewall which allows me to go through ports 21 and 80 but not a lot else

I would really appreciate it. Thanks, Matt
Attached Thumbnails
graphics_problems.png  
Reply With Quote
  #9  
Old 2004-05-18, 09:26 AM CDT
Scoob_E's Avatar
Scoob_E Offline
Registered User
 
Join Date: Mar 2004
Location: FLORIDA, USA
Posts: 104
HAPPYMUTANT: Im taking a shot in the dark here, but you may want to try either Plcomp314's sugestion or this. Remove the optimazations from the video card section of your xorg.config. i.e.:

go from:

Section "Device"
Identifier "Videocard0"
Driver "radeon”
VendorName "ATI"
BoardName "Radeon Mobility U2"
VideoRam 65536
BusID "PCI:1:5:0"
Option "AGPMode" "4"
Option "DPMS"
Option "AGPFastWrite" "On"
Option "EnablePageFlip" "On"
EndSection

to:

Section "Device"
Identifier "Videocard0"
Driver "radeon”
VendorName "ATI"
BoardName "Radeon Mobility U2"
#VideoRam 65536
#BusID "PCI:1:5:0"
#Option "AGPMode" "4"
#Option "DPMS"
#Option "AGPFastWrite" "On"
#Option "EnablePageFlip" "On"
EndSection

matthew.east: I am not sure where else to get the source from. You can try looking on dri.sf.net for tarballs (I did a quick look-see and didn't find them, but they might still be there). Also I assume (always dangerous) that you could build Mesa DRI and DRM out of the latest XFree86 source. I think 4.4 has support for the IGP 340M, but im not sure... you'ld have to check. 4.4.99 I imagine would have support in it (as it is the development code), but as I have never tried this beforeim not sure how it would work. The procedure may be similar (especialy after you get everything compiled), but I don't know...

Peace
John
Reply With Quote
  #10  
Old 2004-05-19, 06:30 AM CDT
matthew.east Offline
Registered User
 
Join Date: May 2004
Location: Italy
Posts: 12
Step 3 of the Howto

For anyone who is limited by firewalls like me: a friend of mine showed me where to get the source from:

http://freedesktop.org/cgi-bin/viewcvs.cgi/mesa/
http://freedesktop.org/cgi-bin/viewcvs.cgi/dri/

Then get the Mesa directory from the first one, and the xc and drm
directories from the second.
Reply With Quote
  #11  
Old 2004-05-19, 09:11 AM CDT
Scoob_E's Avatar
Scoob_E Offline
Registered User
 
Join Date: Mar 2004
Location: FLORIDA, USA
Posts: 104
Thats a great work around for people behind firewalls. Do you mind if I add that to my how-to.

John

Last edited by Scoob_E; 2004-07-22 at 02:03 AM CDT.
Reply With Quote
  #12  
Old 2004-05-20, 03:41 AM CDT
matthew.east Offline
Registered User
 
Join Date: May 2004
Location: Italy
Posts: 12
Yes of course you can add whatever you like.

I have just been through the procedure you described, and have installed everything exactly as it appeared. Nothing went wrong. However I have not noticed any difference with my display. How can I check that this has worked?

I am still having the problems which I was having in the past. For example when I scroll down text in Gnome Terminal slowly it does not appear correctly (as per the image I attached in the earlier post).

I am on a Compaq Presario 2100 (2104EA to be precise) with 192MB RAM these things:

00:00.0 Host bridge: ATI Technologies Inc RS200/RS200M AGP Bridge [IGP 340M] (rev 02)
00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M]
00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
00:08.0 Modem: ALi Corporation M5457 AC'97 Modem Controller
00:0a.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller
00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
00:11.0 Bridge: ALi Corporation M7101 PMU
00:12.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 340M

I am running Fedora Core 2 updated as per today. Below this message are the relevant parts from /etc/X11/xorg.conf. Is anyone able to help me with this?? is it to do with the very last section?

many thanks, Matt

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
Load "Glcore"
EndSection

{snip}

Section "Monitor"

### Uncomment if you don't want to default to DDC:
# HorizSync 31.5 - 48.5
# VertRefresh 40.0 - 70.0
### Uncomment if you don't want to default to DDC:
# HorizSync 31.5 - 37.9
# VertRefresh 50.0 - 70.0
### Uncomment if you don't want to default to DDC:
HorizSync 31.5 - 37.9
VertRefresh 50.0 - 70.0
Identifier "Laptop LCD Panel"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1024x768"
### Uncomment if you don't want to default to DDC:
# HorizSync 31.5 - 37.9
# VertRefresh 50.0 - 70.0
Option "dpms"
EndSection

Section "Device"
Identifier "IGP 340M"
Driver "radeon"
VendorName "ATI"
BoardName "Radeon Mobility U2"
VideoRam 65536
BusID "PCI:1:5:0"
Option "AGPMode" "4"
Option "DPMS"
Option "AGPFastWrite" "On"
Option "EnablePageFlip" "On"
Option "MonitorLayout" "LVDS"
Option "PanelSize" "1024x768"
Option "DPMS"

EndSection

Section "Screen"
Identifier "Screen0"
Device "IGP 340M"
Monitor "Laptop LCD Panel"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
Reply With Quote
  #13  
Old 2004-05-20, 03:53 AM CDT
matthew.east Offline
Registered User
 
Join Date: May 2004
Location: Italy
Posts: 12
Beh perhaps I'd better include some of the log too. It's a bit long so I've attached it. It won't accept the file extension .log so I've changed it to .txt

Hope you can help.
Attached Files
File Type: txt xorg.0.log.txt (30.1 KB, 539 views)
Reply With Quote
  #14  
Old 2004-05-20, 06:56 AM CDT
matthew.east Offline
Registered User
 
Join Date: May 2004
Location: Italy
Posts: 12
Have cleared up some of the errors. It turns out glcore is loaded as a sub-module of glx so didn't need that. As far as I can see the log file is now clear of errors and all the modules are loading. But no improvement with my problem.


Attached is the latest log file.
Attached Files
File Type: txt xorg.0.log.txt (27.0 KB, 522 views)
Reply With Quote
  #15  
Old 2004-05-20, 10:26 AM CDT
Scoob_E's Avatar
Scoob_E Offline
Registered User
 
Join Date: Mar 2004
Location: FLORIDA, USA
Posts: 104
Matthew, to test to see if you have enabled 3D support run glx gears from the command line... Before following my how-to, (well prior to writing it) i got ~150fps after i get ~420fps, not enough to run UT2k4 very well, but tux racer runs... as far as your other problem, I have never seen that before nor have a clue how to fix it.

Some things i would check though (you might have already) is:

1. does it happen with the frame buffer driver (VESA)

2. try a clean install with freshly burned cds... (its drastic, but maybe something wentwrong durring the install)

Other than that I am taped out on ideas (but im sure if you ask elsewhere on the forum, im sure somebody can help you)

Sorry
Reply With Quote
Reply

Tags
340m, ati, igp, support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Linux have digital camera support or card reader support? Jim Collings gmane.linux.redhat.fedora.general 5 2006-12-17 02:30 PM CST
FC3 & Sony DRU-530A support & Canon Photo iP8500 support BMillikan Hardware 6 2006-04-13 10:29 PM CDT
Can't get DRI working on FC3 / ATI IGP 340M Exsuscito Laptop 0 2005-06-26 04:48 PM CDT
ATI RADEON IGP 340M with FC3 (dual head) Samuel Díaz García gmane.linux.redhat.fedora.general 0 2005-02-02 03:18 PM CST
FC2 Xorg, ATI IGP 340M HPPAVILION ze5600 dosis66 Hardware 0 2004-08-13 09:16 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:42 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translated to other languages thanks to NLP-er 2.3.8