Dual-GPU AMD: PCI by-path in AQ_DRM_DEVICES silently login-loops SDDM autologin
System details
- Omarchy: 4.0.1-1
- Kernel: 7.1.9-arch1-2
- Session: SDDM autologin →
uwsm start -g -1 -e -D Hyprland hyprland.desktop - Hyprland: 0.56.2 (
efb50993780079460b0cbed1363e2166a2de1d9f) - Aquamarine: 0.14.0-2
- uwsm: 0.26.7-1
- sddm: 0.21.0-7
- GPU: dual AMD (not NVIDIA, not a laptop hybrid)
0000:13:00.0Raphael iGPU[1002:164e](motherboard HDMI/DP,boot_vga=1)0000:03:00.0Navi 48 RX 9070 XT[1002:7550](still installed, used for compute)
- Both bind
amdgpu. Monitor is on the motherboard HDMI port.
What's wrong?
On a dual-GPU AMD desktop, a single AQ_DRM_DEVICES line that uses PCI by-path names turns Omarchy's SDDM autologin into a silent login loop.
Password is accepted. There is no SDDM auth error. journalctl -u sddm looks clean (Session started true, then the helper exits and the greeter comes back ~1s later). The compositor is already dead.
Hyprland/Aquamarine exits immediately with:
drm: Explicit device list /dev/dri/by-path/pci-0000:13:00.0-card:/dev/dri/by-path/pci-0000:03:00.0-card
ERR: drm: Failed to canonicalize path /dev/dri/by-path/pci-0000
ERR: drm: Failed to canonicalize path 13
ERR: drm: Failed to canonicalize path 00.0-card
ERR: drm: Found no gpus to use, cannot continue
ERR: DRM Backend failed
That lives in ~/.cache/hyprland/hyprlandCrashReport*.txt, not in the SDDM journal. With autologin enabled this is an unattended boot loop until someone finds a TTY.
Why it happens
Aquamarine splits AQ_DRM_DEVICES on :. PCI by-path names also contain :, so
/dev/dri/by-path/pci-0000:13:00.0-card
is parsed as /dev/dri/by-path/pci-0000 + 13 + 00.0-card. None of those exist, so the backend reports "no gpus" even though both cards are healthy and a monitor is connected.
This is documented upstream:
- Hyprland wiki Multi-GPU ("Creating consistent device paths") —
by-pathis listed first for detecting GPUs, then later says those paths are not usable inAQ_DRM_DEVICES - hyprwm/aquamarine#167 — same crash log
/dev/dri/card0 / card1 / card2 are also a trap on this hardware: they rotate every reboot, so a pin that "works" is wrong after the next boot.
Omarchy does not set AQ_DRM_DEVICES by default. The failure mode is still Omarchy's because:
- The shipped session is SDDM autologin + uwsm + Hyprland. A bad
AQ_*env becomes a greeter loop with no on-screen error. omarchy debugdoes not print or validateAQ_DRM_DEVICES.- The only GPU switcher (
omarchy toggle hybrid gpu) is supergfxd / Asus-style NVIDIA hybrid. Dual AMD desktop (iGPU scanout + dGPU compute) has no first-party helper, so people — and coding agents — copy the wikiby-pathstring intohl.env("AQ_DRM_DEVICES", ...)or~/.config/uwsm/env-hyprland. - uwsm is the right place for
AQ_*(wiki), but nothing in Omarchy warns that PCI paths are illegal there.
This bit a coding agent on this machine while "swapping" display to the iGPU so the 9070 XT could stay for ROCm. The agent did the wiki's detection step (ls /dev/dri/by-path) and wrote those paths into AQ_DRM_DEVICES. Please treat that as a product footgun, not a one-off user error — other agents will repeat it.
Steps to reproduce
- Dual-GPU AMD machine, monitor on the iGPU/motherboard port, SDDM autologin to
omarchy.desktop. - Set either of:
-- ~/.config/hypr/hyprland.lua (too late sometimes, but often still applied)
hl.env("AQ_DRM_DEVICES", "/dev/dri/by-path/pci-0000:13:00.0-card:/dev/dri/by-path/pci-0000:03:00.0-card")
# ~/.config/uwsm/env-hyprland (this is what uwsm actually exports)
export AQ_DRM_DEVICES=/dev/dri/by-path/pci-0000:13:00.0-card:/dev/dri/by-path/pci-0000:03:00.0-card
- Reboot (or log out). Autologin accepts the user and returns to SDDM within about a second.
- TTY (
Ctrl+Alt+F3) still works.journalctl -u sddmdoes not mention Aquamarine.
Working pin (for anyone hitting this)
Colon-free udev names, then uwsm:
# /etc/udev/rules.d/99-gpu-links.rules
KERNEL=="card*", SUBSYSTEM=="drm", KERNELS=="0000:13:00.0", SYMLINK+="dri/igpu"
KERNEL=="card*", SUBSYSTEM=="drm", KERNELS=="0000:03:00.0", SYMLINK+="dri/dgpu"
# ~/.config/uwsm/env-hyprland
export AQ_DRM_DEVICES=/dev/dri/igpu
Do not use /dev/dri/cardN. Do not use PCI by-path. Test from a TTY with AQ_DRM_DEVICES=/dev/dri/igpu start-hyprland before relying on autologin.
What Omarchy could do (so the next agent does not brick login)
omarchy debug: dumpAQ_DRM_DEVICES(process + uwsm + hypr env files) and warn if the value containsby-path,pci-0000:, or a hard-coded/dev/dri/cardN.- Docs / setup: a short dual-GPU note — udev short names,
~/.config/uwsm/env-hyprland, neverby-path. The Hyprland wiki's "Detecting GPUs" section is the copy-paste trap. - Helper: something like
omarchy setup gputhat writes colon-free/dev/dri/igpu+/dev/dri/dgpuand the uwsm export.omarchy toggle hybrid gpuis the wrong tool for AMD+AMD desktops. - Agent/docs callout: if you need to pin a GPU on Omarchy, never put a string containing
:inside a path inAQ_DRM_DEVICES.:is only the list separator between already-safe names (/dev/dri/igpu:/dev/dri/dgpu).
Happy to attach the full crash report if useful. I did not upload omarchy debug because this machine is currently on a TTY-recovered session, not a uwsm autologin session.
PCI by-path values in AQ_DRM_DEVICES never reach DRM: Aquamarine splits on : (hyprwm/aquamarine#167), Hyprland dies, and SDDM autologin loops with no error.
Fix: resolve those paths to real DRM nodes at session env load, after ~/.config/uwsm/env-hyprland. Colon-free pins stay as they are. If nothing usable remains, the var is unset so Hyprland can pick a GPU instead of looping.
PR against quattro.
Your diagnosis holds up in the source, and it is worth being precise about it because the fix that is up does not cover everything you asked for.
Mechanism, confirmed. Aquamarine parses the variable with Hyprutils::String::CVarList(explicitGpus, 0, ':', true) (aquamarine 0.14.0, src/backend/drm/DRM.cpp:197). Every : is a separator, so /dev/dri/by-path/pci-0000:13:00.0-card becomes three tokens, each fails std::filesystem::canonical and is skipped (DRM.cpp:200-213), the explicit list ends up empty, and scanGPUs returns nothing — drm: Found no gpus to use, cannot continue at DRM.cpp:320. Once the variable is set there is no fallback to automatic selection (DRM.cpp:195 takes the explicit branch unconditionally), which is why this is fatal rather than degraded. That is your log exactly.
Your point 1 stands. On quattro there is no AQ_ anywhere in bin/, default/ or config/ — Omarchy neither sets the variable nor reads it. bin/omarchy-debug collects inxi -Farz, dmesg, the current-boot journal and the package list, and nothing else, so a bad AQ_DRM_DEVICES would not appear in a debug log even from a working session.
PR #8786 is open against quattro and addresses the boot loop, with a uwsm env-hyprland.d drop-in that resolves by-path entries at session-env load and a migration that installs it into ~/.config/uwsm/env-hyprland.d/ for existing users. It was reviewed this run on a disposable VM, and three things came out of that which matter to you.
It handles the string in your report. Its sanitizer splits on the literal :/, which leaves the PCI colons inside each token, and each token is then resolved with readlink -f; where those by-path symlinks exist they resolve to colon-free /dev/dri/cardN and both are kept.
It is not ready, and the failure mode is worse than the bug. Because the split is on :/ rather than :, a doubled colon breaks it. For /dev/dri/card1::/does-not-exist, ${rest%%:/*} strips the longest :/… suffix and leaves the first token as /dev/dri/card1: — the real device with a trailing colon — which then fails the existence check and is dropped, while /does-not-exist is kept with no existence check at all because it contains no colon. The result is AQ_DRM_DEVICES=/does-not-exist and no compositor. As things are today that same value does not produce this failure, because the removeEmpty flag on CVarList discards the empty token and Aquamarine finds card1. The quieter variant /dev/dri/card1::/dev/dri/renderD128 silently drops the intended primary GPU and keeps the render node. Separately, a set-but-empty AQ_DRM_DEVICES is returned unchanged by the guard on the sanitizer's first line, and an exported empty string still sends Aquamarine down the explicit-device branch because getenv is non-null, giving the same fatal "Found no gpus".
It does not do the two things you asked for. Its diff is the drop-in, the sanitizer, a migration and a test — no omarchy debug warning, no dual-GPU note in docs/ or manual/. It carries Fixes #8776, so merging it as it stands would auto-close this issue with your points 1 and 2 both outstanding. That is the maintainer's decision, not triage's, but you should know that is how it would land. The drop-in also only reaches an existing install through that per-user migration, which is itself an argument for the omarchy debug warning: on a machine where the migration has not run, the failure stays exactly as silent as it was for you.
Your points 3 and 4 — a first-party omarchy setup gpu for AMD+AMD desktops, and an agent-facing callout — are product decisions for the maintainer. This stays open for them.
Two reviewers looked at this: Opus 5 in Claude Code, and Codex at xhigh reasoning as an independent second opinion. Codex agreed on the parsing mechanism and on the sanitizer regression, and corrected one overstatement in the draft: the source establishes that the doubled-colon value does not cause the zero-GPU failure today, not that the whole boot is otherwise guaranteed, so "turns a booting machine into a non-booting one" is narrower than it sounds — the regression is in this variable's handling specifically.
Point 1 from this issue: omarchy debug now dumps AQ_DRM_DEVICES (process, uwsm env, hypr lua) and warns on PCI by-path or /dev/dri/cardN.
https://github.com/omacom/omarchy/pull/9063
The boot-loop sanitizer stays in #8786. Not in this PR: dual-GPU docs, omarchy setup gpu, or an agent-facing skill note.
Second occurrence of your point 4, on the opposite hardware shape — plus an alternative to #8786's sanitizer that removes the parsing problem rather than handling it.
The agent footgun, reproduced independently
MSI Vector A18. AMD Radeon iGPU at 0000:6b:00.0 owns the only wired panel (eDP-2); NVIDIA RTX 5070 Ti Mobile at 0000:01:00.0 has no connectors wired at all (nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes). Muxless hybrid laptop, so the mirror image of your dual-AMD desktop. Omarchy 4.0.3, SDDM autologin, the same uwsm start -g -1 -e -D Hyprland hyprland.desktop.
Same story as yours, independently: an agent ran the wiki's detection step, wrote /dev/dri/by-path/pci-0000:6b:00.0-card into ~/.config/uwsm/env-hyprland, and the machine login-looped. coredumpctl retained nine Hyprland SIGABRTs across two boots before anyone found the cause; the journal shows more than that, with the cores already rotated out.
What I think sharpens your point 4: on two unrelated machines, two different agents reached the same illegal string by following the wiki's own detection step. That is not two users being careless — it is a documented procedure whose output cannot be fed to the variable it is documented next to.
One wrinkle worth adding to whatever docs come out of this, specific to btrfs installs: env-hyprland lives on @home, so every snapshot in the limine menu inherits the broken value. Rolling back cannot fix it. The first thing anyone tries — boot an older snapshot — is a guaranteed dead end here, and the machine stays down while they work through the whole menu.
Alternative: make the value structurally colon-free
Rather than sanitizing a string that contains colons, give the cards names that never contain one. A udev rule keyed on PCI address plus vendor:
ACTION=="remove", GOTO="drm_names_end"
SUBSYSTEM!="drm", GOTO="drm_names_end"
KERNEL!="card[0-9]*", GOTO="drm_names_end"
KERNELS=="0000:6b:00.0", ATTRS{vendor}=="0x1002", SYMLINK+="dri/igpu"
KERNELS=="0000:01:00.0", ATTRS{vendor}=="0x10de", SYMLINK+="dri/dgpu"
LABEL="drm_names_end"
# ~/.config/uwsm/env-hyprland
export AQ_DRM_DEVICES=/dev/dri/igpu # or /dev/dri/igpu:/dev/dri/dgpu
Against #8786's sanitizer:
CVarList(explicitGpus, 0, ':', true)has nothing to split. The doubled-colon case and the set-but-empty case cannot arise, because no token ever contains a colon in the first place.- It answers your
cardNrotation complaint head-on — the name is keyed to the PCI address, not to enumeration order. - Multi-GPU ordering stays expressible and stays readable:
igpu:dgpusays what it means, and the colon is doing only the job it was designed for.
Where it is worse, honestly
- It needs the machine's own PCI addresses, so Omarchy cannot ship it as a static default — it would have to be generated. That is an argument for the
omarchy setup gpuin your point 3, not against the approach. - The rule lives in
/etc, on@. A committed snapshot restore deletes it whileenv-hyprlandon@homesurvives, leaving a pin to a symlink that no longer exists. That exact split left this machine half-fixed for a day. The mitigation is a fallback chain inenv-hyprland: try the symlink, else resolve the card node by PCI address, else leave the variable unset. Unset is the load-bearing part — per the triage above, once the variable existsDRM.cpptakes the explicit branch unconditionally, so a degraded pin has to become no pin, never a stale or empty one. - It does nothing for anyone who already has a by-path string on disk. #8786 still has a migration job to do. These are complementary, not competing.
One caution for #9063
Found no gpus to use, cannot continue + CBackend::create() failed! is the signature of at least three distinct problems, not just a malformed pin:
- the colon split — this issue, hyprwm/aquamarine#167
- a connector-less GPU pinned as primary — hyprwm/aquamarine#359
- a transient libseat open failure on a perfectly valid pin — hyprwm/aquamarine#409, filed today from this machine:
Could not take device: Device or resource busy, which aquamarine reports first asnot a KMS deviceand then asExplicit device /dev/dri/card2 not found, for a device it enumerated three lines earlier
I hit the third one after fixing the first, with a correct colon-free pin in place, on roughly one boot in three.
So a debug warning that ties AQ_DRM_DEVICES to this crash signature will sometimes send people to "fix" a pin that was never the problem — the same trap this issue is about, pointed the other way. Flagging the value on its own merits (a by-path name, a bare cardN) is unambiguous and genuinely useful. Coupling that warning to the crash is what I would avoid.