Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Jessie & NUC Broadwell : VAAPI needs to be root

Need help with peripherals or devices?
Post Reply
Message
Author
Pheldwyn
Posts: 3
Joined: 2015-11-18 15:19

[SOLVED] Jessie & NUC Broadwell : VAAPI needs to be root

#1 Post by Pheldwyn »

Hi !
(by advance, excuse my english ...)

Trying to make vaapi working on a fresh Jessie (installer 8.2) with a non-root user : it works well on a 4th generation NUC (D34010WYK) but not at all on NUC5i3RYK.

I've ran the exact same steps on each unit :
- have installed the same Jessie 64bits (with only system base utils, SSH server and XFCE in each case)
- have added those packages : deb-multimedia-keyring libva1 libva-intel-vaapi-driver vainfo mesa-utils xorg xorg-dev x11-apps xinput mpv

On 4th generation NUC, vainfo give me the same result both for root and non-root user :
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 1.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
On 5th generation NUC, vainfo is ok for root :
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Broadwell - 1.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
.. and i've got video acceleration when using mpv

But for the non-root user :
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
... and I don't understand why.
The NUC haven't got the same CPU and GPU, but it seems the same driver works well for both (for root at least)
For the rest everything is the same (same rights on driver file for example), non-root user created the same ways, added in both case to group video.
What am i missing ? (i know i can miss a lot, really not an expert)
Last edited by Pheldwyn on 2015-11-24 16:44, edited 1 time in total.

Pheldwyn
Posts: 3
Joined: 2015-11-18 15:19

Re: Jessie & NUC Broadwell : VAAPI needs to be root

#2 Post by Pheldwyn »

Just found something : I haven't specified it, but in all case i'm lauching X with the non-root user.

What I have found : vainfo works well when X is not launched (i've just got the line saying that it can't connect to X, but the vaainfo command produced the normal thing).
And it does'nt work anymore as soon as I start X.

Pheldwyn
Posts: 3
Joined: 2015-11-18 15:19

Re: [SOLVED] Jessie & NUC Broadwell : VAAPI needs to be root

#3 Post by Pheldwyn »

I solved my problem : i still don't understand while it waxn't working, but i've just updated the xserver-xorg-video-intel package from the jessie backports.

Post Reply