[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) |
- WytRaven - 2011-06-17 Rapoza Wrote:I also tried some things last night. As of now I have an ASUS E35M1-I Deluxe system that can do the following things: Kernel: linux 2.6.39-3 GFX: Catalyst 11.6 NIC: Realtek r8168 v8.024.00 12TB RAID5 (via mdadm 3.1.4 variant from proposed) AFP Fileserver with Time Machine support (via netatalk and avahi) XBMC minus VAAPI acceleration This was all put together using the PPA/apt-get method outlined by SDM2011 with some modifications due to some missing info (like 2.6.39-3 is in xorg-edgers for example) and that I installed Catalyst 11.6 (after patching for use with 2.6.39) plus of course the extra stuff I'm doing for my file server side of things. Obviously no VA API is an issue but that really is the only issue left for me. Everything else is working fine. I might have a go at removing 11.6 and installing whatever is in the repositorys and see if that works but at this point I doubt it. My audio issue was literally a matter of un-muting the HDMI SPDIF out as per Robitca's instruction and setting the appropriate outputs in XBMC. That said I am only using pass through to my receiver so volume is not relevant to me. I have disabled the analog audio in BIOS. I am not sure I am understanding your net issue. If you install the r8168 driver then you won't have NIC related kernel panics when operating in gigabit mode and the connection won't constantly be being reset. It has nothing to do with actual NIC config or network settings. I have configured nothing (apart from adding the xbmc user to netdev group) with regard to networking as I use DHCP with my router handing out a static IP to this box. The mini.iso comes configured from the get go with DHCP support. Also note that I don't use the wireless mini-pcie card on this board and have physically removed it as I have no need for it whatsoever. - WytRaven - 2011-06-17 Rapoza Wrote:Currently doing a complete installation as per OP instructions. Natty cli. And that's why you need to patch the Catalyst drivers as per the following (the cd ~ can be replaced with wherever you want to download to): Code: cd ~; mkdir catalyst11.6; cd catalyst11.6 Or perhaps you don't have all the dependancies in place? Code: apt-get install -y build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases ia32-libs - Rapoza - 2011-06-17 Yes WytRaven, I have all dependencies. I loaded as per OP instructions. But your installation is a cli or desktop? Desktop isn't it? I'm updating my installation message on semi-realtime (when no-one looks in the office, jeje) Version of your code that works for me: Quote:cd ~; mkdir catalyst11.6; cd catalyst11.6 Can you please post the mods for the sdm2011 method? I'll test this install, then go for the standard and if also fails, go for the sdm. - WytRaven - 2011-06-17 Nope I am running from mini.iso no desktop whatsoever. Catalyst 11.6 cannot be installed from AMD download with kernel 2.6.39 without being patched. It won't work, as you have discovered. On the network front: The error you report about r8169 and no firmware is again because of kernel 2.6.39 and the fact that you don't want to be using r8169 anyway. The NIC will still function fine for ssh but it will fall to pieces under heavy load. Ubuntu gets it wrong, that driver is not appropriate for the Realtek 8111E. I have already provided instructions on getting the correct driver from Realtek and installing,which works perfectly with 2.6.39 and is solid under extreme pressure. I'll go look for the post and link it in. In reference to your above post and catalyst install the 8.841 should technically be 8.861 but it seems to work either way. Not sure what the implications would be with it referencing an older version. That was my bad, fixed for myself but forgot to update Robtica on it. - Rapoza - 2011-06-17 Yes I saw your net fix proposal. Just left for a running version. I think that installation I'm currently doing its a complete failure... If your doing it from cli, please tell me exactly how. Seems that "some one-eyed stared at me" Finally running xbmc, totally mess AHAH: Quote:X.Org X Server 1.10.1 Just something I noticed... - devil103 - 2011-06-17 As I said before, I'm now running the 2.6.38 kernel and working VAAPI alongside the Unity Desktop. The Unity desktop will be disabled in a later state but for now I noticed something strange. Perhaps coincidental but when starting XBMC from the unity desktop I get the same behaviour as before: XBMC workings fine until playing a mkv file, just closes and nothing further. When starting XBMC from cli, everything works perfectly. I'm sure I only have one version of XBMC installed (XBMC-PVR) and this was a fresh install so no remnants of any previous XBMC install either... Just thought I'd mention it... PS: and I mean staring XBMC from a terminal while running Unity desktop! - WytRaven - 2011-06-17 Rapoza Wrote:Yes I saw your net fix proposal. Just left for a running version. Ok Rapoza, for what it's worth here is my exact install process minus my file server/raid related stuff. Install Process Now hopefully I didn't do anything that isn't in my notes. I'm a reasonably confident I did not with one exception. I know I did not do aticonfig --initial -f as I already had an xorg.conf I copied in (maybe I should try that myself). This installation process assumes a network and the majority of installation being performed remotely via ssh. Also as should be clear I use "sudo su" for most of this so there aren't sudo's all over the place in these instructions. EDIT: Cleaned up things at the bottom of the process. Also removed two installation instructions that were including a large number of the same items. Should be clearer down there now. - WytRaven - 2011-06-17 Holy shit! VA API just started working. I removed my old xorg.conf and did an "aticonfig --initial -f", rebooted and bobs my freakin uncle! So to reiterate the system is (figured being absolutely explicit can't hurt): HDTV: Panasonic TH-P58VT20A Receiver: Yamaha RX-V667 Connection: HDMI A/V Mobo: ASUS E35M1-I Deluxe RAM: Kingston KVR1333D3N9K2/4G (4GB 2 x 2GB) SATA III: 5 x Hitachi Deskstar 7K3000 3TB (RAID5) E-SATA: 16GB Kingston SSD S100 (Boot Drive) PSU: Seasonic X-400 Fanless Gold WiFi mini-PCI-E: Removed Analog Audio: Disabled in BIOS Kernel: linux-2.6.39-3 GFX Driver: Catalyst 11.6 NIC Driver (8111E Gigabit Ethernet): Realtek r8168 8.024.00 All packages via apt-get from: ppa:lars-opdenkamp/xbmc-pvr ppa:ubuntu-x-swat/x-updates ppa:xorg-edgers/ppa With exception of xvba from Andrew Hunter, Catalyst direct from AMD patched for linux 2.6.39 compatibility, and NIC driver from Realtek. VA API h.264/VC-1 Acceleration: YES Multi-channel AC3/DTS HDMI pass through: YES - jbo87 - 2011-06-17 Can't wait to try out - SDM2011 - 2011-06-17 Quote:So, what I do now? What kind of installation? I think the SDM2011 method will not work if no desktop is installed. I only have the Slim login manager installed, although I am running pulseaudio. Quote:VA API just started working. I removed my old xorg.conf and did an "aticonfig --initial -f", rebooted and bobs my freakin uncle! Glad to hear it! I specified in my original post that I'm running without an xorg.conf. Perhaps letting the driver/X autodetect the configuration works around some bugs somewhere. Looks like you're getting even lower CPU usage than I have playing 1080p, so perhaps that's some improvement in Catalyst 11.6. If so, I look forward to it. Do you have any problems related to pausing videos and resuming? Particularly streaming video, it often triggers stuttering and loss of audio/video sync which eventually catches up again. It seems to be a driver bug, so I'm hoping this too has been addressed. Confirming - devil103 - 2011-06-17 Can confirm: Kernel 2.38.6 (don't dare to upgrade just yet) ATI drivers 11.6 xbmc-pvr from Lars libva, libva-x11, etc all from the multiverse, NOT splitted desktop xvba from Andrew Hunter CPU load with unity running and XBMC 720P: 20%! That's 10% less for me then with ATI 11.5 PS: same strange behavior: starting xbmc from application launcher = crash, starting xbmc from terminal with Unity running = just fine - Robotica - 2011-06-17 SDM2011 Wrote:Do you have any problems related to pausing videos and resuming? Particularly streaming video, it often triggers stuttering and loss of audio/video sync which eventually catches up again. It seems to be a driver bug, so I'm hoping this too has been addressed. Sure this is related to Linux/ VAAPI? Also on win or other platforms? I have seen some nice related patches go in to trunk. See: http://forum.xbmc.org/showthread.php?p=803298 So to solve this known issue, updating from git and build against newest FFMpeg should solve this. - Rapoza - 2011-06-17 WytRaven Wrote:Holy shit! VA API just started working. I removed my old xorg.conf and did an "aticonfig --initial -f", rebooted and bobs my freakin uncle! I told you all the time. "aticonfig --initial -f" Rules devil103 Wrote:Can confirm: Yes, thats the same working configuration that I have on Maverick. And it shows same CPU use, but some tearing and I don't know why but, on idle always one core @40% About the unity... Its incompatible with xbmc. Its everwhere around. But I'm sure that its related to compiz. Installed something about on maverick and now I have the same thing. Crashes from laucher, Ok from terminal. Could be about permissions? I got some flashing message of not having rights for... - Robotica - 2011-06-17 Rapoza Wrote:I told you all the time. "aticonfig --initial -f" Rules That's because XBMC continue refresh screen with your refresh rate. It's an XBMC feature. (same reason XBMC is consuming more watts idle-ing than when playing 1080p) Can you tell some more about your tearing? Which kind of films? Is this also on xbmc on Windows? WHat's in your xbmc log? etc. etc. - WytRaven - 2011-06-17 Got Simplicity skin installed and working by doing clone of git and installing manually. |