[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
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: 987
Joined: Aug 2010
Reputation: 3
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: 987
Joined: Aug 2010
Reputation: 3
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: 987
Joined: Aug 2010
Reputation: 3
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: 987
Joined: Aug 2010
Reputation: 3
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: 987
Joined: Aug 2010
Reputation: 3
Post: #120
Edited: bullshit
(This post was last modified: 2011-06-16 17:48 by Robotica.)
find quote
Post Reply