-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debian 13] vainfo fails: can't open /dev/dri/render128 - invalid argument #351
Comments
The common issue here would be that your user isn't in the There is a + on the file mode, so there might be some ACLs on that node, so you could take a look at those with: |
I appreciate you taking a look into this. I can confirm I am in the
I just gave everything access to renderD128, but the issue still persists. Here is the outputs of
For what it's worth, I don't believe this is a permission issue, since |
Hello @itsmeknt, What are the outputs of |
Hello @thesword53 Here is the output of
For
|
Also, not sure if this is helpful, but here is the
And now that I think about it, this might be why Wayland is failing on my system too. I ideally want to use Wayland, but for some reason it keeps on crashing after I installed my 565 Nvidia drivers, which is why I am resorting to X11. I tried to find out why Wayland was crashing, but neither In the chance that this is a Debian 13 bug and not an Nvidia Vaapi driver bug, where should I go to get more help? |
One other piece of info about Debian 13 that may or may not be relevant to this:
I didn't realize it when I picked this OS. Maybe all of this is in fact due to an OS-level bug? |
What I am confused about is, how are the Nvidia 565 drivers able to read and write these files (assuming they require these files)? Nvidia drivers are working just fine, since Maybe |
Honestly I'm not sure there much we can help you with. You might be able to get more assistance in the NVIDIA forums. The issue you have isn't directly related to this driver, but something fundamentally wrong with the driver install/system configuration. |
Thanks @elFarto @thesword53 and team, I appreciate the time invested. I'll move this issue to the NVIDIA forums. Would you like me to keep this issue open and give updates, in case the correct solution (starting with the feature branch 565 and onward) involves changing the way to open The reason I ask is because I saw this comment in the Nvidia open Linux GPU kernel source code:
and I don't know the source code well, but perhaps it might be related? I wonder if the ideal solution may be as simple as calling an Nvidia Also because the Nvidia 656 driver installation seems to work fine for me without any hiccups for most Nvidia clients (CUDA, VLC, etc), and only some Nvidia clients (X, Wayland) are having issues, specifically with opening the character device files, so maybe Nvidia's solution might be relevant to this library somehow. |
I am running X11 on Debian Trixie (kernel 6.12.9) on my desktop with a RTX 3090 GPU and a very old AMD Ryzen Threadripper 1950X CPU.
I have installed Nvidia 565 drivers according to the following guides:
Nvidia driver installation: https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/
Nvidia cuda installation: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/
The gist of the installation process is:
My Nvidia drivers seems to be working.
nvidia-smi
prints normally, and here is my graphic settings:One weird thing about my Nvidia installation: even though I only have 1 GPU, the Nvidia drivers seem to be using Optimus management I think? At least I can't launch firefox onto Nvidia without setting these env:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
, otherwise it would default to software CPU rendering with Mesa and LLVM drivers. My 3090 is the only GPU I am using, so ideally I want everything to run on my 3090 (including X11), but I can't get it to work for some reason.Setting
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
also changes theinxi -Ga
output to avoid using Mesa/LLVM as the OpenGL API:Anyway, I was trying to get firefox video decoding hardware acceleration to work. I installed
nvidia-vaapi-driver=v0.0.13
, but I am having some issues with poor performance still. Launching Firefox with the recommendedabout:config
settings and some additional env I found online gives and EGL and VA-API error:So I don't think the VA-API is working correctly. When I watch a video on Firefox, it's choppy and while
nvtop
does have Firefox, it doesn't show anydec
decoding utilization (which it does when I watch a local video with VLC).So I installed
vainfo
and tried to debug it, butvainfo
doesn't work either:I modified the source code of
direct-export-buf.c:72
to dig further, and can confirm a few things:node=/dev/dri/renderD128
which is the correct file pathstat()
returns the following struct:st_dev=6
,st_ino=944
,st_mode=8624
,st_uid=0
,st_gid=105
,st_rdev=57984
open()
returnsfd == -1
, this giveserrno = 22
(Invalid argument)Here is the file properties of
/dev/dri/renderD128
:I searched online for Invalid Argument error and found this link: https://stackoverflow.com/questions/11055060/possible-reasons-of-linux-open-call-returning-einval
I believe what is happening is that the
/dev/dri/renderD128
file is created with some special async behavior, but the glibc library packaged with Debian 13 kernel 6.12.9-amd64 is not able to open it. So even though the file exists and can bestat()
, it cannot be opened viaopen()
. This might also explain why I can't get X11 to load with Nvidia drivers as well (the logs complained that it couldn't open some device properly).I'm not sure where to go from here. How can we debug this behavior further? Any help would be appreciated, Firefox and Chrome is basically unusable for any video-related content, and I probably spent over 40 hours on this already lol.
The text was updated successfully, but these errors were encountered: