LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-11-2004, 02:25 PM   #1
defy
Member
 
Registered: May 2004
Location: Greece
Distribution: Suse 9.1
Posts: 44

Rep: Reputation: 15
Ati 3d too slow


Hi,

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.

What's happening??????????

Thanks a lot!!!
 
Old 06-28-2004, 05:20 PM   #2
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Rep: Reputation: 32
you dont have the X drivers for your card, as i assume, i have the same problem, try downloading them from ATI's website
 
Old 07-03-2004, 01:10 PM   #3
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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?
 
Old 07-03-2004, 01:18 PM   #4
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
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.

Last edited by init; 07-03-2004 at 01:19 PM.
 
Old 07-03-2004, 01:48 PM   #5
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Rep: Reputation: 30
If you already installed the video card, make sure you don't have glx commented, that may also caus the problem
 
Old 07-03-2004, 07:19 PM   #6
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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?
 
Old 07-04-2004, 02:24 AM   #7
hylke
Member
 
Registered: Apr 2004
Location: the Netherlands
Distribution: Ubuntu 7.04
Posts: 329

Rep: Reputation: 30
Quote:
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
 
Old 07-04-2004, 05:37 AM   #8
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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
 
Old 07-04-2004, 03:18 PM   #9
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
Yes,

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.
 
Old 07-04-2004, 05:14 PM   #10
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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 ***


------------------<----------------------------------
 
Old 07-04-2004, 11:05 PM   #11
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
Try this patch http://kerneltrap.org/node/view/3298

patch -p1 < ati-2.6.7.patch


also look at this thread

http://www.linuxquestions.org/questi...hreadid=197128
 
Old 07-06-2004, 12:24 PM   #12
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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?
 
Old 07-06-2004, 05:32 PM   #13
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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).

Here's the Kernel Oops in the dmesg:

Quote:
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx] Maximum main memory to use for locked dma buffers: 431 MBytes.
Unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
e1a09450
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: fglrx autofs4 sunrpc ipt_REJECT ipt_state ip_conntrack iptable_filter ip_tables joydev ohci_hcd ehci_hcd ipv6
CPU: 0
EIP: 0060:[<e1a09450>] Tainted: P
EFLAGS: 00010286 (2.6.7)
EIP is at __ke_memset+0x10/0x20 [fglrx]
eax: 00000000 ebx: 00000000 ecx: e1a31b68 edx: 00000000
esi: e1a31580 edi: 00000000 ebp: c0430040 esp: deed3f24
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 2856, threadinfo=deed2000 task=dee40c50)
Stack: e1a31b60 e1a31a30 e1a13942 e1a31b68 00000000 00000010 e1a319e0 e1a31580
e1a31a30 e1a319e0 e1a0b1a7 e1a31b60 00000000 00000d28 00000246 e1a319e0
e1a31580 e1a319e0 e187d257 e1a319e0 00000028 0000002a e19fb418 e19c18e7
Call Trace:
[<e1a13942>] _r6x_IsDeviceSupported+0x22/0x1790 [fglrx]
[<e1a0b1a7>] firegl_init+0xe7/0x110 [fglrx]
[<e187d257>] firegl_init_module+0xe7/0x17d [fglrx]
[<c0131c62>] sys_init_module+0x102/0x230
[<c0105eb5>] sysenter_past_esp+0x52/0x71

Code: f3 aa 89 d8 8b 7c 24 04 8b 1c 24 83 c4 08 c3 90 83 ec 08 81
[/B]
Afterwards, I tried an 'fglrxinfo', here's the output:
Quote:
[mod@cytor bin]$ fglrxinfo
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.4 Mesa 5.0.2)
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.

Last edited by thorax; 07-06-2004 at 05:34 PM.
 
Old 07-07-2004, 11:00 AM   #14
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
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
 
Old 07-07-2004, 01:59 PM   #15
thorax
Member
 
Registered: Jun 2004
Location: Germany
Posts: 73

Rep: Reputation: 15
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:


Here's the patching:

[root@cytor build_mod]# patch -p1 < ati.patch
patching file agpgart_be.c
patching file firegl_public.c



And the 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.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI OpenGL is SLOW!! tionik06 Linux - Hardware 7 08-22-2005 09:13 PM
ATI fglrx drivers being slow ben77 Linux - Hardware 2 10-01-2004 03:08 PM
OpenGL Slow with ATI Radeon 7000/VE Bad_Bob Linux - Hardware 0 07-16-2004 06:19 PM
slow ati card, new one? which? shadowhunter Linux - Hardware 6 03-03-2004 07:34 PM
ATI 9700 Pro is slow?!??! e1v!$ Linux - Hardware 3 07-16-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration