Closed JoccE0 closed 2 months ago
Tried everything now, asking here for some help.
Normal vainfo with NVD_LOG=1
NVD_LOG=1 LIBVA_DRIVER_NAME=nvidia NVD_BACKEND=direct vainfo Trying display: wayland Trying display: x11 libva error: vaGetDriverNames() failed with unknown libva error 271.873358192 [3003-3003] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2188 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 10 271.873366075 [3003-3003] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2197 __vaDriverInit_1_0 Now have 0 (0 max) instances 271.873367956 [3003-3003] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2223 __vaDriverInit_1_0 Selecting Direct backend 271.878072134 [3003-3003] ../nvidia-vaapi-driver-0.0.12/src/direct/direct-export-buf.c: 68 direct_initExporter Searching for GPU: 0 0 128 271.878080066 [3003-3003] ../nvidia-vaapi-driver-0.0.12/src/direct/direct-export-buf.c: 72 direct_initExporter Unable to find NVIDIA GPU 0 271.878082039 [3003-3003] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2248 __vaDriverInit_1_0 Exporter failed libva error: /usr/lib/dri/nvidia_drv_video.so init failed vaInitialize failed with error code 1 (operation failed),exit
Fails.
selecting --display drm works without issues
NVD_LOG=1 vainfo --display drm --device /dev/dri/card0 Trying display: drm 198.067064346 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2188 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 30 198.067072885 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2197 __vaDriverInit_1_0 Now have 0 (0 max) instances 198.067074900 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2223 __vaDriverInit_1_0 Selecting Direct backend 198.071902497 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/direct/nv-driver.c: 267 init_nvdriver Initing nvdriver... 198.071922876 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/direct/nv-driver.c: 285 init_nvdriver NVIDIA kernel driver version: 550.107.02, major version: 550, minor version: 107 198.071926111 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/direct/nv-driver.c: 292 init_nvdriver Got dev info: 100 1 2 6 vainfo: VA-API version: 1.22 (libva 2.22.0) vainfo: Driver version: VA-API NVDEC driver [direct backend] vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264High : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileAV1Profile0 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileHEVCMain444 : VAEntrypointVLD VAProfileHEVCMain444_10 : VAEntrypointVLD VAProfileHEVCMain444_12 : VAEntrypointVLD 198.145977373 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2098 nvTerminate Terminating 0x558d8f7908e0 198.146033390 [2872-2872] ../nvidia-vaapi-driver-0.0.12/src/vabackend.c:2112 nvTerminate Now have 0 (0 max) instances
/etc/environment:
BROWSER=firefox NVD_BACKEND=direct MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json
And firefox MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia firefox running a 4K video runs on software decoding. Any idea what i am doing wrong?
MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia firefox
EDIT: Using X11
Solved this by adding this to the /etc/environment file:
LIBVA_DEVICE=/dev/dri/card0 LIBVA_DISPLAY=drm
also added myself to the group vglusers which was the owner of /dev/dri/card0 (Dont know if this is needed)
Tried everything now, asking here for some help.
Normal vainfo with NVD_LOG=1
Fails.
selecting --display drm works without issues
/etc/environment:
And firefox
MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia firefox
running a 4K video runs on software decoding. Any idea what i am doing wrong?EDIT: Using X11