LinuxQuestions.org
Help answer threads with 0 replies.
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-17-2010, 05:31 PM   #1
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Rep: Reputation: 16
ATI Radeon HD 4650 AGP - binary driver crashes, oss driver provides no acceleration


I just upgraded the video card in my somewhat aging (mid-2003) main rig from an nVidia GeForce 7800GS to an ATI Radeon HD 4650, mainly with the intent of getting hardware-accelerated x.264 playback. Unfortunately, things haven't gone as well as I would have hoped.

Basic info: ATI Radeon HD 4650 AGP, two monitors, Gentoo amd64, kernel 2.6.35

First, I tried the ATI binary drivers, version 10.7. Running 'Xorg -configure' with these drivers installed caused a segfault, but 'aticonfig --initial=dual-head --screen-layout=left' produced a useful config file.

Using the resulting config, X started and ran fine for awhile. 3D acceleration was confirmed to work with glxgears and a few games. However, the system is unstable while working with 2D applications. Actions like flipping through workspaces, scrolling through a long web page or even opening and closing the Fluxbox slit will cause X to noticeably lag and stutter, and may cause the whole machine to freeze hard. This instability persists even after X is shut down - dmesg or less on a text console can crash the machine.

Next I tried the open-source radeonhd driver. This one causes no stability issues, but I have had no luck getting 2D or 3D acceleration of any kind to work. Video playback only works if the app is told not to use acceleration ('-vo x11' for mplayer). X will throw up a glitched display and hang the machine if I start it with the kernel DRM modules loaded (CONFIG_DRM_RADEON and its deps), and of course provides no 3D acceleration if those modules are disabled.

So, that's that. Anyone have advice for getting either or these drivers working? Or for that matter, any other driver? I've heard of at least 4 - fglrx, ati, radeonhd, rv600, others?

Attached are my kernel config and Xorg logs for the radeonhd driver with and without the kernel DRM modules. I had a log for the fglrx driver, but it was corrupted when the machine crashed seconds after I copied it. I will make another later.
Attached Files
File Type: log Xorg.0.log (49.9 KB, 0 views)
File Type: txt kconfig.txt (65.5 KB, 0 views)
File Type: log radeonhd.log (62.9 KB, 0 views)

Last edited by Electrode; 08-17-2010 at 05:32 PM.
 
