LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-09-2005, 06:48 PM   #1
furiousV
Member
 
Registered: Aug 2004
Location: Aberdeen, UK
Distribution: Ubuntu, CentOS, FreeBSD
Posts: 64

Rep: Reputation: 15
Quake 3 and Radeon


Hi all

I am having trouble with Open GL and my Radeon 9800 Pro on Fedora Core 4.

I try running Quake 3 Arena and get this:
Quote:
[viktor@Monster ~]$ quake3
Q3 1.32b linux-i386 Nov 14 2002
----- FS_Startup -----
Current search path:
/home/viktor/.q3a/baseq3
/usr/local/games/quake3/baseq3/pak8.pk3 (9 files)
/usr/local/games/quake3/baseq3/pak7.pk3 (4 files)
/usr/local/games/quake3/baseq3/pak6.pk3 (64 files)
/usr/local/games/quake3/baseq3/pak5.pk3 (7 files)
/usr/local/games/quake3/baseq3/pak4.pk3 (272 files)
/usr/local/games/quake3/baseq3/pak3.pk3 (4 files)
/usr/local/games/quake3/baseq3/pak2.pk3 (148 files)
/usr/local/games/quake3/baseq3/pak1.pk3 (26 files)
/usr/local/games/quake3/baseq3/pak0.pk3 (3539 files)
/usr/local/games/quake3/baseq3
./quake3.x86/baseq3

----------------------
4073 files in pk3 files
execing default.cfg
execing q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok

------- Input Initialization -------
Joystick is not active.
------------------------------------
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----
...loading libGL.so.1: Initializing OpenGL display
...setting mode 3: 640 480
Using XFree86-VidModeExtension Version 2.2
XFree86-VidModeExtension Activated at 640x480
Using 8/8/8 Color bits, 16 depth, 0 stencil display.
GL_RENDERER: Mesa GLX Indirect


***********************************************************
You are using software Mesa (no hardware acceleration)!
Driver DLL used: libGL.so.1
If this is intentional, add
"+set r_allowSoftwareGL 1"
to the command line when starting the game.
***********************************************************
...WARNING: could not set the given mode (3)
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem
I have tried running the latest ATI drivers, for X.org 6.8.2, and then run fglrxconfig to write the new xorg.conf file, and Quake III Arena still gives me that.
Using Mesa GL is no way playable.

My setup:
Pentium 4 2.4
1GB RAM
Radeon 9800 Pro 128MB
Fedora Core 4
kernel 2.6 custom compiled
fglrxinfo gives:
Quote:
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.5 Mesa 6.2.1)
I will post my xorg.conf file on request, don't want to make this post too long

Hope you guys can help out
Thanks in advance
 
Old 12-09-2005, 08:36 PM   #2
wolorf
LQ Newbie
 
Registered: Dec 2005
Location: Madison, Wisconsin
Distribution: Debian sid
Posts: 13

Rep: Reputation: 0
That output from fglrxinfo tells me that the drivers haven't been installed correctly. You should be getting something like this:

Code:
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9800 Pro Generic
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)
I'm not sure exactly how you installed your drivers, but obviously it didn't work. I'm thinking that the modules for fglrx haven't been loaded. Try doing a lsmod and look for fglrx in there. It's probably not there, but if it is then there's another problem. If not, then your module hasn't been loaded. Here's how to do it:

Install the drivers themselves via rpm.

Get out of the desktop environment and to the console for this next part.

Code:
cd /lib/modules/fglrx/build_mod/
./make.sh
cd ..
./make_install.sh
Note: you probably need to change the permissions on the scripts with "chmod +x" to run them.

That should build the modules. You should probably backup your xorg.conf file before running fglrxconfig again, just to be safe. Then run fglrxconfig in the console, write to your xorg.conf file, and you should be good to go. Good luck.
 
Old 12-11-2005, 09:48 AM   #3
furiousV
Member
 
Registered: Aug 2004
Location: Aberdeen, UK
Distribution: Ubuntu, CentOS, FreeBSD
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks for replying wolorf

lsmod shows:
fglrx 430560 0

I have tried several times to install the drivers, also in non-graphical mode.

Perhaps a fault is in here somewhere?
from xorg.conf
Quote:
# === ATI device section ===

Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# === misc DRI settings ===
Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
Option "DesktopSetup" "(null)"
Option "ScreenOverlap" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
Option "CapabilitiesEx" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
# === Center Mode (Laptops only) ===
Option "CenterMode" "off"
# === Pseudo Color Visuals (8-bit visuals) ===
Option "PseudoColorVisuals" "off"
# === QBS Management ===
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
# === FSAA Management ===
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
# === Misc Options ===
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "yes"
Option "ForceGenericCPU" "no"
BusID "PCI:1:0:0" # vendor=1002, device=4e48
Screen 0
EndSection
Thanks in advance
 
Old 12-11-2005, 01:46 PM   #4
furiousV
Member
 
Registered: Aug 2004
Location: Aberdeen, UK
Distribution: Ubuntu, CentOS, FreeBSD
Posts: 64

Original Poster
Rep: Reputation: 15
From what I gather, the problem is Mesa3d conflicting with ATI's OpenGL. I'm gonna try uninstalling it, but it doesn't look easy.

