LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-01-2005, 11:33 PM   #1
quietbyday
LQ Newbie
 
Registered: Jul 2005
Distribution: FreeBSD 5.4
Posts: 8

Rep: Reputation: 0
No OpenGL, Debian, Radeon 9250 PCI using fglrx drivers, custom kernel fix?


EDIT: I just fixed my x-log link. Sorry for the nonsense.

INTRO: I've been at this for three weeks now. Help would be appreciated. My card works perfectly fine in WinXP, so obviously the problem is software/configuration related.

THE SPECIFICATIONS: I am running Debian 3.1 "sarge" stable on a 2.6.8 kernel using XFree86 4.3.0.1. I'm trying to get my ATI Radeon 9250 PCI 256MB DDR card to run using the PROPRIETARY drivers rather than the generic drivers. (My cheap Dell Dimension 2400 only came with PCI slots.)

THE PROBLEM: With my current configuration, fglrx can only run X11 with 2D acceleration. It runs WITHOUT 3D acceleration (OpenGL). I want to get OpenGL working using these drivers. (I have read several places that the generic drivers, though more stable, lack the performance found in the proprietary drivers. Plus it would be nice to be able to use the ATI-provided applet that gives me control of my TV output.)

WHAT I TRIED: In order to get these proprietary drivers to work, I tried creating a customized kernel based on what I saw in these websites:
http://www.g-tec.co.at/ati.html (disabled Direct Rendering Manager)
http://www.falkotimme.com/howtos/deb...pile/index.php (My "make dpkg" command was similar, except with "initrd" enabled.)

Basically, I copied my previous configuration into my /usr/src/linux directory as ".config" and edited it from there, being sure to disable Direct Rendering Manager.

With my newly compiled kernel and with the right kernel headers installed, I ran the latest ./....run installer provided on the ATI site under the Linux Radeon Drivers:
https://support.ati.com/ics/support/...ge&folderID=27

Then I created an X-configuration with "fglrxconfig". I replaced the mouse and keyboard configs with my Debian auto-configured settings, which work quite nicely.

The best I get is 2D acceleration without OpenGL.

REFERENCE: I have provided my "/etc/X11/XF86Config-4" and "/var/log/XFree86.0.log" files for your reference. They were uploaded onto Geocities. See the two following links:

http://www.geocities.com/liquidpythn/xf86config-4.txt (X-config)
http://www.geocities.com/liquidpythn/xfree86.0.log.txt (X-log) (link fixed)

