This is the sitemap: click for a sitemap This is the site of Peter Lesko. Peter Lesko is also Pete Lesko. If you are looking for Pete Lesko, or Peter Lesko, then you have come to theright place. If you are a loser and are trying to stalk Peter Lesko, then this is his site. Pete Lesko is djekz, Peter Lesko is also djekz. DJekz is peter lesko and pete lesko
:-newest-:
:-stuff-:
newsThree quarter year splurge2008imagesNine Inch Nailsguitar tabsAugust to October2007torontoJuneJulyScience centerGoodbye CanadaCN towerniagara on the lakeniagara fallsalbion hillswatkins glenSpringwallpaperaudioAprilcardocsSnow dayFebruarySuperbowl partyFamilyBilly's birthdayJanuary
P E T E . L E S K O . D J E K Z . C O M
docs - >
linux


3D acceleration on an ATI IGP 340M - Friday, December 29, 2006 11:47 am
I have had to use this for my laptop, an HP ze5470us, many times.
The original source is here


3D acceleration on an ATI IGP 340M

Written by scoob_e - 2004-05-09 16:44
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:

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.

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

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):
{exports/lib/modules/dri/*.so /usr/X11R6/lib/modules/dri}
{exports/lib/modules/extensions/lib{glx,GLcore,dri}.a /usr/X11R6/lib/modules/extensions}
{exports/lib/modules/linux/libdrm.a /usr/X11R6/lib/modules/linux}
{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.

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.

By JP_Design.04 on Thu, 2004-06-17 16:16
This is pretty tricky stuff for me as I am new to Fedora, ok. That said I have gotten as far as



[root@localhost xc]# exports/lib/modules/dri/*.so /usr/X11R6/lib/modules/dri



and I get:-



Segmentation fault

[root@localhost xc]#



there are loads of posts on google about this which mean nothing to me not all of this relates to the new kernel and i dont want to try to fix it with a patch that will not work. Specifically I dont want to not be able to start my system.



I got no errors during the last stage I checked this with the command u suggested with grep '\*\*\*' world.log.

Could you please help with this as I need to get up to speed as quick as I can so I can get modelling in 3d.



Thanks chap.



James.
By AndymionJunta on Sun, 2004-06-27 02:00
This technique worked for me on the first attempt.



I followed the tutorial, yet had an error on compiling, if you have, just do like me, compile as a user then switch to root, and if you still have an error, reboot and try again... if you still have an error, i dunno...



Seriously, now i can fully enjoy OpenGL games on my laptop at DECENT speeds.



Thank you so much.



JP_Design.04

There was a typo in his tutorial



before exports/.... add cp

like:

cp exports/libs/.....



By jedixi on Sat, 2004-07-10 19:53
I'm *attempting* an install using the howto on a Compaq Presario 2545US, on Fedora Core 2. I've been having a wee bit of trouble. After following the howto completely, I get an alert saying that the Xserver could not start. Upon viewing the details, it complains that it was not able to start a screen, adding that no screen could be detected. If anyone can offer any help, that would be greatly appreciated.
By cybercullen on Wed, 2004-07-28 03:17
I also get a segmentation fault even though the compile works without any errors:



exports/lib/modules/dri/*.so /usr/X11R6/lib/modules/dri

Segmentation fault (core dumped)



Any ideas?



Nevermind, I see the problem. Thanks above for the help! (Sorry!)
By Mr. D. on Sun, 2004-08-08 14:08
Thanks Scoob_e!!



Ur guide worked with my Slack10 box. However, I only got it working for the 2.6.7 kernel. I didn't succeed using the 2.4.26 kernel because I couldn't find any appropriate patches for the agpgart.



Thanks again, D.





I finally got it working!! An update to Kernel 2.6.27 brought agpgart to life! After that i recompiled Mesa and dri/drm and it worked! :-)
By cedar on Fri, 2004-09-24 14:57
I got it working after upgrading to xorg. Excellent!!!

But only with Mandrake, I can't get it to work with Libranet (using xfree86 4.3)
By KMcD on Wed, 2005-01-19 08:50
I tried to perform the cvs logins/downloads but nothing happens. Once I enter


Code:

cvs -z3 -d:pserver:anonymous@dri.freedesktop.org:/cvs/dri login


and hit enter when asked for password nothing happens, it just hangs and after some time gives a warning stating that it timed out. Am I doing something wrong? I appreciate any help.



The error I recieve is (as of today):


Code:

cvs [login aborted]: connect to dri.freedesktop.org(131.252.208.82):2401 failed: Connection timed out

By cedar on Wed, 2005-03-30 04:28
Are you connected to the internet?
By riscphree on Fri, 2005-04-01 00:32
this is what i got just after step 5. this is just the end of the process:




Code:

/home/riscphree/3d/Mesa/include/GL/glx.h:295: warning: previous declaration of 'glXGetProcAddress' was here
dri_util.c:55: error: conflicting types for 'PFNGLXGETMSCRATEOMLPROC'
/home/riscphree/3d/Mesa/include/GL/glxext.h:617: error: previous declaration of 'PFNGLXGETMSCRATEOMLPROC' was here
dri_util.c: In function `glx_find_dri_screen':
dri_util.c:155: warning: pointer targets in passing arg 1 of `glXGetProcAddress' differ in signedness
dri_util.c: In function `driCreateNewContext':
dri_util.c:1046: warning: ISO C forbids conversion of function pointer to object pointer type
dri_util.c:1046: warning: ISO C forbids assignment between function pointer and `void *'
dri_util.c:1047: warning: ISO C forbids conversion of function pointer to object pointer type
dri_util.c:1047: warning: ISO C forbids assignment between function pointer and `void *'
dri_util.c:1049: warning: ISO C forbids conversion of function pointer to object pointer type
dri_util.c:1049: warning: ISO C forbids assignment between function pointer and `void *'
dri_util.c:1050: warning: ISO C forbids conversion of function pointer to object pointer type
dri_util.c:1050: warning: ISO C forbids assignment between function pointer and `void *'
dri_util.c:1054: warning: ISO C forbids conversion of function pointer to object pointer type
dri_util.c:1054: warning: ISO C forbids assignment between function pointer and `void *'
dri_util.c:1055: warning: ISO C forbids conversion of function pointer to object pointer type
dri_util.c:1055: warning: ISO C forbids assignment between function pointer and `void *'
make[6]: *** [dri_util.o] Error 1
make[6]: Leaving directory `/home/riscphree/3d/xc/xc/lib/GL/mesa/drivers/dri/common'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/riscphree/3d/xc/xc/lib/GL/mesa/drivers/dri'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/riscphree/3d/xc/xc/lib/GL'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/riscphree/3d/xc/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/riscphree/3d/xc/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/riscphree/3d/xc/xc'
make: *** [World] Error 2




comments