I'm running 12-STABLE on a Thinkpad X1 [1st gen] which has an i5-3330u w/ HD4000 GPU. I've had it installed and running on this machine since 10.3 or so without issue, but I recently noticed VAAPI wasn't being used with mpv anymore. Up until recently [erm, possibly the last few months I suppose], VAAPI was working as a non root user with the x11 driver.
Investigating with vainfo has me completely puzzled what has gone wrong.
* If I run
* I am a member of the video group and have access to GPU hardware.
*
Here are my console outputs:
I've gone through my devfs configurations, checked groups and permissions of various components and nothing which suggests what would be causing this behaviour.
My xorg configuration is pretty barebones, with no GPU related entries in config files and letting it auto configure for the most part. Is this really a problem with an obscure permission, or is it an issue with my xorg installation?
Any advice on where to keep looking would be greatly appreciated.
Investigating with vainfo has me completely puzzled what has gone wrong.
* If I run
vainfo --display x11
it fails, but sudo vainfo --display x11
works fine, which suggests a permissions issue. * I am a member of the video group and have access to GPU hardware.
*
vainfo --display drm
works as non-root user, so there appears to be something up with the x11 driver [which just so happens to be what mpv uses for its optimal vaapi implementation]. Here are my console outputs:
Code:
~$ vainfo --display x11
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_16
get chip id failed: -1 [13]
param: 4, val: 0
libva error: /usr/local/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Code:
~$ sudo vainfo --display x11
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.15.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Mobile - 2.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
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
Code:
~$ vainfo --display drm
libva info: VA-API version 1.16.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_16
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.15.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge Mobile - 2.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
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
I've gone through my devfs configurations, checked groups and permissions of various components and nothing which suggests what would be causing this behaviour.
My xorg configuration is pretty barebones, with no GPU related entries in config files and letting it auto configure for the most part. Is this really a problem with an obscure permission, or is it an issue with my xorg installation?
Any advice on where to keep looking would be greatly appreciated.