(Note: My kernel version was 2.6.8-2_i386 when I installed Debian Sarge stable. When I compiled a custom kernel per some websites' suggestions, it became a derivative of the 2.6.8-16 kernel source. It is now called "2.6.8-ati".)

(Another note: I found this link, but I don't understand what I would have to do to follow this persons' procedure, if necessary. A short explanation of its implications would be helpful: http://reviews.cnet.com/5208-6617-0....sageID=1280052)

CONCLUSION: If anyone can help me fix this, then perhaps I could contribute the solution to the ATi driver wiki, or tutorials, or something. Thank you in advance. -QBD

Last edited by quietbyday; 08-03-2005 at 05:15 PM.
 
Old 08-02-2005, 11:12 PM   #2
quietbyday
LQ Newbie
 
Registered: Jul 2005
Distribution: FreeBSD 5.4
Posts: 8

Original Poster
Rep: Reputation: 0
I fixed the link to my x-log, so now you should be able to troubleshoot the problem.

I will now review some of the highlights of the log:

Quote:
(II) Primary Device is: PCI 01:06:0
(WW) fglrx: No matching Device section for instance (BusID PCI:1:6:1) found
(--) Chipset RADEON 9250 (RV280 5960) found
PCI 01:06:0 is indeed my main output of my Radeon 9250. The PCI:1:6:1 is supposed to be my TV output, though it's apparently not recognized in this process. Will this still be an issue as soon as I successfully enable OpenGL? I have no clue. The correct chipset was identified here. (Good sign.)

Quote:
(EE) fglrx(0): [agp] could not determine AGP since mode=0x00000000
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xd023e000 at 0x4024f000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
What?! How did this happen? How can I avoid this?

Quote:
(II) Loading extension FGLRXEXTENSION
(II) Loading extension ATITVOUT
Okay, so maybe my TV output could be working. Unfortanately, I am unable to test this at this time.

In any case, glxgears gives me a rate of about 70 fps, and glxinfo says that acceleration is off.

By the way, I actually saved the command I used to compile my kernel into a Debian package, if this helps.
Code:
make-kpkg --append_to_version -ati --initrd --revision=custom.1.01 kernel_image
Please help me get this working; I would REALLY appreciate it. If it takes a new kernel to fix the problem, then fine, I'll compile it.

Last edited by quietbyday; 08-02-2005 at 11:29 PM.
 
Old 08-03-2005, 05:13 PM   #3
quietbyday
LQ Newbie
 
Registered: Jul 2005
Distribution: FreeBSD 5.4
Posts: 8

Original Poster
Rep: Reputation: 0
Perhaps I would need to reconfigure my kernel. I am open to suggestions.

So I have an idea. I'll post the ".config" file in my kernel source code. Here is the link:
http://www.geocities.com/liquidpythn...-1.01_i386.txt
(Of course, you will need to save this in a kernel source directory as ".config".)

I would like someone to view the configuration with "make menuconfig" and suggest a better configuration ideal for running fglrx drivers. Note that kernel hacking and the Direct Rendering Manager is disabled. Are there any additional changes I should make?

By the way, I also noticed this in my log:
Quote:
(II) Loading extension ATIFGLRXDRI
(II) fglrx(0): doing DRIScreenInit
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Unknown error 999)
drmOpenDevice: open result is -1, (Unknown error 999)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Unknown error 999)
drmOpenDevice: open result is -1, (Unknown error 999)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmGetBusid returned ''
This is a DRI problem, am I right? What should I do about this?

Last edited by quietbyday; 08-04-2005 at 12:15 PM.
 
Old 08-10-2005, 07:56 AM   #4
hari_seldon99
Member
 
Registered: Jun 2003
Location: Front of PC
Distribution: Linux Mandrake
Posts: 212

Rep: Reputation: 30
I have the exact same card & exact same problem with ATI's drivers. I'll try to recompile my kernel (Fedora Core 3) & see if moduling the other DRI helps.
In the meantime, try using the opensource 'radeon' driver with DRI enabled. It's crappy, but the fps of glxgears is abt 400, so higher than what you'd have with fgl- at this stage.
 
Old 10-03-2005, 07:43 PM   #5
mjkelly93
LQ Newbie
 
Registered: Jul 2005
Location: Shenandoah PA
Distribution: Ubuntu 5.10
Posts: 26

Rep: Reputation: 15
Im having the exact same problem with Ubuntu 5.10 using 2.6.12-9-686.

Anyone get anywhere with this?
 
Old 10-04-2005, 03:22 AM   #6
hari_seldon99
Member
 
Registered: Jun 2003
Location: Front of PC
Distribution: Linux Mandrake
Posts: 212

Rep: Reputation: 30
Quote:
Originally posted by mjkelly93
Im having the exact same problem with Ubuntu 5.10 using 2.6.12-9-686.

Anyone get anywhere with this?
Yeah, I think I'vr figured out what the problem is.

Basically, in order for part of the driver to compile, your kernel source code need to match the running kernel, & fedora 3's shipped kernel does not match the corresponding .config file in the source. I switched to Mandriva and it works just fine there. Alternatively, you might want to comopile your own kernel and then install the fglrx driver & it should work.
 
Old 10-04-2005, 11:32 AM   #7
mammlouk
Member
 
Registered: May 2005
Location: Colorado
Distribution: Suse 10.0 OSS RC1
Posts: 100

Rep: Reputation: 15
hari_seldon99 hit the nail on the head. You must install a kernel_source that matches your current kernel in order for the ATI installer to build the required kernel-module correctly. After you accomplish that, you should have no problems installing the driver.

You can double check by reviewing the ATI installer log. I believe the log gets put into /
 
