LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-06-2005, 06:09 PM   #1
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
hard lockups when using opengl apps on ATI radeon 9600


Hi,

I just upgraded my kernel today to 2.6.11. You have to re-install the ati drivers if you upgrade your kernel, which is what I did. I downloaded the latest ATI driver for x.org 6.8 (fglrx_6_8_0-8.10.19-1.i386.rpm). After initialy trying and failing to install it, I found out you have to apply several patches to the driver source code to get it to compile. So I did;

Code:
[root@thabox ~/radeon]# rpm -i --nodeps --force fglrx_6_8_0-8.10.19-1.i386.rpm
[root@thabox ~/radeon]# cd /lib/modules/fglrx/build_mod
[root@thabox /lib/modules/fglrx/build_mod]# patch < 2.6.11_fglrx.patch
patching file agpgart_be.c
patching file firegl_public.c
Hunk #1 succeeded at 2719 (offset 129 lines).
Hunk #3 succeeded at 2821 (offset 129 lines).
[root@thabox /lib/modules/fglrx/build_mod]# patch < firegl_public.patch
patching file firegl_public.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #1 succeeded at 1664 (offset 94 lines).
Hunk #2 succeeded at 2015 (offset 22 lines).
Hunk #3 succeeded at 2190 (offset 107 lines).
Hunk #4 succeeded at 2474 (offset 21 lines).
Hunk #5 FAILED at 2637.
Hunk #6 FAILED at 2704.
Hunk #7 FAILED at 2741.
Hunk #8 succeeded at 2877 (offset 107 lines).
3 out of 8 hunks FAILED -- saving rejects to file firegl_public.c.rej
[root@thabox /lib/modules/fglrx/build_mod]# cd ..
[root@thabox /lib/modules/fglrx]# sh make_install.sh
It got my driver compiled, installed and inserted, but when applying the patches, I did see that some portions of the patch files were getting rejected;
All seemd to go well. The kernel module was inserted, the x server started fine, hell I even had 3d accelaration.
The catch is that now apps using opengl cause my system to randomly lockup. Sometimes my system locks up nearly immidiatly after starting an opengl app, sometimes it takes a while (+/- 15 minutes). I have no idea what to do about this. I'm not receiving any error messages. Dmesg output looks fine. Nothing in the /var/log/Xorg.0.log file that looks suspicious.
As I said I upgraded my kernel. I compiled AGP support in to the kernel, instead of as an module. But putting AGP in an module doesn't make the problem go away.
I also tried using an somewhat older driver (fglrx_6_8_0-8.8.25-1.i386.rpm). But I had the same problem with this as well.

some info;

CPU: AMD athlon 900 MHz
mem: 384 MB
chipset: VIA Twister-K/KT133x/KM133
graphics card: ATI radeon 9600
kernel: 2.6.11, vanilla, compiled from source
distro: linux from scratch 5.0
xserver: x.org 6.8

This is the relevent section of the xorg.conf file;

Code:
# === 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"               "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
# === TV-out Management ===
    Option "NoTV"                       "no"
    Option "TVStandard"                 "PAL-B"
    Option "TVHSizeAdj"                 "0"
    Option "TVVSizeAdj"                 "0"
    Option "TVHPosAdj"                  "0"
    Option "TVVPosAdj"                  "0"
    Option "TVHStartAdj"                "0"
    Option "TVColorAdj"                 "0"
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "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=4150
    Screen 0
EndSection
And here is the lspci output

Code:
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc.: Unknown device b115
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. USB (rev 16)
00:07.3 USB Controller: VIA Technologies, Inc. USB (rev 16)
00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:0a.0 Ethernet controller: Linksys Network Everywhere Fast Ethernet 10/100 model NC100 (rev 11)
00:0f.0 Multimedia audio controller: Avance Logic Inc. ALS4000 Audio Chipset
01:00.0 VGA compatible controller: ATI Technologies Inc: Unknown device 4150
01:00.1 Display controller: ATI Technologies Inc: Unknown device 4170
Does any one have a clue what I'm supposed to do?

Thanks....

Last edited by schatoor; 03-06-2005 at 06:36 PM.
 
Old 03-08-2005, 02:55 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
I use nvidia, not ati, so take my suggestions with a grain of salt.

The fact that some of the patches didn't go suggests a problem - a version problem, or something else. I would start fiddling with options that appeared to be relevant to my setup to see if enabling/disabling features would help or hurt - or perhaps cause the problem to vanish. I would start, perhaps, by enabling OpenGLOverlay and disabling VideoOverlay. I would certainly disable "AUTO" for monitor layout and would manually specify what the layout was to be.

By doing this for awhile, you may well find yourself identifying the problem feature, and you may also find that you can set a configuration that meets your requirements AND does not crash.
 
Old 03-12-2005, 12:47 PM   #3
deathy
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
me too.. :(

Yay....unfortunately...I got the same problem
Radeon 9600, Slackware 10.1 with 2.6.10 Kernel
recompiled the kernel with agp support, installed the rpm from ati and wondered why it didn't work...finally I found the link to a patch on another forum....
unfortunately when applying the patch I get a lot of errors....and don't know why...maybe the patch was made for another version of the module?...
hope someone who knows sees this topic and posts the correct solution, or if you figure it out post it to me also
 
  


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
Radeon 9600 on FC3 no OpenGL-Support oliverM Linux - Hardware 1 11-10-2005 09:51 AM
experiencing lockups while using opengl apps schatoor Linux - Hardware 0 07-03-2005 09:20 AM
OpenGL Lockups with ATI 3.7.6 Drivers anti_trend Linux - Hardware 0 04-04-2004 12:01 AM
ATI Radeon 9600, openGL, and drivers ch4s3r Linux - Software 2 02-20-2004 02:49 PM
AMD 64bit + ATI Radeon 9600 Hard to configure syx Linux - Hardware 1 11-18-2003 06:28 AM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration