(也于英伟达论坛)
Fedora 36 和 Gnome 42.2,一切都是最新的 Nvidia 最新的专有驱动程序 (515.57) Nvidia Geforce GTX 745 和 Intel Core i5-6400(无集成显卡)
问题首先出现在通过 Lutris (flatpak) 启动《哈利·波特与火焰杯》时。我的帧速率很糟糕,在通过终端启动 Lutris (flatpak) 时,我收到以下错误:
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
Error: couldn't find RGB GLX visual or fbconfig
2022-07-09 12:29:21,250: Invalid glxinfo received
之后2022-07-09 12:29:21,644: Startup complete
:
2022-07-09 12:31:05,686: Unable to load libGLX_nvidia.so.0
2022-07-09 12:31:05,686: Unable to locate libGLX_nvidia
当我运行游戏时,我会收到此错误,同时游戏继续以可怕的帧速率运行:WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
这似乎是我的 Vulkan 驱动程序搞砸了,所以我尝试通过 Lutris (RPM) 运行 OMORI 并立即收到这些错误,并且游戏拒绝启动:
尝试启动无论如何都会给我正常的 Gnome 应用程序崩溃消息(“哎呀!我们很抱歉,看起来 OMORI 崩溃了......”)
这是 glxinfo -B 的输出
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 4096 MB
Total available memory: 4096 MB
Currently available dedicated video memory: 3883 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 745/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.57
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6.0 NVIDIA 515.57
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.57
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
这是 vulkaninfo 的输出
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /builddir/build/BUILD/Vulkan-Tools-sdk-1.3.204.0/vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
lspci -k
显示我的 GPU 正在使用“nvidia”驱动程序,就像它应该的那样。
我查了一下/usr/share/vulkan/icd.d/
,/etc/vulkan/icd.d/
两个都是空的。这可能是问题所在吗?我怎样才能让我的图形设备正常工作?
答案1
将其添加到新文件中/usr/share/vulkan/icd.d/nvidia_icd.json
解决了该问题:
{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.3.204"
}
}
我只是从 vulkaninfo 错误文本中随机提取了该 API 版本,并且它有效。