Open D3vil0p3r opened 11 months ago
you have to do nvx start glxinfo | grep "OpenGL render"
.
for context, this will:
glxinfo | grep "OpenGL render"
on itor you can add these env variables to the beginning of your command, to skip using nvx start
.
do keep in mind you still have to use nvx on
to turn your gpu on.
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia
so your command would look like:
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "OpenGL render"
this is because your gpu isnt set as the default renderer (which, this is the correct setup), and the system needs to be told that it needs to offload the command to the gpu.
just incase you aren't sold yet, here's my output. keep in mind my nvidia gpu is already on with nvx on
.
[aiden@archtop ~]$ glxinfo | grep "OpenGL render"
OpenGL renderer string: Mesa Intel(R) Graphics (RPL-P)
[aiden@archtop ~]$ __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "OpenGL render"
OpenGL renderer string: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
I have an hybrid scenario with iGPU Intel and NVIDIA GPU. My environment is Arch Linux with Cinnamon (x11). GPUs are both recognized by the system:
and my system starts always by iGPU, indeed:
If I run nvx on I get:
but when I reboot and I run glxinfo | grep "OpenGL render", I still get:
instead of NVIDIA.
Then, I also noted that, when I run nvx start", during the off part it freezes, and if I close the current terminal and open a new one and run nvx off-kill**, I get:
but nvx status returns:
I already followed the guidebin README about this but with no luck.