Old 10-04-2005, 03:00 PM   #8
mjkelly93
LQ Newbie
 
Registered: Jul 2005
Location: Shenandoah PA
Distribution: Ubuntu 5.10
Posts: 26

Rep: Reputation: 15
Well at least i know it can be done

I pretty much gave up hope. I didnt get many responses on the Ubuntuforums at all so dug around myself and tried a TON of different methods. I got my fps finally up to around 400 which was at small screen, at full screen it was still awful.

I cant figure out how i didnt last time. My problem is when i configure xorg.conf to use the fglrx driver, my computer hangs. Like i reboot the GDM and it goes to a black screen. It hangs so hard that if i cant change runlevels or any of that shit. I cant ALT CTRL ANYTHING. If i execute an MP3 from the command line, then try this, the mp3 freezes halfway through the song, indicating a hard hang. Take a look at this though, its interesting.

My xorg.conf file is set to use the "radeon" driver. My glxinfo looks like this:
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
client glx version string: 1.3
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
GLX_ATI_render_texture
GLX version: 1.2
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_multisample
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)
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x27 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 1 0 None
0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 1 0 None
0x29 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x2a 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 1 0 None
0x3f 32 tc 1 0 0 c . . 0 0 0 0 0 0 0 0 0 0 0 0 0 None


No 3d rendering. It used to work but i tinkered around a little bit and now it just doesnt work at all. My lsmod puts out this:
agpgart 34792 3 intel_agp,fglrx,ati_agp
fglrx 255524 0
intel_agp 23164 1
ati_agp 9036 0

among some others as well. the only reason it loads fglrx is because i added it manuall in /etc/modules

I *CAN* rmmod - ati_agp and fglrx
I CANT rmmod - intel_agp and agpgart

Anyone have any suggestions how i disable this intel_agp, and agpgart modules then only use fglrx?

Also i didnt have a copy of the kernel source on my comp, i dont think, so im downloading the 2.6.12 source now and installing it. Where do i go from there tho?
 
Old 10-04-2005, 05:20 PM   #9
mammlouk
Member
 
Registered: May 2005
Location: Colorado
Distribution: Suse 10.0 OSS RC1
Posts: 100

Rep: Reputation: 15
After you get the source installed, just re-run the driver installer so it can build the required kernel module for you.
 
Old 10-04-2005, 05:37 PM   #10
hari_seldon99
Member
 
Registered: Jun 2003
Location: Front of PC
Distribution: Linux Mandrake
Posts: 212

Rep: Reputation: 30
Re: Well at least i know it can be done

Quote:
Originally posted by mjkelly93


I cant figure out how i didnt last time. My problem is when i configure xorg.conf to use the fglrx driver, my computer hangs. Like i reboot the GDM and it goes to a black screen. It hangs so hard that if i cant change runlevels or any of that shit. I cant ALT CTRL ANYTHING.

So what does /var/log/Xorg.log.XXX say?



Quote:


No 3d rendering. It used to work but i tinkered around a little bit and now it just doesnt work at all. My lsmod puts out this:
agpgart 34792 3 intel_agp,fglrx,ati_agp
fglrx 255524 0
intel_agp 23164 1
ati_agp 9036 0

among some others as well. the only reason it loads fglrx is because i added it manuall in /etc/modules


Well, don't then .

You shouldn't have to load it in /etc/modules or anything like that.


