[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform

  Thread Rating:
  • 14 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #106
Updated OP with most above info. Hopefully, someone can share an updated (kernel, ati drivers, etc) Nemek build.

Please also post all driver-problems related to LAN, WLAN, Sound, etc in this topic together with your hardware.
find quote
jbo87 Offline
Member
Posts: 66
Joined: Jan 2010
Reputation: 0
Post: #107
ATI Catalyst 11.6 has been released. I have no changelog though.

http://www2.ati.com/drivers/linux/ati-dr...x86_64.run
find quote
Rapoza Offline
Junior Member
Posts: 36
Joined: Jun 2011
Reputation: 0
Post: #108
Robotica Wrote:Updated OP with most above info. Hopefully, someone can share an updated (kernel, ati drivers, etc) Nemek build.

Please also post all driver-problems related to LAN, WLAN, Sound, etc in this topic together with your hardware.

Take care with the current rexbron/catalysthacks xvba patches. They have incompatibility with the splitted-desktop libva and xbmc-pvr that jumps when installing xbmc or updating, and then there's no back-turn. I found out the hard way.

Follow:
http://ubuntuforums.org/showthread.php?t=1677477&page=2
http://forum.xbmc.org/printthread.php?t=...=40&page=5

Seems to me that rexbron could be based on catalysthacks as also shared the bug.

My vaapi installation on natty (cli), note new version:
Code:
cd ~/; mkdir vaapi; cd vaapi/
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva1_0.32.0-1+sds2_amd64.deb
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva-dev_0.32.0-1+sds2_amd64.deb

sudo apt-get install -y libkms1 libdrm-dev pkg-config
sudo dpkg -i libva1_0.32.0-1+sds2_amd64.deb libva-dev_0.32.0-1+sds2_amd64.deb

wget http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.8.0-1_amd64.deb
sudo dpkg -i xvba-video_0.8.0-1_amd64.deb

My driver installation lines, note the two first:
Code:
sudo apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install -y ia32-libs

cd ~/; mkdir catalyst11.5; cd catalyst11.5/
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run
chmod +x ati-driver-installer-11-5-x86.x86_64.run

sudo sh ./ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty
sudo dpkg -i fglrx*.deb

sudo aticonfig --initial -f ##--adapter=all##
sudo reboot

For ASUS e35m1-i deluxe owners, as me, take into account that there applies the bug in the driver where the gfx card seems to be not supported.
Best results on Maverick, using the vaapi versions 0.32+0.7.8 and 11.5 catalyst driver using the following patches:

Code:
##UNSUPPORTED HARDWARE WATERMARK
cd ~/catalyst11.5/
#IF NOT PRESENT
sh ati-driver-installer-11-5-x86.x86_64.run --extract driver

sudo mv /etc/ati/control ~/control.bak
sudo cp driver/common/etc/ati/control /etc/ati

Its also required the DRI patch:
Code:
sudo nano /etc/X11/xorg.conf
## ADD ON MODULE:
## Load "dri"
## Change DPMS to false (energy saving)

I have it working on Maverick, only have some slight tearing and HD content not supported.
Natty don't wan't to use the vaapi, drivers or anything. Don't know why.
vainfo shows unknow error and fglrxinfo can't access the device.

I also noticed that pvr xbmc does weird things with subtitles, and only shows embedded ones.

If anyone interested I could share my complete command list+xorg.conf so we can make a working Natty + ASUS e35m1-i deluxe installation.

Best regards,
Sergio.
(This post was last modified: 2011-06-16 12:39 by Rapoza.)
find quote
wobu Offline
Junior Member
Posts: 26
Joined: Feb 2011
Reputation: 3
Location: Germany
Post: #109
the splitted desktop vaapi libs become open source

http://www.phoronix.com/scan.php?page=ne...&px=OTU2Ng

Using XBMC PVR build on Ubuntu Natty Narwhal
  • Case: Silverstone GD06
  • Mainboard: Asus E35M1-M - AMD Fusion
find quote
Rapoza Offline
Junior Member
Posts: 36
Joined: Jun 2011
Reputation: 0
Post: #110
Robotica Wrote:Build XBMC:
// include this patch.

I know I'm a complete nerd, but please robotica, can you include the steps to do this?

Another question: If you include the Ubuntu-X rep (for open driver), then the vaapi changes to version 1.x.x on the first dist-upgrade. Are those preferible over gbeauchesne?

**I ate you, now I have to do another clean install Laugh
find quote
GeorgeVasil Offline
Junior Member
Posts: 3
Joined: Mar 2011
Reputation: 0
Post: #111
Ok i did some testing today..on my 785G platform.

Quote:sudo apt-get libdrm-dev

wget three vaapi packages and dpkg -i them (with the newest xbva 0.8.x)

wget the latest 11.6 catalyst drivers
sudo sh ati-driver --buildpkg Ubuntu/natty
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial

test with vainfo, fglrxinfo all ok

sudo shutdown -r now (reboot!)

xbmc-pvr https://launchpad.net/~lars-opdenkamp/+archive/xbmc-pvr

With vaapi enabled + unity enabled ..xbmc crashes at playback.

When i disable unity xbmc plays videos with vaapi but it's a total mess.

720p playback seems ok but 1080p has issues :/

here are some screenshots.

home 2k9 1080p

http://imageshack.us/photo/my-images/6/img0005mos.jpg/

http://imageshack.us/photo/my-images/26/img0006hsy.jpg/

iceage2 1080p

http://imageshack.us/photo/my-images/192...07znp.jpg/

http://imageshack.us/photo/my-images/191/img0008oo.jpg/
find quote
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #112
Rapoza Wrote:I know I'm a complete nerd, but please robotica, can you include the steps to do this?

Another question: If you include the Ubuntu-X rep (for open driver), then the vaapi changes to version 1.x.x on the first dist-upgrade. Are those preferible over gbeauchesne?

**I ate you, now I have to do another clean install Laugh

Thanks for your above info. I have updated the OP with it, only based on 11.6 ATI Driver. I am not sure to include reps, so I leave them out of the OP for now.

Tonight I will have a look for the patch. ATM I have HP DM1 Fusion netbook and not the ASUS board. So my media center is postphoned for a while...

It would be great if you could share your complete command list+xorg.conf to make a working Natty XBMC@AMD.
(This post was last modified: 2011-06-16 14:21 by Robotica.)
find quote
Rapoza Offline
Junior Member
Posts: 36
Joined: Jun 2011
Reputation: 0
Post: #113
@George:
What I'm suspecting is that it isn't possible to make a minimal command line working installation without the desktop.

¿Can you tell me whats the key on xbmc to show that info?

@Robotica:
the problem is that isn't completely working, but being a programmer I've done some optimization. Professional deform. I was thinking on doing a script.
This evening.
find quote
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #114
Rapoza Wrote:@George:
What I'm suspecting is that it isn't possible to make a minimal command line working installation without the desktop.

¿Can you tell me whats the key on xbmc to show that info?

Turn on debugging in settings (via XBMC GUI)
find quote
wobu Offline
Junior Member
Posts: 26
Joined: Feb 2011
Reputation: 3
Location: Germany
Post: #115
Rapoza Wrote:@George:
What I'm suspecting is that it isn't possible to make a minimal command line working installation without the desktop.

¿Can you tell me whats the key on xbmc to show that info?

@Robotica:
the problem is that isn't completely working, but being a programmer I've done some optimization. Professional deform. I was thinking on doing a script.
This evening.

Key 'O' will turn it on

Using XBMC PVR build on Ubuntu Natty Narwhal
  • Case: Silverstone GD06
  • Mainboard: Asus E35M1-M - AMD Fusion
find quote
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #116
Rapoza Wrote:I know I'm a complete nerd, but please robotica, can you include the steps to do this?

Another question: If you include the Ubuntu-X rep (for open driver), then the vaapi changes to version 1.x.x on the first dist-upgrade. Are those preferible over gbeauchesne?

**I ate you, now I have to do another clean install Laugh

Maybe it is easier to build from GIT instead of using 10. 1 since the patch is included.

Or use:

Code:
./bootstrap
./configure --prefix=/usr/local/xbmc --enable-vaapi --enable-libbluray
wget http://paste.kde.org/7020/raw/ -O ./ReferenceClockHang.patch
patch -p1 < ./ReferenceClockHang.patch
make -j2
sudo make install
(This post was last modified: 2011-06-16 15:33 by Robotica.)
find quote
WytRaven Offline
Junior Member
Posts: 41
Joined: Jun 2011
Reputation: 0
Post: #117
If you are like me and using the 2.6.39 kernel then the standard method of installation wont work. Here's a revised version based on Robotica's original format which works for us:

Code:
sudo apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install -y ia32-libs

cd ~; mkdir catalyst11.6; cd catalyst11.6
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
wget http://www.mindwerks.net/wp-content/uploads/2011/03/2.6.39_bkl.patch
wget http://www.mindwerks.net/wp-content/uploads/2011/03/no_bkl.patch
chmod +x ati-driver-installer-11-6-x86.x86_64.run
sh ./ati-driver-installer-11-6-x86.x86_64.run --extract ati
cd ati; for i in ../*.patch; do patch -p1 < $i; done
./ati-installer.sh 8.861 --buildpkg Ubuntu/natty
cd ..
rm -rf ati
sudo dpkg -i fglrx*.deb
sudo reboot
(This post was last modified: 2011-06-16 22:00 by WytRaven.)
find quote
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #118
WytRaven Wrote:If you are like me and using the 2.6.39 kernel then the standard method of installation wont work. Here's a revised version based on Robotica's original format which works for us:

Code:
sudo apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install -y ia32-libs

cd ~; mkdir catalyst11.6; cd catalyst11.6
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-6-x86.x86_64.run
wget http://www.mindwerks.net/wp-content/uploads/2011/03/2.6.39_bkl.patch
wget http://www.mindwerks.net/wp-content/uploads/2011/03/no_bkl.patch
chmod +x ati-driver-installer-11-6-x86.x86_64.run
sh ./ati-driver-installer-11-6-x86.x86_64.run --extract ati
cd ati; for i in ../*.patch; do patch -p1 < $i; done
./ati-installer.sh 8.841 --buildpkg Ubuntu/natty
cd ..
rm -rf ati
sudo dpkg -i fglrx*.deb
sudo reboot

Cool & thanks. Updated OP with this info.

Also added sudo aticonfig --initial -f ##--adapter=all##


And which libva do you use? The patched from https://launchpad.net/~rexbron/+archive/bugfixes or just the normal http://www.splitted-desktop.com/~gbeauch..._amd64.deb
(This post was last modified: 2011-06-16 16:50 by Robotica.)
find quote
WytRaven Offline
Junior Member
Posts: 41
Joined: Jun 2011
Reputation: 0
Post: #119
Robotica Wrote:Isn't sudo aticonfig --initial -f ##--adapter=all##
needed?

Only if you don't have an /etc/X11/xorg.conf already. Well let's just say that I didn't do an aticonfig and already had an /etc/X11/xorg.conf in place and it worked for me.

Robotica Wrote:And which libva do you use? The patched from https://launchpad.net/~rexbron/+archive/bugfixes or just the normal http://www.splitted-desktop.com/~gbeauch..._amd64.deb

I currently have the 0.8.0-1 from splitted installed, here's my vainfo

Code:
libva: libva version 0.32.0-sds2
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0
vainfo: Supported profile and entrypoints
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD

But I have not compiled xbmc yet. I'm still playing with mplayer and have no sound and -vo vaapi crashes it every time. I may just go straight for the xbmc build and then start figuring out the issues as I have no idea if the mplayer crash is it's fault or the vaapi libs at this point and I have no intention of using mplayer on this machine beyond this testing I'm doing.
find quote
Robotica Offline
Posting Freak
Posts: 1,202
Joined: Aug 2010
Reputation: 5
Post: #120
Edited: bullshit
(This post was last modified: 2011-06-16 17:48 by Robotica.)
find quote
Post Reply