LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ATI Radeon HD 4650 AGP - binary driver crashes, oss driver provides no acceleration (http://www.linuxquestions.org/questions/linux-hardware-18/ati-radeon-hd-4650-agp-binary-driver-crashes-oss-driver-provides-no-acceleration-826864/)

Electrode 08-17-2010 05:31 PM

ATI Radeon HD 4650 AGP - binary driver crashes, oss driver provides no acceleration
 
3 Attachment(s)
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.

serafean 08-17-2010 05:49 PM

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

adamk75 08-17-2010 06:37 PM

Quote:

Originally Posted by serafean (Post 4069523)
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

Electrode 08-17-2010 09:32 PM

3 Attachment(s)
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.

Electrode 08-17-2010 09:34 PM

3 Attachment(s)
Additional attachments for my previous post.

adamk75 08-17-2010 09:56 PM

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

Electrode 08-17-2010 10:53 PM

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?

adamk75 08-18-2010 04:34 AM

Did you install the 32-bit version of mesa?

Adam

Electrode 08-18-2010 09:22 AM

Yes, I did.

adamk75 08-18-2010 09:36 AM

Can you define 'explode'? :-)

Adam

Electrode 08-18-2010 05:43 PM

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.

Electrode 08-18-2010 05:52 PM

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?

adamk75 08-18-2010 07:46 PM

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


All times are GMT -5. The time now is 12:23 PM.