vainfo can't initialize any display in Ubuntu 24.04 with version 2.22.0 over SSH

未关闭
#374 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
c, linux, ubuntu

调研方向

首先,在 Ubuntu 24.04 上使用 2.22.0 和 2.12.0 版本,通过 SSH 重现列出的 vainfo 调用;如有需要,使用链接的测试 PPA。比较显示初始化结果,并确定 2.22.0 的行为是否属于回归;完成的标准是已经确定原因和预期行为,并且任何修正都由适当的测试覆盖。

由索引模型根据 Issue 内容生成。

描述

Hello! I'm currently trying to bump the media stack for LNL and BMG support in Ubuntu 24.04, and I'm running into some issues after updating vainfo

### Install version 2.22.0 ###
ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ vainfo
Trying display: wayland
Trying display: x11
error: can't connect to X server!
error: failed to initialize display

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ sudo vainfo
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
error: failed to initialize display

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ sudo vainfo --display drm
error: failed to initialize display 'drm'

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ sudo vainfo --display wayland
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: failed to initialize display 'wayland'

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ vainfo --display wayland
Trying display: wayland
error: failed to initialize display 'wayland'

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ vainfo --display drm
error: failed to initialize display 'drm'

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ DISPLAY=:0 vainfo --display drm
error: failed to initialize display 'drm'

ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ DISPLAY=:0 sudo vainfo --display wayland
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: failed to initialize display 'wayland'

### Install version 2.12.0 (24.04 current latest) ###
ubuntu@hp-elitebook-830-g8-notebook-pc-c29207:~/checkbox-media$ sudo vainfo
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.3.4 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP

Is this working as expected in 2.22.0, or is this a regression?

For your convenience, here is my test PPA for updating the graphics stack in 24.04:
https://launchpad.net/~mckeesh/+archive/ubuntu/testing

To use it, you can run the following:

sudo add-apt-repository ppa:mckeesh/testing
sudo apt update
sudo apt upgrade -y intel-media-va-driver-non-free libva2 libigdgmm12 vainfo
主要语言
C
星标
244
派生
175
平均合并
9 天 7 小时
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

intel/libva-utils 的其他 Issue

查看 intel/libva-utils 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。