Old 08-17-2010, 05:49 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Hi, the RadeonHD driver is more or less discontinued, and replaced byt the radeon (what you call ati) driver. Neither has graphic acceleration yet. the radeon driver is on the way to get it by its r600g component (in progress). Opensource HD video playback is way out for the moment.
Your only chance of getting hardware acceleration and hardware video playback is using the fglrx (binary) driver. this is done through va-api (which hooks on to fglrx's XvBA). I suggest searching phoronix.com for xvba. That'll give you some info about the workings of hardware video acceleration.

Serafean
 
Old 08-17-2010, 06:37 PM   #3
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Quote:
Originally Posted by serafean View Post
Hi, the RadeonHD driver is more or less discontinued, and replaced byt the radeon (what you call ati) driver. Neither has graphic acceleration yet.
This is not true. 2D and 3D acceleration works with both radeon and radeonhd on the OP's graphics card, though there maybe AGP related issues. What you said about radeonhd being discontinued is correct, however.

Quote:
the radeon driver is on the way to get it by its r600g component (in progress). Opensource HD video playback is way out for the moment.
Your only chance of getting hardware acceleration and hardware video playback is using the fglrx (binary) driver. this is done through va-api (which hooks on to fglrx's XvBA). I suggest searching phoronix.com for xvba. That'll give you some info about the workings of hardware video acceleration.

Serafean
Unfortunately, what you said about video decoding is true. This will only work with fglrx. Xv is supported by radeon, but not XvBA or VAAPI.

To the OP... If you want to troubleshoot the slow down and crashes with fglrx, see if you can grab the output of 'dmesg', your /var/log/Xorg.0.log file, and the output of 'ps ax' while you are experiencing those problems, and start a thread here: http://www.phoronix.com/forums/forumdisplay.php?f=19

If you want to get 2D and 3D acceleration going with radeon, make sure fglrx is removed entirely, and then attach your /var/log/Xorg.0.log file to a post here.

Adam
 
Old 08-17-2010, 09:32 PM   #4
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
Interesting info so far. I have:

* installed radeon
* removed radeonhd
* gathered logs from fglrx, then removed it
* written a new config for radeon and done some initial testing

Attached are dmesg, Xorg logs and xorg.conf's for the fglrx and radeon drivers.

The fglrx logs were made while I had a browser window open and the machine was acting up pretty heavily. Fortunately I got X shut down and rebooted before it crashed again.

I don't have 2D or 3D acceleration working with the radeon driver yet, but I'm just starting to read through the docs.
Attached Files
File Type: log radeon.log (64.4 KB, 1 views)
File Type: log fglrx.log (31.7 KB, 2 views)
File Type: txt dmesg_fglrx.txt (38.9 KB, 0 views)
 
Old 08-17-2010, 09:34 PM   #5
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
Additional attachments for my previous post.
Attached Files
File Type: txt dmesg_radeon.txt (37.9 KB, 1 views)
File Type: txt radeon_config.txt (1.5 KB, 0 views)
File Type: txt fglrx_config.txt (1.9 KB, 0 views)
 
Old 08-17-2010, 09:56 PM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
If you want help with fglrx, ask on the phoronix forum as I suggested.

As for using radeon...

Code:
[  1909.388] [drm] failed to load kernel module "radeon"
It helps if you compile in support for your hardware when you compile the kernel, you silly gentoo user.

Adam
 
Old 08-17-2010, 10:53 PM   #7
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
Restored the previously disabled DRM modules (which caused X to glitch when I was testing the radeonhd driver), and we now appear to be in business. Almost, anyway.

Xv and other 2D acceleration features are working (but obviously not vaapi). 3D works, at least for 64-bit apps. Running a 32-bit OpenGL app causes the machine to explode, with no information logged.

Ideas?
 
Old 08-18-2010, 04:34 AM   #8
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Did you install the 32-bit version of mesa?

Adam
 
Old 08-18-2010, 09:22 AM   #9
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
Yes, I did.
 
Old 08-18-2010, 09:36 AM   #10
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Can you define 'explode'? :-)

Adam
 
Old 08-18-2010, 05:43 PM   #11
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
Well, perhaps "explode" is too strong a term. As soon as the app starts, the machine hangs - I have to hit the reset switch to get it going again.
 
Old 08-18-2010, 05:52 PM   #12
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware, LFS, Gentoo
Posts: 158

Original Poster
Rep: Reputation: 16
Hmm, I've done some more experiments and it seems only SOME 32-bit GL apps crash the system. Built and ran a 32-bit glxgears and that worked fine.

The app I'm having trouble with at the moment is the Kega Fusion emulator. Note that it's a static-linked binary file, and the README states that the author uses an nvidia card, so perhaps an nvidia lib got linked into it, and that's the cause of the trouble?

Last edited by Electrode; 08-18-2010 at 06:04 PM.
 
Old 08-18-2010, 07:46 PM   #13
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
That actually sounds quite likely. If it's not linking against your 32-bit mesa library, then there's no telling what's going on :-) Maybe you can convince the developer to release a dynamic linked binary version?

Adam
 
  


Reply

Tags
agp, amd64, ati, fglrx, radeonhd


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
Linux driver for Radeon HD 4650 AGP 1Gb vfilipch Linux - Newbie 4 09-03-2009 11:50 AM
ATI Radeon 7000 AGP 64 MB - Xorg 7.4 won't load with 'radeon' driver highowl Linux - Hardware 2 02-23-2009 09:31 AM
Installing Binary Driver For ATI Radeon EAX300SE edwin11 Linux - Hardware 7 06-26-2006 12:19 PM
ATI Driver failing to detect X850XT PE AGP on SuSE 10 OSS 32-Bit Electrolyte Linux - Hardware 29 02-18-2006 08:01 AM
ATI Radeon fglrx driver - setting AGP speed vharishankar Linux - Hardware 17 08-17-2004 10:47 PM


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