[elrepo] Intel video on CentOS 6.4 - SOLVED!

Andrey Zhunev a-j at a-j.ru
Fri Oct 4 16:40:31 EDT 2013


Thursday, October 3, 2013, 7:10:27 AM, you wrote:


> Thursday, October 3, 2013, 12:52:20 AM, you wrote:

>> On Wed, Oct 2, 2013 at 12:11 PM, Andrey Zhunev <a-j at a-j.ru> wrote:
>>> How do I know that the correct video driver is loaded?
>>>
>>> The reason for my question is the following lines in mythfrontend log:
>>>
>>> CoreContext mythrender_opengl.cpp:66 (Create) - OpenGL: Could not determine whether Sync to VBlank is enabled.
>>> CoreContext mythrender_opengl.cpp:142 (IsRecommendedRenderer) - OpenGL: OpenGL is using software rendering.
>>>
>>> And VAAPI or OpenGL-based video playback ends up with a black screen.
>>> Not sure if it's a mythtv misconfiguration, or something is wrong with
>>> the video driver... I suspect the latter, but I'm out of ideas how I
>>> could dig this further.
>>>
>>>
>>> Xorg.0.log: http://pastebin.com/raw.php?i=EeYGyWuh

>> Your X log file indicates that the intel driver is in use. Does lsmod
>> show the i915 module?

>> I cannot help with vaapi because I'm not familiar with it.

> Yes:

> # lsmod |grep i915
> i915                  537570  2
> drm_kms_helper         40087  1 i915
> drm                   265638  3 i915,drm_kms_helper
> i2c_algo_bit            5935  2 saa716x_tbs_dvb,i915
> i2c_core               31084  20
> i2c_i801,tbs6985fe,saa716x_tbs_dvb,tbs6991se,tbs6928fe,tbs6922fe,saa716x_core,tbs6618fe,tbs6991fe,tbs6982se,tbs6928se,tbs6985se,tbs6923fe,stv090x,tbs6680fe,tbs6982fe,i915,drm_kms_helper,drm,i2c_algo_bit
> video                  20674  1 i915


> I guess it's working then...
> Is there a way to forcibly set 'Sync to VBlank' to ON ?

> I don't know why Myth could not determine its state, but I guess
> that's the reason why it does not display video when configured to use
> VAAPI or OpenGL.



I found it! It was an old installation of NVidia proprietary driver,
that did not get completely uninstalled. libGL.so was still linked to
an NVidia library. I don't know why, and I have no idea why the proper
link was not restored when I reinstalled the package. So I had to
manually update the link, and everything just worked!

The correct config is:

# ls -l /usr/lib64/libGL*
lrwxrwxrwx 1 root root      10 Oct  4 20:12 /usr/lib64/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root      12 Oct  4 20:29 /usr/lib64/libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root  543352 Feb 11  2013 /usr/lib64/libGL.so.1.2
-rwxr-xr-x 1 root root  532864 Jun  3 22:22 /usr/lib64/libGL.so.1.2.0
-rwxr-xr-x 1 root root 1056992 May 31  2012 /usr/lib64/libGL.so.295.53
-rwxr-xr-x 1 root root 1057600 Nov 19  2012 /usr/lib64/libGL.so.295.75
-rwxr-xr-x 1 root root 1078720 Aug 21  2012 /usr/lib64/libGL.so.304.37
-rwxr-xr-x 1 root root 1078720 Nov  1  2012 /usr/lib64/libGL.so.304.60
lrwxrwxrwx 1 root root      11 Oct  4 20:12 /usr/lib64/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root      19 Oct  4 20:12 /usr/lib64/libGLU.so.1 -> libGLU.so.1.3.08005
-rwxr-xr-x 1 root root  451544 Feb 11  2013 /usr/lib64/libGLU.so.1.3.08005

Those *.295.53 - *.305.60 are old NVidia libraries that were not removed.

I'm not sure why libGL.so is linked to libGL.so.1, and only then to
the real library. But I left it as it was (maybe there's a good reason
to make it this way).


I need to say that Myth still could not determine Sync to VBlank
state. But now it does not complain about software rendering anymore,
and VAAPI works.


Matt,
I just watched one movie via VAAPI so far. I didn't see any X lock ups,
it seem to work quite good.
I'll leave Myth on Live TV for a night - just to check over a longer
period, and will post back, if you're interested.



-- 
Best regards,
 Andrey             



More information about the elrepo mailing list