From your output of glxgears it seems to default to MESA anyways. You need to enable the 'DRI' section in your xorg.conf for 3d to work with the opensource radeon-dri driver (there's howtos for this if you google for it). It'll be crappy, but you won't have to default to MESA.

Quote:

Anyone have any suggestions how i disable this intel_agp, and agpgart modules then only use fglrx?
Get rid of it in modules.conf or wherever & enter "fglrxconfig" in a shell (once you've installed fglrx from pkgs downloaded from ATI's website to build your xorg.conf.



Quote:
Also i didnt have a copy of the kernel source on my comp, i dont think, so im downloading the 2.6.12 source now and installing it. Where do i go from there tho? [/B]

Here is my output of lsmod
[daneel@landau ~]$ /sbin/lsmod|grep fglrx
fglrx 253224 7
agpgart 28264 2 fglrx,intel-agp


As you can see, it's using agpgart module, but 3-D acceleration works out okay anyways (glxgears is ~1100fps, & glxinfo is:

name of display: :0.0
Loading required GL library /usr/lib/libGL.so.1
display: :0 screen: 0
direct rendering: Yes
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
client glx version string: 1.3
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_ATI_pixel_format_float,
GLX_ATI_render_texture
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
GLX_ARB_multisample
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 8500 Prototype DDR Pentium 4 (SSE2) (FireGL) (GNU_ICD)
OpenGL version string: 1.3.1010 (X4.3.0-8.16.20)
OpenGL extensions:
GL_ARB_multitexture, GL_EXT_texture_env_add, GL_EXT_compiled_vertex_array,
GL_S3_s3tc, GL_ARB_occlusion_query, GL_ARB_point_parameters,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_transpose_matrix, GL_ARB_vertex_blend, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_window_pos, GL_ATI_element_array,
GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader, GL_ATI_map_object_buffer,
GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
GL_ATI_vertex_array_object, GL_ATI_vertex_attrib_array_object,
GL_ATI_vertex_streams, GL_ATIX_texture_env_combine3,
GL_ATIX_texture_env_route, GL_ATIX_vertex_shader_output_point_size,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_wrap,
GL_EXT_texgen_reflection, GL_EXT_texture3D,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,
GL_EXT_vertex_shader, GL_HP_occlusion_test, GL_NV_blend_square,
GL_NV_occlusion_query, GL_NV_texgen_reflection, GL_SGI_color_matrix,
GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x24 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x27 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x28 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x29 24 tc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x2a 24 tc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x2b 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x2c 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 1 0 Slow
0x2d 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x2e 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 16 16 16 16 1 0 Slow
0x2f 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x30 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 1 0 None
0x31 24 dc 0 32 0 r y . 8 8 8 8 0 24 0 0 0 0 0 1 0 None
0x32 24 dc 0 32 0 r . . 8 8 8 8 0 24 0 0 0 0 0 1 0 None


[daneel@landau ~]$ fglrxinfo
Loading required GL library /usr/lib/libGL.so.1
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 8500 Prototype DDR Pentium 4 (SSE2) (FireGL) (GNU_ICD)
OpenGL version string: 1.3.1010 (X4.3.0-8.16.20)



It seems okay. Bear in mind that fglrx overwrites libGL.so files and puts in it's own versions, so...

WRT kernel source, you might want to build your own kernel. There are many HOWTOS on doing this. Once ur done, then reboot to your compiled kernel and then install fglrx from packages compatible with your version of xorg taken from ATI's download site (google for it). Then backup your old xorg.conf file and run 'fglrxconfig' to config your xorg.conf with fglrx and then restart the X-server (or just reboot). That ought to do it.
 
Old 10-04-2005, 08:10 PM   #11
mjkelly93
LQ Newbie
 
Registered: Jul 2005
Location: Shenandoah PA
Distribution: Ubuntu 5.10
Posts: 26

Rep: Reputation: 15
Ok ive decided that im going to wait until the official release of Ubuntu 5.10 next week then reinstall the whole hard drive, start from scratch, and recompile the kernel then.

BTW the log that you mention doesnt get written to if it hangs on reboot. It hangs before its written i guess.

Thanks guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install drivers (ATI RADEON 9250) Sfx Mandriva 2 05-04-2005 07:03 AM
Radeon 9250 and Debian/Sarge bsharitt Linux - Hardware 4 01-06-2005 08:18 AM
Radeon FGLRX Drivers and 2.6.* Kernel scoobdoobery Linux - Hardware 1 09-06-2004 05:47 AM
does fglrx supports radeon PCI cards?? kelvinhbo Linux - Hardware 4 05-09-2004 05:34 AM
Xfree 4.4 and Radeon fglrx drivers Menestrel Slackware 3 04-15-2004 04:36 AM

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

All times are GMT -5. The time now is 11:13 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