Lock screen keeps committing frames while the output is DPMS-off, so GPU memory grows unbounded for the whole lock
System details
Intel Core Ultra 7 270K Plus · AMD Radeon RX 9060 XT 16 GB (amdgpu), previously Intel Arc B570 10 GB (xe) · 62 GB RAM · one 5120x2160@120 output at scale 1.25 · Omarchy 4.0.2-1 · Hyprland 0.56.2-1 · quickshell 0.3.1-1 · Mesa 26.2.1-1 · kernel 7.2.2
What's wrong?
While the session is locked and the output is DPMS-off, GPU memory grows without bound until the next wake. On a 10 GB card this killed the compositor twice: the first render after I came back got intel: the execbuf ioctl keeps returning ENOMEM from Mesa, which aborted Hyprland (SIGABRT in libgallium via CHyprGLRenderer::endRender → CEGLSync::create → dri_create_fence_fd). Hyprland's own relaunch then came up with No config file found, so the desktop looked dead and needed a hard power-off.
What makes this state different from a lit lock or an unlocked blank screen
| state | GPU memory |
|---|---|
| unlocked, display off | flat over two hands-off 90 s tests |
| locked, display lit | flat for hours |
| locked, display off | linear growth until wake |
It is released in one step on the first render after unlock: 5,973 → 3,097 MB.
Mechanism, measured
- Hyprland releases a client's buffer only after it renders a frame that used it (the EGLSync/eventfd release path).
- With the output DPMS-off, Hyprland renders nothing for that output.
- The lock screen keeps committing full-screen frames while dark. Qt does not wait forever for frame callbacks, and nothing in the lock plugin suspends rendering when the output is blanked:
runBlank()(shell/plugins/lock/Service.qml:172) only spawns the blank process, andLockView.qml:104-113keeps a full-screenImagefeeding aMultiEffectwithblur: 1.0,blurMax: 128,blurMultiplier: 1.25live for the whole dark lock. - So every committed frame is retained. At 5120x2160 each is 44 MB.
| card | growth while dark + locked | outcome |
|---|---|---|
| Intel Arc B570 10 GB (xe) | ~130 MB/min, +1.8 GB in 14 min | card full in ~2 h → ENOMEM → compositor abort, after a 99 min and a 3 h 19 min lock |
| AMD RX 9060 XT 16 GB (amdgpu) | ~40 MB/min in 85 MB steps; mem_info_vram_used 4,010 → 5,973 MB over 49 min |
evicts to system RAM, no crash |
Per-process during a dark lock (xe fdinfo): quickshell resident VRAM 1,298 → 3,117 MB in 30 min; Hyprland-only ("orphaned") dmabufs 6 → 14; nothing else grew.
Reproduce
Lock, let the display blank, wait 30 minutes, read the card's VRAM counter (/sys/class/drm/card*/device/mem_info_vram_used on amdgpu). Unlock and it drops back. The bigger the output and the smaller the card, the sooner it bites.
Related, but not this
- #8331 is a file-descriptor leak (
wl_shm/dmabuf fds, failing with EMFILE) that tracks on-screen activity while lit and unlocked. This is GPU buffer retention that is flat while lit and grows only in the dark, and it releases everything on the next render. - #8453 looks like this bug's downstream crash reported without the memory diagnosis: Chase78712002's comment there has a 2 GB card, all four bursts starting on a wake from an already-locked session, and no crash on a later boot at ~1.0 GB used. That is the same "card full during the dark lock, first render after wake fails" shape.
- #7478 is the other locked-plus-DPMS-off hazard, but its timescale is seconds and its mechanism is the output disappearing, not memory.
- #4271 was closed as by-design for a constant per-client VRAM footprint. This is not a constant footprint, it is unbounded growth.
Suggested fix
Stop the lock view repainting while the output is blanked, so nothing is committed that cannot be released. PR #6642 (lock.displayBlank: false) is the only current escape and works by removing the precondition. Worth noting that #9152 and #10130 both lengthen the dark window, so they make this worse: #10130's own capture shows a machine dark from 23:00 to 03:29, which on the AMD figures above is about 10 GB of retention.
The compositor half is arguably Hyprland's: a replaced buffer that was never rendered could be released rather than held until the next render on a dark output. I am happy to open that upstream too if you want it split.
Filed by Claude Opus 5 via Claude Code.
Confirmed the DPMS-off root cause on my machine, and a verified workaround Another AMD data point, and one that isolates the DPMS-off trigger: I could not reproduce the flicker at all once the lock stops blanking the display.
System
- Omarchy 4.0.4 (version stamp reports 4.0.0.alpha), Hyprland 0.56.2
- AMD/ATI Barcelo APU (amdgpu, DCN 2.1)
- Single display: HDMI-A-1 — Philips 27E1N1800A 3840x2160@60, scale 1.5
Observed cycle (~13s, every lock, no suspend needed)
omarchy-shell lock lock enters secure=true → 5s later the lock plugin's idleBlankTimer fires blankProcess, which runs omarchy-brightness-display off → hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' → the monitor sleeps, the HDMI link drops, and Hyprland removes the output. At that point every Wayland client sees the output list go empty: INFO qt.qpa.wayland: There are no outputs - creating placeholder screen DEBUG: Not creating lock surface for screen ... not backed by a valid wayland output. WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
The shell then rebuilds its whole panel scene (all IPC handlers re-register), the monitor re-syncs, and the loop repeats every ~13s. Notably the kernel journal shows no DRM/HDP/EDID events — the "removal" is silent link-loss from the sleeping sink, not a real unplug. That is the exact "monitors that disconnect when they receive no signal" hotplug-loop pattern (Hyprland PR #14818 territory). This also distinguishes the two variants: in #7145 the reporter ruled DPMS out (monitor stayed healthy/DPS off not involved); here DPMS-off is required to trigger it. So #7145's phantom-screen handling and #7478/this DPMS-off path are separate triggers sharing the same visible symptom.
Verified workaround (no packaged file changes) Since the only DPMS-off call comes from the lock plugin's blankProcess, cloned the plugin and removed just the display-off from that one command:
omarchy plugin clone omarchy.lock
Then in ~/.config/omarchy/plugins/
["bash", "-c", "omarchy-brightness-keyboard off"]
Result: keyboard backlight still blanks on lock, the display stays lit, and the output-loss/rebuild cycle is completely gone — zero no outputs/FALLBACK entries in the journal over a locked test session. No side effects observed; manual omarchy brightness display off/on still works since it calls the script directly.
The monitor stays on while locked (no display power-save during lock) but that's more acceptable than a display blinking on and off.
I tried to reproduce this on a disposable Omarchy VM running current quattro (3882c27), Hyprland 0.56.2 and quickshell 0.3.1, with the shell started under WAYLAND_DEBUG=client and Qt's render-loop logging so every frame and buffer it sent was recorded. It did not reproduce there. After omarchy-shell lock lock, the lock surface committed a handful of frames while lit, then the lock blanked the output. Over 300 seconds of DPMS-off, at scale 1 and again at scale 1.25, the lock surface committed no frames and no new buffers were created. Hyprland's dmabuf count stayed at 12 throughout.
The source agrees with that. With a static wallpaper nothing in the lock view repaints by itself: the MultiEffect blur has fixed parameters, the lock has no clock or animation, and the cursor only shows once there is text. A video wallpaper's feed is unloaded once the output reports DPMS-off (feedActive in shell/plugins/lock/LockView.qml). So the mechanism in the report, a lock view that keeps committing frames into a dark output, is not what this code does on a stable output.
The VM has a virtual display, so it cannot show what your panel does. The 85 MB steps are about two 5120x2160 buffers, which fits a fresh swapchain more than a stream of repaints. That would happen if the output went away and came back while dark, as the comment above describes for an HDMI link that drops on DPMS-off (see also #8863 and #11330). That is plausible, not established. To tell the two apart, a capture from one dark lock on 4.0.4 or later would decide it:
journalctl -t omarchy-shell --since "<lock time>"covering the dark period: anyThere are no outputs - creating placeholder screenor monitor removal lines mean the output is being torn down and re-added.hyprctl monitors -jtaken a few times while dark (over SSH), to show whether the output stays listed withdpmsStatus: falseor disappears.- If the output stays put, the same lock run with quickshell started as
WAYLAND_DEBUG=client quickshell -n -p "$OMARCHY_PATH/shell", and a count ofwl_surfacecommit()lines while dark. Growth with no commits would point at Hyprland or the driver rather than the shell. - Whether the wallpaper is an image or a video, and whether any shell plugins are customised.
Codex Medium reviewed the same code and measurements separately and agreed that nothing in the source keeps redrawing the lock while dark. It added that the bar, its clock and notification popups stay mapped behind the lock and can still update their own surfaces, though the VM showed only one such commit in five minutes. It also named output churn as the likelier trigger. Its independence from this review is not guaranteed. This waits on the capture above. In the meantime, the cloned lock plugin without the display-off in the comment above avoids the dark state.