Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i used to have the usual problem with my ati 9200SE card - i didn't have 3d support.
I followed the great-!!!!!!!!!- link and know i have.
But...
The 3d graphics run too slow. Even in a game that comes with linux - TORCS - i get only around 48fps in window mode. Imagine in full screen - 17fps -.
The card's potentials isn't that low, in windows i play great for example ROTK.
Umm, I have an ATI Radeon 9600XT and use Fedora Core 2, which means I use the X.Org Release of the x window system.
I know, ATI hasn't yet released X.Org drivers for their cards, and I think it will take a long time before they release one, typical for ATI.
So I'm searching for another way of getting 3d acceleration for my card. Has anyone yet discovered a way? Maybe a new way to install the XFree86 drivers on X.Org?
You can use the Xfree drivers (fglrx4.3.0-3.9.0)*edit* after you run fglrxconfig copy XFree86-4 to xorg.conf *edit* This is what i am using. motub is curently helping me in anothe post .... make sure that DRM (direct rendering manager) is set to "n"
This is causing my slow FPS I think I will let you know in a moment. I am recompiling my kernel as we speak.
You mean, I should simply install the ATI driver for XFree 3.9.0 and rename the resulting config file? This seems logical to me, because X.Org is based upon the latest pre-4.4 release of XFree86, but some users have reported problems doing this, and can I use the module (or compile it) using a 2.6 Kernel?
Originally posted by thorax You mean, I should simply install the ATI driver for XFree 3.9.0 and rename the resulting config file? This seems logical to me, because X.Org is based upon the latest pre-4.4 release of XFree86, but some users have reported problems doing this, and can I use the module (or compile it) using a 2.6 Kernel?
that's not whay i meant.
What i meant is after you installed the driver from your card, you can find:
Load "glx"
But sometimes it's commented(aslo make sure you got the right driver name, ie nvidia i needed to change nv to nvidia), so that also can cause the problem(because glx is opengl for the x windowing system, and the problems that its so slow is because opengl isn't properly installed).
I hope im now more clear about this.
Hylke
My comment was more targeted at init's post
Besides, as I do not have any 3d enabled drivers for my graphics card included with X.Org (it has only 3d support for the ATI 9200SE), there is no glx to uncomment
I am running Slack 10 2.6.7 kernel and Xorg with the ATI fglrx-4.3.0-3.9.0 drivers. My FPS are not as good as they are under Windows but I am getting closer. I am going to try the older ATI drivers where as I have heard they run better.
But It does work.
As far as the commented out load glx fglrxconfig will take care of that.
New problems coming up... I installed the ATI driver you mentioned, but I can't compile the kernel module, which the installer tells me is essential for 3d support.
Here's the output of the /lib/modules/fglrx/build_mod/make.sh:
------------------<----------------------------------
[root@cytor build_mod]# ./make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.7/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/home/mod/kernel/linux'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In Function >>agp_generic_alloc_page<<:
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:1405: error: structure has no member named `count'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In Function >>ali_alloc_page<<:
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:4416: error: structure has no member named `count'
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory `/home/mod/kernel/linux'
make: *** [kmod_build] Fehler 2
build succeeded with return value 0
ln: „./fglrx.ko“: Datei existiert
duplicating results into driver repository...
cp: not able to execute stat for „fglrx.ko“ nicht möglich: file or directory not found.
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
And this is the output of the make.log in the same directory, nearly the same, but maybe helpful:
------------------<----------------------------------
ATI module generator V 2.0
==========================
initializing...
build_date =So Jul 4 14:24:55 CEST 2004
uname -a =Linux cytor 2.6.7 #8 Wed Jun 30 19:28:08 CEST 2004 i686 athlon i386 GNU/Linux
uname -s =Linux
uname -m =i686
uname -r =2.6.7
uname -v =#8 Wed Jun 30 19:28:08 CEST 2004
uid=0(root) gid=0(root) Gruppen=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
.
drwxr-xr-x 124 root root 20480 1. Jul 17:49 /usr/include
.
insgesamt 16
drwxr-xr-x 2 root root 4096 4. Jul 14:09 ATI
lrwxrwxrwx 1 root root 22 4. Jul 14:16 linux -> /home/mod/kernel/linux
drwxr-xr-x 19 root root 4096 30. Jun 18:27 linux-2.6.5-1.358
drwxr-xr-x 7 root root 4096 30. Jun 18:23 redhat
.
file /lib/modules/2.6.7/build/include/linux/agp_backend.h says: AGP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/2.6.7/build/include/linux/autoconf.h says: MODVERSIONS=1
.
CC=gcc
cc_version=
found major but not minor version match for gcc and the ip-library
ls -l ./libfglrx_ip.a
lrwxrwxrwx 1 root root 20 4. Jul 14:24 ./libfglrx_ip.a -> ./libfglrx_ip.a.GCC3
.
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.7/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/home/mod/kernel/linux'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In Funktion >>agp_generic_alloc_page<<:
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:1405: error: structure has no member named `count'
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c: In Funktion >>ali_alloc_page<<:
/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.c:4416: error: structure has no member named `count'
make[2]: *** [/lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o] Fehler 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/2.6.x] Fehler 2
make[1]: Leaving directory `/home/mod/kernel/linux'
make: *** [kmod_build] Fehler 2
build succeeded with return value 0
.
duplicating results into driver repository...
target location: /lib/modules/fglrx
copying fglrx.ko
copying logfile of build
*** end of build log ***
And in what directory do I have to apply the patch? The /lib/modules/fglrx/build_mod/ , the /lib/modules/fglrx/build_mod/2.6.x, the Kernel directory, ...
And, do I just have to copy the code from the thread you mentioned to a file, and then apply the patch? No need to change some paths, or anything else?
Ok, I managed to apply the patch, and the fglrx module succeeded to compile. But when I want to run 'modprobe fglrx', I get a Kernel Oops, and the output of it looks like there is an memory access error (don't know the exact spelling in english, since I'd choose to install my system with german language support).
Is this the error showing that DRI is not activated in the xorg.conf / XF86Config-4 ?
One last thing about the Kernel Oops:
I've read a german computer magazine recently, which reviewed some Linux Distros, under them Fedora Core 2, which I use, too. They were also worrying about getting a Kernel Oops when trying to load the Module. They didn't get the error while compiling, because they were using Kernel 2.6.5, not 2.6.7, like I do, so an older Kernel won't fix the problem.
I have never seen that error, I am wondering if the patch was installed incorrectly.
The patch should be installed in /lib/modules/fglrx/build_mod .. so cp it there then apply the patch again. (yes I just cut and pasted that script into a file)
I would also uninstall the rpm and install it again and mv the /lib/modules/2.6.7 dir to 2.6.7.bak
and then create you modules dir again. ONLY do this if your .config in /usr/src/linux is the same as it was when creating your custom kernel... This is what I would do to make 100% sure things did not just get all screwy and weird during the last attempt or many before
It still doesn't work! I also installed XFree86 4.4, but it didn't had something to do with compiling the module. I've documented all steps of the patching/compiling:
[root@cytor build_mod]# ./make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.7/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/home/mod/kernel/linux'
CC [M] /lib/modules/fglrx/build_mod/2.6.x/agpgart_be.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/i7505-agp.o
CC [M] /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
Building modules, stage 2.
MODPOST
CC /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/home/mod/kernel/linux'
build succeeded with return value 0
duplicating results into driver repository...
done.
==============================
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
==============================
...the make_install.sh...
[root@cytor fglrx]# ./make_install.sh
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel module
./make_install.sh: line 341: 4527 Speicherzugriffsfehler modprobe $module
failed.
...resulting in the same error as usual.
And when the system tries to modprobe fglrx at startup, I just get the Kernel Oops as usual in the dmesg.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.