Display flickers off/on repeatedly after idle lock on AMD APU + HDMI/DP (DPMS flap loop)
Environment
- Omarchy 4.0.1-1 (Arch)
- GPU: AMD HawkPoint1 [Radeon] (PCI 66:00.0)
- HDMI audio: AMD Radeon High Definition Audio Controller (PCI 66:00.1)
- Terminal: foot (screensaver launches fine)
- Display connected via HDMI/DP
Expected behavior
When idle, the system should lock and the display should turn off (or stay locked) cleanly — the same way Suspend from the menu does.
Actual behavior
After the lock engages, the display turns off and on repeatedly (~5–8 s) while locked. The lock state itself is stable (secure=true); only the display DPMS toggles.
Root cause
The lock plugin (shell/plugins/lock/Service.qml) arms idleBlankTimer (5 s) after locking; its trigger runs blankProcess → omarchy-brightness-display off → hl.dsp.dpms disable (DPMS off) while the session is live.
On this AMD + HDMI combo, DPMS-off drops the HDMI link, and the Radeon HDMI audio codec emits SW_VIDEOOUT_INSERT / SW_LINEOUT_INSERT switch events (evdev event18 — "HD-Audio Generic HDMI/DP"). These are treated as activity, which wakes the lock (runWake → omarchy-system-wake → DPMS on), re-arms the 5 s blank, and the cycle repeats.
Evidence
Traced hyprctl monitors dpmsStatus with omarchy-shell idle/lock status and raw /dev/input events. Every DPMS toggle coincides exactly with a switch event from the HDMI audio device; no keyboard/mouse input occurs during the flicker:
19:05:40 EVENT event18 [HD-Audio Generic HDMI/DP,pcm=7] SW c=6 → dpms=[False]
19:05:48 EVENT event18 [HD-Audio Generic HDMI/DP,pcm=7] SW c=8 → dpms=[True]
19:05:53 EVENT event18 [...] → dpms=[False]
19:06:01 EVENT event18 [...] → dpms=[True]
... (continues; locked=true secure=true throughout)
Why Suspend works but idle doesn't
Suspend powers the display down at the kernel PM level (clean, like Windows). The lock-during-suspend path uses OMARCHY_LOCK_ONLY=true omarchy-system-lock ("lock before suspend without scheduling display off"), so it never schedules the live DPMS-off blank that triggers the loop. Windows (dual-boot, same cable/monitor) also sleeps the display cleanly, confirming it is not a hardware/cable fault.
Workaround
Commenting out the blank in shell/plugins/lock/Service.qml stops the flicker (display stays on while locked):
function runBlank() {
// if (!blankProcess.running) blankProcess.running = true
}
(Note: editing a /usr/share/omarchy file; it can be overwritten on update.)
Suggested fix
- Don't treat unrelated switch/jack events (e.g. HDMI audio
SW_VIDEOOUT_INSERT) as wake activity, or - Stabilize/guard the display before issuing DPMS-off (e.g. delay the blank, or detect the link-flap and avoid re-arming), or
- On lock, prefer a suspend-like display power-down instead of a live
hl.dsp.dpms disablethat flaps on certain GPUs.
Steps to reproduce
- Omarchy on AMD APU with HDMI/DP display + Radeon HDMI audio.
- Leave idle until the lock engages (default
lock = 300, repro used100/200). - ~5 s after lock, the display flickers off/on.
- Confirm with
watch -n1 'hyprctl monitors -j | jq .[].dpmsStatus'andsudo libinput debug-events(or raw/dev/inputmonitoring) showing HDMI audio switch events coinciding with each toggle.
Same loop on a discrete AMD card, with a few measurements that may narrow it.
Navi 32 (RX 7700 XT), Omarchy 4.0.1-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2, mesa 26.2.1. Three monitors, and only two of them flap:
| port | monitor | mode | disconnects in one session |
|---|---|---|---|
| HDMI-A-1 | ASUS PB277Q (2015) | [email protected] | 8 |
| DP-2 | ASUS ProArt PA278QV (2020), passive DP→HDMI | 2560x1440@75 and @59.95 | 5 |
| HDMI-A-2 | ASUS VG245 | 1920x1080@60 | 0 |
We initially blamed the 2015 panel. Swapping in a different monitor, a different decade, a different connector type and a different port reproduced it identically, so it is not a per-model hardware defect. Refresh rate is also out: the PA278QV at 59.95 Hz flapped exactly as it did at 75 Hz. Two candidates remain and we have not separated them — every 1440p panel drops and the only 1080p one never has, and HDMI-A-2 is also the only connector that has ever behaved.
The drop is delayed ~11 s after DPMS off, and that delay is what makes the damage intermittent. Captured with a passive read-only connector poll:
21:19:19 START HDMI-A-1=connected/On /edid:256/modes:46
21:24:17 CHANGE HDMI-A-1=connected/Off/edid:256/modes:46 <- DPMS off; kernel REG_WAIT same second
21:24:28 CHANGE HDMI-A-1=disconnected/edid:0/modes:0 <- off the i2c bus entirely, +11s
21:24:29 CHANGE HDMI-A-1=connected/Off/edid:256/modes:46 <- returns, +1s
21:24:34 CHANGE HDMI-A-1=connected/On /edid:256/modes:46
status=disconnected, edid:0, modes:0 — the monitor leaves the bus, it is not merely
dark. Because that lands ~11 s later, whether it hurts is a race:
- Benign: the drop lands on an idle compositor. Hyprland re-modesets that output alone, nothing else is touched.
- Destructive: the drop lands with a page flip in flight. Hyprland logs
Cannot commit when a page-flip is awaiting, both outputs are torn down, and the rescan re-modesets whichever connector answers first — the one that just dropped — leaving the healthy monitor with no CRTC and dark indefinitely (HDMI-A-2 is disabled, releasing crtc 373then repeats for the rest of the session).
A second wake source, independent of your HDMI-audio switch events.
shell/plugins/lock/LockView.qml:119 is onPositionChanged: root.wakeRequested() on a
hoverEnabled MouseArea filling the screen, so the synthetic pointer event generated
when surfaces are recreated on hotplug re-arms the blank with no human input at all.
misc:key_press_enables_dpms and misc:mouse_move_enables_dpms are both true in
default/hypr/input.lua:72-73, which contributes at the compositor level too. So the
loop has at least three independent re-arm paths and does not need a person present.
Measured cadence while locked: three full disconnect/reconnect cycles inside one 47-second lock, roughly one every 15 s — 5 s blank plus ~10 s reconnect. Steady oscillation, not decay.
Our workaround is deliberately outside Omarchy: a user systemd unit tails the journal
for lock, resolves the affected output by model (ours moved HDMI-A-1 → DP-2 mid
session) and issues hl.monitor({ output = ..., disabled = true }). A disabled output
cannot be DPMS'd, so the 5 s blank lands on nothing. Verified: 1 disconnect for a whole
lock instead of one every 15 s. It had to live outside Omarchy because the lock
plugin's blank is hardcoded in both timing and mechanism and reads no config keys at
all — discussed as a feature request in
https://github.com/omacom/omarchy/discussions/9076.
Reproduced the same flap loop on different hardware — posting in case the timing helps narrow down whether #8896's debounce fully covers this, since my round-trip is much longer than 1.5s.
Environment
- Omarchy 4.0.2-1 (Arch)
- Hyprland 0.56.2 (
efb50993780079460b0cbed1363e2166a2de1d9f) - Quickshell 0.3.1
- Kernel 7.1.9-arch1-2
- CPU/GPU: AMD Ryzen 5 4500U (Renoir iGPU, amdgpu)
- Laptop internal panel (
eDP-1) manually disabled via Omarchy's clamshell/manual-disable toggle; single external monitor ASUS VG24VQE onHDMI-A-1 - Kernel already logs on boot:
amdgpu 0000:03:00.0: [drm] Failed to setup vendor infoframe on connector HDMI-A-1: -22
Repro
Triggered omarchy system lock manually while simultaneously:
- tailing Hyprland's raw event socket (
socat -U - UNIX-CONNECT:.socket2.sock) - polling
hyprctl monitors -j(dpmsStatus/disabled) every 0.5s
Timeline (relative to lock)
dpms=falsefor ~11.5s (the 5sidleBlankTimerfiring as expected, screen dark)- Compositor then emits
monitorremoved>>HDMI-A-1/monitorremovedv2>>...— Hyprland briefly falls back to a virtualFALLBACKoutput - ~1.5s later:
monitoradded>>HDMI-A-1— the output comes back alreadydpmsStatus=true(re-added enabled/powered), showing the lock/password screen again. No keyboard/mouse activity occurred in this window. - Stayed lit for ~8.5s, then blanked again for ~3.5s, then came back on and stayed on for the rest of the capture window — i.e. still flapping, not settling into a steady blanked state.
So on this hardware the "wake" isn't a spurious input-device activity event arriving within ~1.5s of the blank (as in the HDMI-audio-codec mechanism described in this issue) — it looks more like Hyprland re-adding the output already powered on after a real HPD drop/re-negotiation, several seconds after DPMS-off, closer to what's described in #8580. A pure debounce window like #8896's 1.5s wouldn't catch a reconnect that happens 9-17s later.
Happy to attach the raw socket/poll logs if useful. For now working around it locally with omarchy toggle idle stay-awake.
Independent reproduction on the same hardware class, with two data points that may help scope the fix: a timing profile that falls outside #8896's debounce window, and a measured downstream consequence (daily GTK4 app crashes).
System: AMD Cezanne APU (Radeon Vega iGPU + Renoir/Cezanne HDMI/DP audio codec — the HD-Audio Generic HDMI/DP switch-capable evdev devices are present), dual Dell 4K on HDMI (S2721QSA on HDMI-A-1, P2721Q on HDMI-A-2), Omarchy 4.0.2-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2.
Loop timing (journal + Hyprland event socket): blank at lock+5s → the P2721Q drops its HDMI link ~2s after DPMS-off (monitorremoved) → re-adds ~1s later arriving lit → full wake (every display DPMS on) in the same second → the 5s blank re-arms → repeat, ~10s period. It ran uninterrupted from lock (21:29) to unlock (07:11) overnight — 4,182 "display sleep" transitions in a single day — and stops instantly on real user activity. The S2721QSA flaps on its own slower ~26s rhythm during the same windows.
The wake here fires ~3s after the blank — outside the 1.5s post-blank window in #8896 — and other reports in this cluster measure the link drop at ~11s (comment above) and ~19s (#8580) after DPMS-off. A debounce keyed on time-since-blank has to be very long to cover that spread. Keying on the output change itself, whenever it happens, seems more robust: I've opened PR #10343 taking that approach for the lock-surface wake vector (synthetic pointer motion delivered when the lock surface is rebuilt for the returning output). It composes with #9152 (idle-service vector) and #8581 (re-blank of returning monitors) rather than replacing them — on this machine the evidence says both vectors fire.
Severity data point: every flap makes Hyprland re-send zwp_linux_dmabuf_feedback_v1 to all Wayland clients, and gtk4 4.22.4 has a bug that makes that a crash roll (gdk/wayland/gdkdmabuf-wayland.c passes the wrong pointer to munmap; fixed upstream in a8a5692c / MR !10166 but not backported to gtk-4-22, which Arch still ships). This machine logged 12 ghostty coredumps and several nautilus coredumps in a week; I symbolized one against Arch's debuginfod and frame #0 is dmabuf_formats_free ← linux_dmabuf_done — exactly that bug. So the lock flap is quietly crashing GTK4 apps for anyone with an affected monitor, which may raise the priority of this cluster.
Happy to test candidate fixes on this hardware — the loop reproduces within minutes of locking.
I believe I fixed this issue. Do you want to try asking your agent to apply my PR https://github.com/omacom/omarchy/pull/13129 in your machine?
I checked this against quattro at c352b62d and against the five open pull requests aimed at it. Claude Opus 5.5 did the review, with Codex Medium as a second opinion. Codex reached the same reading and added the idle-service detail below. It can read this session's notes, so its agreement isn't fully independent. Nothing was run, because a VM has no AMD HDMI link to drop.
The loop is still possible on quattro. About 5s after the lock asks for it, the displays blank (idleBlankTimer in shell/plugins/lock/Service.qml). Every runWake() turns them back on and restarts that timer. Two paths reach runWake() without anyone touching the machine:
- Pointer motion on the lock surface.
LockView.qml:152sends everyonPositionChangedtowakeRequested, including the synthetic motion that comes in when an output is removed and re-added. - An output coming back lit.
onScreensChangedclearsdisplaysBlankbut doesn't blank again.
The idle service's omarchy-system-wake (shell/plugins/services/idle/Service.qml:123) is a narrower third path. lockSystem clears idledThisCycle, so it fires only if the machine goes idle again and then sees activity before the lock timeout comes back round. Your switch events lining up with each DPMS change is consistent with all of this, but the code alone doesn't prove which path they take.
These open pull requests address it:
- #13129 enables amdgpu's HDMI HPD debounce, so the output is never removed and re-added and none of the paths above is triggered. It lists this issue as one it fixes, and it's the one the reviews of the others point to. It doesn't cover DisplayPort, or a reconnect longer than its 1500ms window.
- #8896 ignores wakes for 1.5s after a blank. The relights measured here came about 3s, 11s and 19s after DPMS-off, so most of them get past it.
- #10343 gates motion for 10s after a screen change.
- #9152 gates the idle-service path.
- #8581 re-blanks returning outputs.
Each of the last three covers one path.
This waits on the maintainer to choose among those fixes. #13129 still needs someone affected to test it on their own hardware. @pablo-io, if you can, testing its head b2331c425a56bcef095232bc531bb2afd219d5d6 with the steps in https://github.com/omacom/omarchy/pull/13129#issuecomment-5964151192 and reporting the result there would settle whether it fixes your HDMI case. It would also show whether the HDMI-audio switch events stop with it.