Repository navigation
Conversation
Can help on hybrid GPU systems and picky programs to recognize and make use of the NVIDIA GPU. Not having this env variable caused my install to priorize the less powerful integrated graphics (happened to me on Blender). Sometimes, for some reason, the GPU wasn't detected by some programs without it.
|
What do you think, @Kn0ax? Any side effects? |
It used to cause consistently high GPU usage, and as far as I remember, people recommended launching it as app-specific environment variable defined in .desktop files etc. But i can't be 100% sure since i don't run a system with igpu :( |
|
@busybox11 can you report your GPU usage while idling etc. ? |
|
Sure, here's my nvtop! Spikes in GPU usage are from switching workspaces to a GPU intensive app (such as zen, in this case running WebGL Aquarium. Page is opened on zen, but not rendering when idle on another workspace. I resorted to using this env variable as a global, wasn't aware of this fix being usually app-specific. I might be wrong, my laptop is weird and does not have a MUX switch, it's not easy to troubleshoot unfortunately. |
|
Can you please try to run (please remove it first from hyprland config and restart hyprland) |
|
Does this make things better or worse for most on nvidia? If it doesn't always do the right thing, maybe we can start it commented out? |
|
Makes things better for my system, I unfortunately cannot test anywhere else as this is my only computer :( I'm not familiar enough with the drivers and their usage to give a definite answer - maybe @Kn0ax has more documentation, sources or data to answer this question. I didn't find anything online mentioning this env would cause bad things though, if my system benefits from it, surely I wouldn't be the only one. Maybe Linux Twitter would have more info? |
|
When this env is set globally, the problem is that all applications that use GBM start using the external card, and the problem is that every application uses the external graphics card, which can cause high power = low battery for laptop users. That's why I'm in favor of application-specific implementation of this env. But I would like to get some other opinions as well. |
In this case, maybe this could be part of the setup process, asking the user if this is intended for single GPU use or hybrid. And then set env variables accordingly. I guess this could be automated by counting the detected GPUs, and in that case maybe the issue I was experiencing before setting the env is indeed purely due to the weirdness of my system. |
@dhh wants the installation process to be unattended. |
|
I guess it would be fine to assume hybrid if multiple, NVIDIA-specific if not. Power users that would like to only use their dGPU could fiddle with the config by themselves then. Still, would you consider this env to be useful for single GPU systems? It was useful for me but I am not really a reference haha |
|
Maybe we could add this to an nvidia guide in Discussions > Manual for now? |
Dim keyboard on idle + turn off monitor at lid close



Can help on hybrid GPU systems and picky programs to recognize and make use of the NVIDIA GPU.
Not having this env variable caused my install to priorize the less powerful integrated graphics (happened to me on Blender). Sometimes, for some reason, the GPU wasn't detected by some programs without it.