Closed RafaelLinux closed 1 year ago
Any NVIDIA driver version that is 525 or later requires the direct backend, use that and it should be fine
I read direct backend in your page, but really I don't know what to do. It seems that info is related to driver compilation. As I (and many other) are using a precompiled RPM file, should we ask to have two distinct controllers available to download?
No, that's not what it says at all, you just need to set the environment variable.
The NVD_BACKEND
environment variable is a runtime option, not a compile time one. And it's required to set it to direct
until NVIDIA fix their drivers.
I tried NVD_BACKEND=direct
and even export NVD_BACKEND=direct
and then I execute vainfo
, but no changes about.
I tried NVD_BACKEND=direct vainfo
too, but same result.
Must I be doing something wrong?
Hmm, It looks like libva is having an issue working out which driver to use. Try setting LIBVA_DRIVER_NAME=nvidia
. This shouldn't really be needed with the version of libva you've got, so I'm not sure what's changed.
Thanks. Something worked. Output of vainfo
is now:
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.18.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /usr/lib64/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
while before use LIBVA_DRIVER_NAME=nvidia
was:
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.18.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit
I checked if your driver is installed still, and it is:
zypper se -si vaapi
Cargando datos del repositorio...
Leyendo los paquetes instalados...
S | Name | Type | Version | Arch | Repository
---+-------------------------+---------+------------+--------------+----------------------------
i+ | gstreamer-plugins-vaapi | paquete | 1.22.4-1.1 | x86_64 | Repositorio principal (OSS)
i+ | nvidia-vaapi-driver | paquete | 0.0.9-3.2 | x86_64 | RPMs
You'll need NVD_BACKEND=direct
set aswell. You can also set NVD_LOG=1
to have the driver logs printed out.
Both variables was exported previously:
env | grep -E "NVD|LIBVA"
LIBVA_DRIVER_NAME=nvidia
NVD_BACKEND=direct
Now, after export NVD_LOG=1
, ouput of vainfo
is:
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.18.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
22120.720833359 [11077-11077] ../src/vabackend.c:2165 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 10
22120.720846792 [11077-11077] ../src/vabackend.c:2174 __vaDriverInit_1_0 Now have 0 (0 max) instances
22120.720856157 [11077-11077] ../src/vabackend.c:2200 __vaDriverInit_1_0 Selecting Direct backend
22120.731952360 [11077-11077] ../src/direct/direct-export-buf.c: 85 direct_initExporter Found NVIDIA GPU 0 at /dev/dri/renderD128
22120.731965315 [11077-11077] ../src/direct/nv-driver.c: 217 init_nvdriver Initing nvdriver...
22120.731973098 [11077-11077] ../src/direct/nv-driver.c: 222 init_nvdriver Got dev info: 200 1 0 fe
22120.731998506 [11077-11077] ../src/direct/nv-driver.c: 33 nv_alloc_object nv_alloc_object failed: -1 0 22
22120.732004671 [11077-11077] ../src/direct/nv-driver.c: 243 init_nvdriver nv_alloc_object NV01_ROOT_CLIENT failed
22120.732009776 [11077-11077] ../src/direct/nv-driver.c: 305 init_nvdriver Got error initing
22120.732028936 [11077-11077] ../src/direct/nv-driver.c: 76 nv_rm_control nv_rm_control failed: -1 0 25
libva error: /usr/lib64/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
That issue is fixed in 0.0.10, and you're running 0.0.9. You will need to nudge the maintainer of that RPM to build the latest version, or build the driver yourself.
Perfect then. Sorry for the inconvenience. I thought I was using the latest version of your driver and I'm not. I'll let the developer know.
Thank you very much for your quick responses and the time you spend on both queries and driver development. Thanks to you Nvidia users on Linux are on par with AMD users in terms of graphics acceleration.
A week ago, I installed for first time RPM version of
nvidia-vaapi-driver
from this repository. I reboot and vainfo output was correct, recognizing vaapi installed and working.However, two days ago, I checked again
vainfo
output, cause I felt Firefox playing videos like before installnvidia-vaapi-driver
, and now it's failing.Only change I remember I did was a kernel upgrade (see below info about my system) and in fact, I upgraded again kernel and even a new NVidia propietary driver version, but
vainfo
check still failing.And this is the
nvidia-smi
outputSo, is it neccesary to get a new RPM each time kernel or nvidia drivers change?
Thank you