Is there anything I should know about before I go and do this, is there a chance I will mess up my display altogether?

Why didn't I just get an nVidia . . .

Edit: Seems Direct rendering is disabled:
Quote:
# glxinfo |head
name of display: :0.0
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: ATI
Gotta get that enabled, but how is the question.

Last edited by furiousV; 12-11-2005 at 01:58 PM.
 
Old 12-11-2005, 03:05 PM   #5
wolorf
LQ Newbie
 
Registered: Dec 2005
Location: Madison, Wisconsin
Distribution: Debian sid
Posts: 13

Rep: Reputation: 0
Well the one thing that sticks out for me is the line from your xorg.conf that says:
Code:
Option "UseInternalAGPGART" "yes"
I've really never been able to use the internal agpgart. Based on the quality of these drivers, I'm guessing that the kernel (external) agpgart is superior to ati's version. So I would change that line to read:

Code:
Option "UseInternalAGPGART" "no"
or you could just redo fglrxconfig and set it that way to be sure that you're making the syntax right. Although its just replacing yes with no, but you should back it up anyways to be sure. So try that, maybe it will magically make direct rendering work. And you really shouldn't worry too much about completely messing up your system, as long as you back your config files up. So try the agpgart thing and then report back with successes/failures.
 
Old 12-11-2005, 03:38 PM   #6
furiousV
Member
 
Registered: Aug 2004
Location: Aberdeen, UK
Distribution: Ubuntu, CentOS, FreeBSD
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks for getting back to me wolorf.

Unfortunately, having UseInternalAGPGART as NO makes no difference.

I am rebooting to start the X server, as init 3 causes my computer to hang at Sending the TERM signal or something, and then have to add runlevel 3 into the boot optoins in GRUB.

By the way, running make.sh in runlevel 3 AND 5 brings this:
Quote:
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
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.132/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/kernels/linux-2.6.13'
Building modules, stage 2.
MODPOST
Warning: could not find /lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.13'
build succeeded with return value 0
compiling fglrx_agp.ko module
make -C /lib/modules/2.6.132/build SUBDIRS=/lib/modules/fglrx/build_mod/firegl_agpgart modules
make[1]: Entering directory `/usr/src/kernels/linux-2.6.13'
CC [M] /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.o
In file included from /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:113:
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_agp.h:755:1: warning: "PCI_DEVICE_ID_INTEL_ICH7_1" redefined
In file included from include/linux/pci.h:452,
from /lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:74:
include/linux/pci_ids.h:2461:1: warning: this is the location of the previous definition
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:171: error: static declaration of ‘errno’ follows non-static declaration
include/linux/unistd.h:4: error: previous declaration of ‘errno’ was here
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function ‘__ke_phys_to_virt’:
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:660: warning: passing argument 1 of ‘phys_to_virt’ makes integer from pointer without a cast
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:660: warning: return makes integer from pointer without a cast
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function ‘__ke_verify_area’:
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:1123: warning: ‘verify_area’ is deprecated (declared at include/asm/uaccess.h:105)
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function ‘__ke_get_vm_phys_addr’:
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:1362: warning: passing argument 1 of ‘pmd_offset’ from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function ‘__ke_vm_phys_addr_str’:
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:1818: warning: passing argument 1 of ‘pmd_offset’ from incompatible pointer type
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c: In function ‘__ke_smp_call_function’:
/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.c:2252: warning: statement with no effect
make[2]: *** [/lib/modules/fglrx/build_mod/firegl_agpgart/firegl_wrap.o] Error 1
make[1]: *** [_module_/lib/modules/fglrx/build_mod/firegl_agpgart] Error 2
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.13'
make: *** [default] Error 2
AGPGART module build failed with return value 2
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.
==============================
continueing anyway to make_install

Quote:
- creating symlink
- recreating module dependency list
- trying a sample load of the kernel modules
done.
Doing make_install in runlevel 3 also has an extra line to it, something saying ATI Technologies, Germany or so. But no hardware acceleration at all I'm afraid.

Do you think having a custom compiled kernel is interfering?

Edit: Got a package from here: http://dri.freedesktop.org/snapshots/ and the latest Radeon driver, and am going to attempt to install that. Hopefully that will work. I'll keep you posted.

Another edit:
I done that [previous edit] but no luck.
DRI needs Xfree86 to be installed - no mention of X.org

It is getting a little late, I'll probably leave it till tomorrow or so.

Last edited by furiousV; 12-11-2005 at 05:10 PM.
 
  


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
Radeon X600 and Quake 3 NX-01 Slackware 2 11-15-2005 05:46 PM
Quake 3 running very slow on Radeon 9800 Pro Skazi Linux - Software 5 04-29-2005 10:32 PM
3d questions regarding quake, quake II deftone420 Linux - Games 4 02-17-2005 01:14 PM
hello a new in linux and i got a big problem with my ati radeon 7000/radeon ve card AKAKAK Linux - Hardware 0 01-19-2005 09:39 AM
redhat 8 and ATI Radeon agp 320m (aka Radeon Mobility U1) nelsonnery Linux - Hardware 11 11-06-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:00 AM.

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