OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
gpu-drivers high occasional DISPUTE

Fix supergfxd hanging after 'omarchy toggle hybrid gpu' switches to Integrated mode

omarchynvidialaptophybrid-graphicsasussupergfxctlpipewire
CORRECTED An auditor found the fix wrong or incomplete and rewrote it. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

Symptom, boot-race cause and both fixes hold. /usr/share/omarchy/bin/omarchy-toggle-hybrid-gpu on 4.0.4-1 prints the quoted 'supergfxd is not responding' message, and its Integrated-to-Hybrid branch runs the same sed and removes /usr/lib/systemd/system-sleep/force-igpu and /etc/systemd/system/supergfxd.service.d/delay-start.conf. /usr/share/omarchy/default/systemd/system/supergfxd.service.d/delay-start.conf is ExecStartPre=/bin/sleep 5. omarchy#10445 (open) has the snd_card_free/unbind_store stack, the Type=dbus timing, the GLVND second holder, the SIGKILL note, and the udev rule and script reproduced word for word, including the Vfio case. Two gaps. First, the cause covers only boot. A 2026-10-02 comment (Alienware m16 R1, 4.0.4-1) shows the same deadlock from the running session when the force-igpu sleep hook switches to Vfio for hibernate, after which every suspend fails at the freezer and a closed lid looped suspend for two hours until the battery died. That matters for whether the record applies and is why the udev script includes Vfio. Second, the escape step ends with sudo reboot while supergfxd is stuck in uninterruptible sleep, which can hang, and a later comment shows restarting audio releases the kernel unbind but not the daemon. The cause and fix now say both. Not exercised: no supergfxd machine here.

The cause above was rewritten on 2026-10-05 to match this note; the fix was corrected by the audit itself.
RISK

A wedged supergfxd needs a forced power-off, which can lose unsaved work. The PCI address is machine-specific: a wrong one in the udev rule unbinds a different device.

Symptom

After omarchy toggle hybrid gpu, choosing integrated only and rebooting, the toggle now says supergfxd is not responding. Try again, or check: systemctl status supergfxd. timeout 5 supergfxctl -g exits 124. HDMI outputs wired to the dGPU are gone but the battery still drains, systemctl reboot or suspend can hang, and the journal shows:


INFO: task supergfxd:1022 blocked for more than 122 seconds.
 snd_card_free+0x7a/0xa0 [snd]
 unbind_store+0xa4/0xb0

Cause

In Integrated mode supergfxd removes the NVIDIA modules and unbinds both PCI functions of the dGPU, including its HDMI audio function (0000:01:00.1, driver snd_hda_intel). snd_card_free waits for the last reference to the ALSA card, and WirePlumber, which starts with the session at the same moment, has just opened it. supergfxd.service is Type=dbus, so systemd counts it started once it owns its bus name, and the mode change runs afterwards, during session startup. Omarchy's delay-start.conf (ExecStartPre=/bin/sleep 5) only moves the collision later (omarchy#10445, HP Victus and Alienware m16 R1, Omarchy 4.0.2 and 4.0.4). The same deadlock also happens from a running session: Omarchy's force-igpu system-sleep hook switches to Vfio before hibernate and back afterwards, and with PipeWire already holding the card, supergfxd hangs there too. After that every suspend fails at the freezer, and one reporter's laptop retried suspend with the lid closed until the battery died. A later comment found a second holder: Quickshell and Firefox reloading the NVIDIA module through GLVND after supergfxd removed it. A wedged supergfxd ignores SIGKILL. Restarting the audio stack releases the kernel unbind, but the daemon still does not recover.

Fix

**Get out of the wedged state.** The daemon cannot be killed. Switch the config back to Hybrid from a terminal, then reboot:


sudo sed -i 's/"mode": ".*"/"mode": "Hybrid"/' /etc/supergfxd.conf
sudo rm -f /usr/lib/systemd/system-sleep/force-igpu /etc/systemd/system/supergfxd.service.d/delay-start.conf
sudo systemctl daemon-reload
sudo reboot

Those are exactly the files omarchy-toggle-hybrid-gpu removes when it switches back to Hybrid. The reboot can hang on the stuck daemon. If it does, hold the power button. The config change is already written, so the next boot comes up in Hybrid mode. Until you have done this, do not suspend or hibernate with the lid closed, because a wedged supergfxd makes every suspend fail and the laptop keeps retrying.

**To keep Integrated mode working** (community workaround from omarchy#10445, not an Omarchy fix). Detach the dGPU audio function as soon as it binds at boot, before WirePlumber exists. Find its address with lspci -D | grep -i 'nvidia.*audio' and use it in both files:


sudo tee /etc/udev/rules.d/90-ignore-nvidia-hdmi-audio.rules >/dev/null <<'EOF'
ACTION=="bind", SUBSYSTEM=="pci", KERNEL=="0000:01:00.1", DRIVER=="snd_hda_intel", RUN+="/usr/local/bin/detach-nvidia-hdmi-audio"
EOF
sudo tee /usr/local/bin/detach-nvidia-hdmi-audio >/dev/null <<'EOF'
#!/bin/sh
grep -Eq '"mode"[[:space:]]*:[[:space:]]*"(Integrated|Vfio)"' /etc/supergfxd.conf || exit 0
echo 0000:01:00.1 > /sys/bus/pci/drivers/snd_hda_intel/unbind
EOF
sudo chmod 755 /usr/local/bin/detach-nvidia-hdmi-audio

The rule also matches Vfio because the force-igpu sleep hook passes through Vfio around hibernate, and the PCI rescan re-binds the audio function mid-session.

The same commenter, on an AMD iGPU machine, also had to stop the session loading NVIDIA's EGL and VDPAU libraries. In ~/.config/hypr/hyprland.lua, below require("default.hypr.omarchy"):


hl.env("__EGL_VENDOR_LIBRARY_FILENAMES", "/usr/share/glvnd/egl_vendor.d/50_mesa.json")
hl.env("VDPAU_DRIVER", "radeonsi")

VDPAU_DRIVER=radeonsi fits an AMD iGPU only. Leave it out on Intel. The EGL line keeps every EGL app off the NVIDIA GPU, so remove both lines before switching back to Hybrid, or offloaded EGL apps will not use the dGPU.

Then run omarchy toggle hybrid gpu again.

Verify

After the reboot into Integrated mode, timeout 5 supergfxctl -g prints Integrated immediately, journalctl -b -u supergfxd contains Reloaded gfx mode: Integrated, and journalctl -k -b | grep 'blocked for more than' is empty.

Sources

supergfxd-integrated-mode-hangs-hdmi-audio-function