Activity (btop) wakes a suspended NVIDIA dGPU on every open — Omarchy's btop.conf sets shown_gpus = "nvidia amd intel", which initialises NVML on hybrid laptops
Summary. Omarchy binds Activity (Super+Ctrl+T) to btop and ships config/btop/btop.conf with shown_gpus = "nvidia amd intel" (line 254). btop 1.4.7 initialises NVML at startup whenever shown_gpus contains nvidia, whether or not a GPU box is displayed. On an iGPU-driven hybrid laptop that resumes the discrete GPU every time Activity is opened.
Environment. Omarchy 4.0.3-1, Hyprland 0.56.2-2, Arch, kernel 7.2.3-arch1-3. Framework Laptop 16, Ryzen AI 9 HX 370 / Radeon 890M (amdgpu, drives all outputs) + RTX 5070 graphics module (nvidia 610.57.04), no connector in use. btop 1.4.7.
Measured, watching /sys/bus/pci/devices/<dGPU>/power/runtime_status with the card suspended, btop launched in a pty with a scratch XDG_CONFIG_HOME:
| config | dGPU |
|---|---|
| Omarchy's btop.conf as shipped (no GPU box) | resuming ~2 s after launch, active while open, re-suspended ~15 s after exit |
same file with shown_gpus = "amd" and a gpu0 box added |
suspended throughout |
The stock run had no GPU box, so this is the NVML init itself, not the display; the AMD-only run had a GPU box on and still never woke the card.
Cost. The 5070 leaves runtime suspend for as long as Activity is open, on battery included.
Suggestion. Default shown_gpus = "amd intel" (or omit nvidia) where NVIDIA drives no display — the same "does NVIDIA own the screen" question as #8215/#9483, applied to the monitor rather than the env. AMD load/VRAM from sysfs costs nothing.
Note: btop's own /proc/<pid> is unreadable to its owner (file capabilities), so measure the card's runtime_status, not btop's fds.
Disclosure: this diagnosis and write-up were produced by Claude (Fable 5.1, via Claude Code) working on my laptop; the measurements are from my machine and I reviewed the text before posting.
I checked this against btop's source and Omarchy's quattro. The mechanism is real. Btop's startup code checks shown_gpus and nothing else: in btop v1.4.7, src/linux/btop_collect.cpp:371-374 calls Gpu::Nvml::init() whenever shown_gpus contains nvidia, before and regardless of shown_boxes. That init calls nvmlInit() and nvmlDeviceGetCount(), then queries every device. Omarchy's config/btop/btop.conf:254 ships shown_gpus = "nvidia amd intel" and shown_boxes = "cpu mem net proc", so NVML is opened on every launch of Activity even though no GPU box is drawn. That has been the case since the btop 1.4.6 config update in #5286, so it is long-standing rather than a 4.0 regression. Nothing in Omarchy gates btop's GPU vendors on hardware today; bin/omarchy-hw-nvidia-display answers the right question but is used only for the Hyprland NVIDIA env.
Deleting the line would not help, because btop's own default (src/btop_config.cpp:291) is nvidia amd intel apple. The fix has to name the vendors explicitly.
I did not reproduce the dGPU wake itself. No worker has a hybrid NVIDIA GPU, so this is explained in source, with your runtime_status measurement as the evidence for the power effect. No second opinion ran on this item: the configured reviewer (Codex Medium) answered a health check, but today's review budget was already spent, so this diagnosis is one model's reasoning.
I have not opened a fix. The obvious one is to drop nvidia from shown_gpus when omarchy-hw-nvidia-display says NVIDIA drives no display, plus a migration for existing ~/.config/btop/btop.conf. But that decides that hybrid users stop seeing their dGPU in Activity, including while it is busy with offloaded work, because show_gpu_info = "Auto" currently puts it in the CPU box. That trade-off is the maintainer's to make, so this waits on them.