Skip to content

glxinfo (used by volt-gui) doesn't seem to detect nvidia prime setups without using nvidia specific environment variables #49

@AmerXz

Description

@AmerXz

I tried volt-gui release 1.4.1 and when I tried to use my nvidia gpu I couldn't find it in render selector under (OpenGL Rendering Device) it only appeared under (Vulkan Rendering device) so I could only use the nvidia gpu for vulkan games

and that was because glxinfo cannot detect my gpu without these environment variables made from nvidia

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

you can find more about nvidia hybrid env vars here

so when I tried MESA_VK_DEVICE_SELECT=list vulkaninfo (which is used in volt-gui) it gave me

MESA_VK_DEVICE_SELECT=list vulkaninfo
MESA-INTEL: warning: Haswell Vulkan support is incomplete
selectable devices:
  GPU 0: 10de:11e2 "NVIDIA GeForce GTX 765M" discrete GPU 0000:01:00.0
  GPU 1: 8086:416 "Intel(R) HD Graphics 4600 (HSW GT2)" integrated GPU 0000:00:02.0
  GPU 2: 10005:0 "llvmpipe (LLVM 22.1.2, 256 bits)" CPU 0000:00:00.

but when I tried glxinfo (also used in volt-gui for OpenGL) it gave me

glxinfo | grep 'OpenGL renderer string'
OpenGL renderer string: Mesa Intel(R) HD Graphics 4600 (HSW GT2)

But when adding nvidia prime env vars before glxinfo command it gave me

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep 'OpenGL renderer string'
OpenGL renderer string: NVIDIA GeForce GTX 765M/PCIe/SSE2

so it seems that nvidia needs those environment variables to be used with opengl apps

anyway thanks for your work

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions