You are not logged in.

#1 2012-02-27 06:12:30

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

[SOLVED] Enabling hardware acceleration for Intel GMA x3100

On my desktop, HD Videos sometimes lags (horizontal lines) when the camera moves too fast in the video. Searching on google said something about enabling hardware acceleration.

I checked the pdf here specs & it has something written about HD video playback.

So, I checked if I had libva package installed. It was installed but libva-driver-intel was not installed. So, I installed it.

I did a restart & issued the command vainfo

shadyabhi@archlinux ~ $ vainfo 
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i915_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
shadyabhi@archlinux ~ $ 

I did this:

shadyabhi@archlinux ~ $ pacman -Ql libva-driver-intel 
libva-driver-intel /usr/
libva-driver-intel /usr/lib/
libva-driver-intel /usr/lib/dri/
libva-driver-intel /usr/lib/dri/i965_drv_video.so
libva-driver-intel /usr/share/
libva-driver-intel /usr/share/licenses/
libva-driver-intel /usr/share/licenses/libva-driver-intel/
libva-driver-intel /usr/share/licenses/libva-driver-intel/COPYING
shadyabhi@archlinux ~ $ 

So, it's something like vainfo is searching for /usr/lib/dri/i915_drv_video.so but the installed package has supplied /usr/lib/dri/i965_drv_video.so.

shadyabhi@archlinux ~ $ lsmod | grep intel
snd_hda_intel          23375  2 
snd_hda_codec          89160  2 snd_hda_intel,snd_hda_codec_realtek
snd_pcm                74780  2 snd_hda_codec,snd_hda_intel
intel_agp              10904  1 i915
intel_gtt              14519  3 intel_agp,i915
snd_page_alloc          7153  2 snd_pcm,snd_hda_intel
snd                    59214  10 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek
shadyabhi@archlinux ~ $ 

Above command shows that I have i915. So, how do I go about enabling hardware acceleration for my onboard graphics?

EDIT: After going through the link http://intellinuxgraphics.org/h264.html, I have also compiled libva with --enable-i915-driver option.

Last edited by shadyabhi (2012-02-29 00:31:08)

Offline

#2 2012-02-28 03:05:05

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

By "horizontal lines" are you refering to tearing? (non-synchronized screen updates)

What is your hardware? Window manager ?

Edit: sorry, didn't re-read your post's title where GMA x3100 is mentionned.

Last edited by stqn (2012-02-28 04:10:04)

Offline

#3 2012-02-28 03:11:05

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

X3100 doesn't support libva.

What you're observing is probably what stqn mentions - tearing. Shouldn't happen unless with some compositors. So stqn's question is the right one - which window manager are you using? Also, which video player and what output method are you using?

Offline

#4 2012-02-28 04:14:44

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

I was playing around with settings and somehow it has disappeared. I would better request Forum Admin to delete the post. Thanks.

Offline

#5 2012-02-28 08:05:39

sano
Member
Registered: 2012-02-11
Posts: 114

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

You don't, by any chance, remember the settings you were playing around with?
I have the same problem, with the same driver (different card though), and searching the forum, wiki and web didn't give me any solution other than disabling composition so far.

So, if you found a way to get rid of tearing, but keeping transparent terminal/conky etc., please let other people know.

Offline

#6 2012-02-28 21:46:37

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

shadyabhi wrote:

I was playing around with settings and somehow it has disappeared. I would better request Forum Admin to delete the post. Thanks.

Even if you don't remember exactly what you changed, it would be more useful to answer the question about your window manager and if you're using compositing or not, rather than ask the thread to be deleted (which won't happen.)

As is, you just wasted everybody's time...

Offline

#7 2012-02-28 23:47:36

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

stqn wrote:

Even if you don't remember exactly what you changed, it would be more useful to answer the question about your window manager and if you're using compositing or not, rather than ask the thread to be deleted (which won't happen.)

As is, you just wasted everybody's time...

According to the PDF, http://download.intel.com/products/grap … _guide.pdf, my desktop DG33FB motherboard with GMA x3100 has a feature of hardware acceleration. My environment is openbox + xcompmgr + ArchLinux 64 bit.

I start xcompmgr with the following options. xcompmgr -fFcCn -D 2 -f 0.3

In the smplayer, I have output driver as xv.

So, how do I enable it & check that it's enabled? I still have the problem:

shadyabhi@archlinux ~ $ vainfo 
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i915_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
shadyabhi@archlinux ~ $ 

Last edited by shadyabhi (2012-02-28 23:52:38)

Offline

#8 2012-02-29 00:16:49

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Enabling hardware acceleration for Intel GMA x3100

Like I already said X3100 does *not* support libva.

Your tearing issue comes from using xcompmgr. Not possible to get rid of it, it's a deficiency of xcompmgr.

Offline

Board footer

Powered by FluxBB