-
Notifications
You must be signed in to change notification settings - Fork 303
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
Weird behaviour on hyprid laptop #822
Comments
because you have two card, if you "force vainfo to use NVIDIA", you just set the LIBVA_DRIVER_NAME? I suppose you also need to use vainfo --device to specify the device |
I did not set device however. I see from the brave thread that that is a possibility. Should it really be necessary though? Would it be possible to have libva detect this automatically? Or just detect there's more than one DRM device and if loading the driver returns a 1 try the next device instead? |
it should be a good idea, but is conflict with current design, current libva just try the related load library for a given kernel mode driver. |
Possibly unrelated but chromium based browsers just grab the first card and uses that with vaGetDisplayDRM. Also it ignores DRI_PRIME - that's used for rendering and not video acceleration. What's shitty is that /dev/dri/renderD1XX devices are not stable - the kernel initializes them in parallel so you might get the first card as the nvidia one. For me it's semi random. Forcing the driver with LIBVA_DRIVER_NAME will not work reliably and just load the wrong driver for your card. For myself, i fixed with a patch that i can specify the card device from an env variable, ignoring the fd passed to vaGetDisplayDRM, and making that point to /dev/dri/by-path/xxx |
Been fighting an unrelated issue for weeks with brave & hwdec not working but as a side effect of trying to get to the bottom of that one I noticed a 'bug'? maybe? Honestly I'm not even sure it is but its worth reporting as others have had the same behaviour too.
My laptop has an Intel/NVIDIA hybrid GPU setup and with
intel-media-driver
installedvainfo
works as expected. withintel-media-driver
&libva-nvidia-driver
installedvainfo
usesiHD
which I would expect since the intel is the primary card. The issue arises when you try to forcevainfo
to use theNVIDIA
, in that casevainfo
throws a hard crash. To useNVDEC
at all on my GPU I have to swap over to dedicated GPU mode.https://github.com/brave/brave-browser/issues/35953
^ Bug on brave, unrelated but this user has the exact same behaviour
The text was updated successfully, but these errors were encountered: