Kodi Community Forum
[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform (/showthread.php?tid=99154)



- belrik - 2011-10-18

Balinus Wrote:Does it work out of the box with Ubuntu 11.10 ?

Well, it's working for me but I think it might be doing software decode. That said, my 1080p movies play fine on my (relatively) lowly 2.66Ghz Core2 quad test rig so the software decode is faster than it used to be. Not sure that the old AMD 4670 is used tho. Damn the fans on that thing are noisy!
Kudos to XBMC, used to see plenty of frame drops with software decode but it's pretty swift now!

Suggest you stay at 11.04 until they knock the bugs out of 11.10; it doesn't even run under unity, just crashes. You need Gnome Classic to get playback working.


- kobik - 2011-10-19

HI guys,
I need a little help here.
First I may say that totally green in the Linux area and mean totally.
I downloaded Ubuntu minimal ISO and got to the point I needed to select the machine's role.
I chose Lubuntu as I understood that it's pretty light weight and easy on resources.
All went fine until the end, rebooted, there was grub on boot and I chose Ubuntu to boot into.
After a few seconds of loading, screen entered into into standbye mode.
It suspect that the OS is running but there is something with the display drivers or settings.
Recovery mode is working and I can get into the shell as root.

Can someone give me some guidance here?
Thanks


- tjones - 2011-10-19

Robotica Wrote:......................

And I've read someone was using a leightweight windows manager (replacement for X). Maybe something like twm-kiosk, wayland, enlightment, fluxbox or windowmaker? Any more info on this? And I would love to test some even more minimal distro's? anyone idea's?

The only alternative to x is wayland to my knowledge and that's a whole other can of worms.

You can change out the window manager from compiz. I'd suggest an openbox distro.

Crunchbang openbox if you're looking for a debian based distro. My personal experience with crunchbang is that the system idles at around 50-80mb of ram.

Archbang is the arch equivalent.

Both use openbox as the window manager.

There is also wattos which again uses openbox and is based on ubuntu/debian the last time I checked.


- Balinus - 2011-10-19

kobik Wrote:HI guys,
I need a little help here.
First I may say that totally green in the Linux area and mean totally.
I downloaded Ubuntu minimal ISO and got to the point I needed to select the machine's role.
I chose Lubuntu as I understood that it's pretty light weight and easy on resources.
All went fine until the end, rebooted, there was grub on boot and I chose Ubuntu to boot into.
After a few seconds of loading, screen entered into into standbye mode.
It suspect that the OS is running but there is something with the display drivers or settings.
Recovery mode is working and I can get into the shell as root.

Can someone give me some guidance here?
Thanks

In recovery mode, try running "aticonfig --initial". Check elsewhere if that's the corect command. You might need to run as root or with the sudo prefix (i.e. "sudo aticonfig --initial").

Then reboot.


- Redsandro - 2011-10-19

belrik Wrote:Suggest you stay at 11.04 until they knock the bugs out of 11.10; it doesn't even run under unity, just crashes. You need Gnome Classic to get playback working.

Just run Xubuntu. It's the new Ubuntu.


- kobik - 2011-10-20

Balinus Wrote:In recovery mode, try running "aticonfig --initial". Check elsewhere if that's the corect command. You might need to run as root or with the sudo prefix (i.e. "sudo aticonfig --initial").

Then reboot.

Thanks, but it didn't work.
Went for a Xubuntu 11.10 install for now, but I got a problem now with Lars's repository when I run the update command

Code:
archive.ubuntu.com oneiric-updates/main i386 Packages            
Hit http://il.archive.ubuntu.com oneiric-updates/restricted i386 Packages      
Hit http://il.archive.ubuntu.com oneiric-updates/universe i386 Packages        
Hit http://il.archive.ubuntu.com oneiric-updates/multiverse i386 Packages      
Hit http://il.archive.ubuntu.com oneiric-updates/main TranslationIndex        
Hit http://il.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex  
Hit http://il.archive.ubuntu.com oneiric-updates/restricted TranslationIndex  
Hit http://il.archive.ubuntu.com oneiric-updates/universe TranslationIndex    
Hit http://il.archive.ubuntu.com oneiric-backports/main Sources                
Ign http://extras.ubuntu.com oneiric/main TranslationIndex                    
Get:6 http://ppa.launchpad.net oneiric/main i386 Packages [674 B]              
Ign http://ppa.launchpad.net oneiric/main TranslationIndex                    
Get:7 http://dl.google.com stable Release [1,347 B]                            
Hit http://security.ubuntu.com oneiric-security/multiverse i386 Packages      
Hit http://security.ubuntu.com oneiric-security/main TranslationIndex          
Hit http://security.ubuntu.com oneiric-security/multiverse TranslationIndex    
Hit http://security.ubuntu.com oneiric-security/restricted TranslationIndex    
Hit http://security.ubuntu.com oneiric-security/universe TranslationIndex      
Hit http://il.archive.ubuntu.com oneiric-backports/restricted Sources          
Hit http://il.archive.ubuntu.com oneiric-backports/universe Sources            
Hit http://il.archive.ubuntu.com oneiric-backports/multiverse Sources          
Hit http://il.archive.ubuntu.com oneiric-backports/main amd64 Packages        
Hit http://il.archive.ubuntu.com oneiric-backports/restricted amd64 Packages  
Hit http://il.archive.ubuntu.com oneiric-backports/universe amd64 Packages    
Ign http://ppa.launchpad.net oneiric/main TranslationIndex                    
Hit http://security.ubuntu.com oneiric-security/main Translation-en            
Hit http://security.ubuntu.com oneiric-security/multiverse Translation-en      
Hit http://security.ubuntu.com oneiric-security/restricted Translation-en      
Get:8 http://dl.google.com stable/main amd64 Packages [1,219 B]                
Hit http://security.ubuntu.com oneiric-security/universe Translation-en        
Hit http://il.archive.ubuntu.com oneiric-backports/multiverse amd64 Packages  
Hit http://il.archive.ubuntu.com oneiric-backports/main i386 Packages          
Hit http://il.archive.ubuntu.com oneiric-backports/restricted i386 Packages
Hit http://il.archive.ubuntu.com oneiric-backports/universe i386 Packages      
Hit http://il.archive.ubuntu.com oneiric-backports/multiverse i386 Packages    
Ign http://il.archive.ubuntu.com oneiric-backports/main TranslationIndex      
Ign http://il.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Ign http://il.archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Ign http://il.archive.ubuntu.com oneiric-backports/universe TranslationIndex  
Hit http://il.archive.ubuntu.com oneiric/main Translation-en                  
Get:9 http://dl.google.com stable/main i386 Packages [1,205 B]                
Ign http://dl.google.com stable/main TranslationIndex                          
Hit http://il.archive.ubuntu.com oneiric/multiverse Translation-en            
Hit http://il.archive.ubuntu.com oneiric/restricted Translation-en  
Hit http://il.archive.ubuntu.com oneiric/universe Translation-en    
Hit http://il.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://il.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://il.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://il.archive.ubuntu.com oneiric-updates/universe Translation-en
Ign http://il.archive.ubuntu.com oneiric-backports/main Translation-en_US
Ign http://il.archive.ubuntu.com oneiric-backports/main Translation-en
Ign http://il.archive.ubuntu.com oneiric-backports/multiverse Translation-en_US
Ign http://il.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Ign http://il.archive.ubuntu.com oneiric-backports/restricted Translation-en_US
Ign http://il.archive.ubuntu.com oneiric-backports/restricted Translation-en
Ign http://il.archive.ubuntu.com oneiric-backports/universe Translation-en_US
Ign http://il.archive.ubuntu.com oneiric-backports/universe Translation-en    
Err http://ppa.launchpad.net oneiric/main Sources                              
  404  Not Found
Err http://ppa.launchpad.net oneiric/main amd64 Packages            
  404  Not Found
Err http://ppa.launchpad.net oneiric/main i386 Packages              
  404  Not Found
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://ppa.launchpad.net oneiric/main Translation-en_US
Ign http://ppa.launchpad.net oneiric/main Translation-en
Ign http://extras.ubuntu.com oneiric/main Translation-en_US
Ign http://extras.ubuntu.com oneiric/main Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Fetched 15.9 kB in 5s (2,756 B/s)
W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.



- wsnipex - 2011-10-20

belrik Wrote:Suggest you stay at 11.04 until they knock the bugs out of 11.10; it doesn't even run under unity, just crashes. You need Gnome Classic to get playback working.

XBMC runs fine here under unity on 11.10

To have VAAPI working you need to install libva xvba-va-driver (this is out of memory, I'm not at home atm)


- kobik - 2011-10-20

I managed to install XBMC using this guide
http://www.noobslab.com/2011/09/install-xbmc-on-ubuntu-1110-oneiric.html

Now that I though that all my problems are gone I got this error:
XBMC needs hardware accelerated OpenGL rendering.
Install an appripriate graphic driver

Well I think I did using the steps described here.
Installed 11.9 drivers BTW.


- abudabi - 2011-10-20

output of vainfo and fglrxinfo commands?


- kobik - 2011-10-20

fglrxinfo
Code:
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6300 series Graphics
OpenGL version string: 1.4 (2.1 (4.1.11079 Compatibility Profile Context))

vainfo
Code:
libva: libva version 0.32.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/va/drivers/xvba_drv_video.so
vainfo: symbol lookup error: /usr/lib/fglrx/libAMDXvBA.so.1: undefined symbol: XF86DRIOpenConnection



- abudabi - 2011-10-20

I would hazard a guess that you need xvba ...

or you need to run this command

Code:
cd /usr/lib/dri; sudo ln -s /usr/lib/va/drivers/fglrx_drv_video.so fglrx_drv_video.so



EDIT:
Oh hang on...

Yours reads: Trying to open /usr/lib/va/drivers/xvba_drv_video.so
Mine reads: Trying to open /usr/lib/dri/fglrx_drv_video.so

Maybe that has something to do with it... Sorry but you will need a more knowledable bloke to help you further as I'm still a bit of a noob


- kobik - 2011-10-20

On the step of the ATI-AMD drivers installation it says: "Make sure to download the newest drivers and change the 8.872 accordingly."
What this number stands for?
I didn't change it, so it may be related to the problem as I installed v11.9 and not v11.7.


- abudabi - 2011-10-20

I also installed catalyst 11.9 (under ubuntu 11.10) so dont think it's that.


- Redsandro - 2011-10-20

kobik Wrote:Thanks, but it didn't work.
Went for a Xubuntu 11.10 install for now, but I got a problem now with Lars's repository when I run the update command

Code:
W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/binary-amd64/Packages  404  Not Found

Change oneiric to natty in source list.
Redsandro Wrote:[SIZE="4"]

5. Install patched XBMC from lars-opdenkamp PPA

Create /etc/apt/sources.list.d/xbmc-opdenkamp.list with following contents:
Code:
# RED 2011-10-08
# XBMC VAAPI patched natty repo

deb http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu natty main
deb-src http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu natty main



- Redsandro - 2011-10-20

kobik Wrote:Thanks, but it didn't work.
Went for a Xubuntu 11.10 install for now, but I got a problem now with Lars's repository when I run the update command

Code:
W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu/dists/oneiric/main/binary-amd64/Packages  404  Not Found

Change oneiric to natty in source list.
Redsandro Wrote:5. Install patched XBMC from lars-opdenkamp PPA

Create /etc/apt/sources.list.d/xbmc-opdenkamp.list with following contents:
Code:
# RED 2011-10-08
# XBMC VAAPI patched natty repo

deb http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu natty main
deb-src http://ppa.launchpad.net/lars-opdenkamp/xbmc-pvr/ubuntu natty main