Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Zed on iGPU still keeps dGPU active on hybrid #25320

Open
Draic opened this issue Feb 21, 2025 · 1 comment
Open

Running Zed on iGPU still keeps dGPU active on hybrid #25320

Draic opened this issue Feb 21, 2025 · 1 comment

Comments

@Draic
Copy link

Draic commented Feb 21, 2025

Summary

I am changing Zed to run on my intel graphics. This works fine but it still keeps my nvidia graphics active and therefore creates extra heat, power consumption and fan noise

Steps to trigger the problem:

  1. Run 'ENABLE_DEVICE_CHOOSER_LAYER=1 VULKAN_DEVICE_INDEX=1 zeditor' to force Zed to run on iGPU
  2. Check with nvidia-smi -q -d POWER to confirm nvidia card being active (see note below)

Actual Behavior:

  • nvidia card won't sleep despite nothing running on it while Zed is running on iGPU. Closing Zed will have Nvidia card go to sleep again

Expected Behavior:

  • nvidia card should not be forced out of sleep when running Zed on iGPU

Vulkan Device Chooser Layer has been the only way I managed to even force Zed to run on iGPU and all the documented ways do not work on my install. Zed runs better on iGPU than on Nvidia like for example window resizing on Nvidia Wayland is choppy and laggy, while it is smooth on Intel iGPU. So all the extra effort to even get it onto the iGPU has been frustrating.

I don't really managed to find a command that shows me the actual power mode the nvidia card is in, sorry. But if it is sleeping a command like nvidia-smi will take up several seconds, before the card wakes up and then will list very large unrealistic power draw (590W in my case) as its reading is not accurate right on wake. While Zed is running I get a normal read instantly from nvidia-smi and it shows the typical draw when active but in its lowest power mode (3.25 Watt in my system).
The main reason why forcing the Nvidia card to stay active for me is that this will prevent fans to ever stop spinning, while otherwise the system would operate in silence.

I am sorry, but I am not the most technical or linux knowledgeable person, but I tried my best to provide the information necessary (I hope). Thank you

Zed Version and System Specs

Zed: v0.174.5 (Zed)
OS: Linux Wayland endeavouros unknown
Memory: 31 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (RPL-P) || Intel open-source Mesa driver || Mesa 24.3.4-arch1.1

@edwloef
Copy link

edwloef commented Feb 21, 2025

Can confirm this affects me as well. I've been able to work around it by setting VK_ICD_FILENAMES, however there should exist a better solution than this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants