[LINUX] HOW-TO use VAAPI HW Acceleration on new Intel Sandy Bridge platform - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO use VAAPI HW Acceleration on new Intel Sandy Bridge platform (/showthread.php?tid=96669)
- alanwww1 - 2011-03-13 16:06
Hammi Wrote:Ok, not so easy to play a movie. XBMC crashes when trying to generate a thumb for the movie I want to play:
I never had such problem with any of the files i tried. Well this does not even have anything to do with vaapi as it was tried to decode it in software. It is some sort of other ffmpeg problem.
- Hammi - 2011-03-13 16:30
Yes, ran some additional tests. Dharma has the same issues.
Anyhow, I was able to work around this, and XBMC played the first few mins of the movie with <10% CPU load. EXCELLENT!
Keyboard layout configuration did not work for the Natty install. I ran "dpkg-reconfigure console-data", but this did not have any effect on the layout in XBMC... I will have to look into this.
And then... shutting down via the menu doesn't work, either. XBMC exists to X and then restarts. Not sure if this is an issues of Ubuntu or the startup skript.
I will run some more test, try to fix the above issues (and watch an entire movie ) before I will put the SSD from my current machine into the new one and reinstall for a "productive family machine".
- alanwww1 - 2011-03-13 17:14
Hammi Wrote:Anyhow, I was able to work around this, and XBMC played the first few mins of the movie with <10% CPU load. EXCELLENT!
Good to hear it works. What CPU do you have ? Could you please try projectM and what framerate do you have there ? I am just curious that can the 2000 series GPUS handle projectm the way the 3000 series ("K" letter in the product code) what i currently have. ?
Also can you try suspend. It probably won't work form xbmc but from terminal you can try sudo pm-suspend.
The shutdown behavior is expected and comes from the startup script i use. you can change that. I did it in case xbmc quits for some reason that it can start again.
Do you have the ocasional boot to black screen problem i have ?
Is Multichannel lpcm working for you with
I made a test with windows. Well dxva2 is NOT working properly at the moment with the newest drivers. So now linux support is actually ahead one step at the moment :-)
Suspend is working though.
- Hammi - 2011-03-13 22:15
alanwww1 Wrote:What CPU do you have ?
I have an i3-2100T.
alanwww1 Wrote:Could you please try projectM and what framerate do you have there?
Sorry, can't tell you. 2 secs after I start playing an MP3 (which plays fine with Dharma on my other machine) the screen locks up. The song continues playing, but I cannot locally control xbmc anymore. Logging in remotely via ssh also failed.
According to the log, there was no error in XBMC, so I guess it's some part of the display driver:
... Yes, according to Xorg.0.log.old, the GPU was hanging:
alanwww1 Wrote:Also can you try suspend. It probably won't work form xbmc but from terminal you can try sudo pm-suspend.
pm-suspend sends the machine to sleep. But it took me 3 attempts, including 2 times cutting power, to get the machine come back up again - of course, as a new boot. So all in all, I would still consider this "not working".
alanwww1 Wrote:The shutdown behavior is expected and comes from the startup script i use. you can change that. I did it in case xbmc quits for some reason that it can start again.
Where would I need to look for this? /usr/bin/runXBMC looks as if it would create an .xsession which should create a '/tmp/noRestartXBMC' in case no restart is wanted... All I'm looking for is the behavior controlled from XBMC's menus. If it's crashing, well... then it's crashing.
alanwww1 Wrote:Do you have the ocasional boot to black screen problem i have ?
Not sure... I may have just had that, but it may also have been simply because the HDMI cable was not plugged in when I started the machine.
alanwww1 Wrote:Is Multichannel lpcm working for you with
I'm not using sound via HDMI, but via SPDIF. That seems(!) to be working ok.
- Hammi - 2011-03-14 09:02
Just a quick update: I watched a movie, and saw (after the initial frame drops when starting the move) no framedrops. Although I had deinterlacing turned on ("Auto"), CPU load was still around 10%. There was also no crash or anything (noticeable) wrong with the video driver.
The only exception is: Crushed blacks. There is no conversion or anything comparable in XBMC or the driver to compensate for this, like there is for nVidia? Does anybody know if there are any plans to implement this?
Because of the GPU freeze with projectM (mentioned in my post above) and the hanging system when playing audio CDs (which, I think, also occurred when I did not have projectM activated), I'll try the 10.10 + 2.6.37 kernel from mainline + xorg-edgers + jools-ppa approach for Sandy Bridge as well (once I find the time to).
Will report back how that goes.
- Percius - 2011-03-14 20:46
Thank you thank you thank you....
Using your instructions I have full 1080P output with 8% CPU utilization (8% on one of the 4 cores).
Notes: Compiz crashes completely. When I had just 1 monitor setup it crashed 2 out of 10 boots, when I have 2 monitors connected (1 on vga for console, 1 hdmi(2)) mirrored @ 1080P 60hz it crashes every time.
Did not get more then 2.0 audio out of HDMI, however Digital Coax just works.
XBMC crashed every time I started a video. Applying todays updates then recompiling Mesa magically fixed the issue. Before that Log simply showed last event was starting a shader. It would crash and reload itself.
MSI H67MA-E35 ... Core I5 2400
Ubuntu 11.04 Alpha 3
Notes: Setting Xorg for 2 monitors was necessary for ubuntu to detect 2 monitors, however once ubuntu had them set to mirror I have 1 monitor & screen commented out in xorg.conf ... Not sure if this is associated with the video magically working but it works.
hopefully this board lasts longer then my AMD 780G board did. Lost sata ports on 4 of those boards (different manufacturers) within 2 years. Asus, MSI, Foxconn, another Asus....
- Percius - 2011-03-15 00:40
Anyone know how to patch LIRC with this kernel. LIRC is close to being unresponsive..... Have to hit a remote button for up to 10 seconds for a response....
- alanwww1 - 2011-03-15 01:22
Percius Wrote:Applying todays updates then recompiling Mesa magically fixed the issue. Before that Log simply showed last event was starting a shader. It would crash and reload itself.
Well i should have thought that not everybody uses the net install mini image, which automatically installs the newest packages. I will add an upgrade part to the guide.
Also whenever libgl-mesa* packages get updated from ppa, you have to recompile ans install mesa again.
- Hammi - 2011-03-15 12:27
exobuzz Wrote:I stuck some packages on my sandy bridge ppa with new libva and xbmc with vaapi support for those that want it up and running nice and easy on ubuntu maverick. its the bleeding edge git xbmc not the dharma 10.1 though.
I tried this after installing a basic 10.10 server, but for some reason, it's not working for me. XBMC apparently is the version from your repo (it shows pre-11), but when playing movies, the "o" info shows ff-h269, no sign of vaapi, and CPU load is high.
What I did after a minimal server install, all as root:
Remove apparmor, install 2.6.37 kernel from mainline:
Install some basic drivers:
Update from xorg-edgers:
Update from your ppa (I removed xorg-edgers and team-xbmc first, as there is a conflict in app names between these repos and yours, and I wanted to make sure I install from your ppa:
As mentioned above, there seems to be an issue with the driver. Not sure if it's the kernel or the update from your repo... Any hint what I may have been missing?
- alanwww1 - 2011-03-15 14:08
Could you please discuss
the stuff related to
in another thread ? Users who read this thread will be confused of the two methods and the solutions for them.