-
|
I have a laptop with Intel + NVidia cards and in a "work configuration", I use nouveau to keep the NVidia card disabled. After upgrade to Fedora 42, with Vulkan enabled globally by default, mpv (and many other apps) started using my NVidia card by default. I was able to manage it somehow with It works, but... the devices are still enumerated, which makes my NVidia card switch from DynOff → DynPwr, which in turn (as I suspect) causes ~2s delay on mpv initialization. Couldn't Some logs: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
No, it's not possible. Vulkan gives Long story short, this is a driver / kernel bug where they should not wake up the device for sole purpose of enumerating them. It's known issue, you can read related discussion here (it not only affects NVIDIA...): Some duplicates: |
Beta Was this translation helpful? Give feedback.
No, it's not possible.
Vulkan gives
vkEnumeratePhysicalDevicesAPI that returns list of opaque handles (VkPhysicalDevice) for each device. We then query properties of each device for selection, based on name or type of gpu and so on. Next we this handle to create Vulkan context and what not. There is no way to get aVkPhysicalDevice"directly", as it's application job to select it.Long story short, this is a driver / kernel bug where they should not wake up the device for sole purpose of enumerating them.
It's known issue, you can read related discussion here (it not only affects NVIDIA...):
#16218
https://gitlab.freedesktop.org/drm/amd/-/issues/2295
https://gitlab.freedesktop.org/mesa/m…