omarchy-brightness-display off dispatches a dpms form the Lua API ignores — locked screens never power off
What happened
Locking the machine (manually via omarchy system lock, or via idle timeout)
never powers the displays off. The lock screen stays fully lit indefinitely.
What was expected
omarchy-shell's lock plugin arms a blank timer that runs
omarchy-brightness-keyboard off; omarchy-brightness-display off ~5 s after
locking (shell/plugins/lock/Service.qml, blankProcess), so the panels
should go dark shortly after lock.
Root cause
bin/omarchy-brightness-display dispatches DPMS like this (current master,
lines ~63 and ~70):
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' # off branch
hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' # on branch
On this system the { action = "disable" } form returns ok but does
nothing — every output still reports dpmsStatus: true afterwards. The
string form works:
$ hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'; sleep 1
$ hyprctl monitors -j | jq '.[].dpmsStatus'
true
true
$ hyprctl dispatch 'hl.dsp.dpms("off")'; sleep 1
$ hyprctl monitors -j | jq '.[].dpmsStatus'
false
false
(hl.dsp.dpms({ action = "enable" }) does relight the panels, which is
consistent with the dispatcher treating any unrecognized argument as "on" —
that would make the broken "off" branch invisible everywhere except a lock
that never blanks.)
Suggested fix
Use the string form in omarchy-brightness-display:
hyprctl dispatch 'hl.dsp.dpms("off")'
hyprctl dispatch 'hl.dsp.dpms("on")'
Steps to reproduce
omarchy system lock(or wait for idle lock)- Don't touch anything for a minute
- Displays stay lit;
hyprctl monitors -j | jq '.[].dpmsStatus'(from a TTY or over SSH) showstrueon every output
System
- Omarchy 4.0.0-1 (also reproduced against current master's
bin/omarchy-brightness-display) - Hyprland 0.56.2-1 (v0.56.2, commit efb5099)
- CPU: AMD Ryzen 9 7950X3D; GPU: NVIDIA RTX 4060 Ti (AD106) + AMD Raphael iGPU
- Monitors: 2× Dell SE3223Q (HDMI-A-1 + DP-3), scale 1.6
- Full
omarchy debuglog available on request
Possibly related but distinct: #7399 reports the lock screen re-blanking after DPMS wake, which implies blanking does work on that setup — so this may be version- or path-dependent rather than universal.
Counter-data point, since this may be more build- or driver-dependent than it looks:
the { action = "disable" } table form works here.
Hyprland 0.56.2-1, Omarchy 4.0.1-1, AMD Navi 32 (RX 7700 XT), amdgpu. Blanking goes
through omarchy-brightness-display off, i.e. exactly
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })', and it takes effect: the
Hyprland log shows Disabling output HDMI-A-1 / Disabling output DP-2 in the same
instant, dpmsStatus flips, the kernel connector's DPMS property goes to Off, and the
panels physically power down. On this setup the problem is the opposite of yours — it
works, and the resulting link drop starts a flap loop (#8863).
So switching unconditionally to hl.dsp.dpms("off") may fix your machine while
changing behaviour on machines where the table form already works. Might be worth
establishing what differs — driver, Hyprland build, or Lua parser version — before
picking a form.
Separately, and possibly relevant to the root cause: on this build
hl.dsp.dpms({ action = "disable", monitor = "HDMI-A-2" }) returns ok and silently
ignores the monitor key, changing nothing, even though a monitor-scoped dpms action
exists in the binary. A dispatcher that accepts and discards unrecognised table keys
would explain an action key being dropped too on a build whose parser disagrees.
Confirming this on a separate system (Hyprland 0.56.2) — same behavior exactly as described: { action = "disable" } returns ok but dpmsStatus stays true with zero input in between, while { mode = "off" } actually flips it to false.
Also confirmed { mode = "on" } correctly re-enables (verified dpmsStatus back to true), so the fix isn't just the off branch — both hl.dsp.dpms({ action = "disable" }) → hl.dsp.dpms({ mode = "off" }) and hl.dsp.dpms({ action = "enable" }) → hl.dsp.dpms({ mode = "on" }) need the same swap in bin/omarchy-brightness-display.
Applied as a local patch (sed -i on the two lines) while waiting on this to land — screen now actually blanks after lock instead of staying lit indefinitely, no other side effects observed.
I checked the diagnosis in this report against Hyprland's source and on a clean Omarchy worker running the same Hyprland build (0.56.2, commit efb5099). The dispatch form in bin/omarchy-brightness-display is correct, and the suggested replacement would introduce a bug. The symptom itself, a lock that never blanks on this machine, did not reproduce, so its cause is still open.
What the forms do in 0.56.2. hl.dsp.dpms reads only an action key from a table (tableToggleAction in src/config/lua/bindings/LuaBindingsInternal.cpp:444). A bare string or a table without action falls through to toggle. So { action = "disable" } and { action = "enable" } are the explicit off and on. "off", "on", { mode = "off" } and { mode = "on" } all mean "flip each output" (Actions::dpms, src/config/shared/actions/ConfigActions.cpp:1236).
On the worker, one display, no input in between:
{ action = "disable" }turned the display off, and a second call left it off."off"and{ mode = "off" }turned it off, and a second call turned it back on."on"and{ mode = "on" }turned a lit display off.omarchy system lockblanked the display about 5 seconds after locking, and it stayed off.
That is why "off" looked like it worked here: on a lit display, toggle and disable do the same thing. The lock calls off from shell/plugins/lock/Service.qml, and on comes in through bin/omarchy-system-wake and the idle service. With the string or mode form, an off that arrives while a display is already dark lights it up. An on that arrives with some displays lit and others dark blanks the lit ones. @diegodiaz1256, your local patch has that behaviour, so it is worth reverting once the cause is found.
Why { action = "disable" } would leave dpmsStatus true on your machine is not something the source explains: from a lit display, both forms reach the same setDPMS(false). One candidate is a wake right after the dispatch. Omarchy sets key_press_enables_dpms and mouse_move_enables_dpms in default/hypr/input.lua, so a keypress or a nudge of the mouse in that second relights the outputs. To tell these apart, please run this over SSH from another machine, with nobody touching the keyboard or mouse:
export HYPRLAND_INSTANCE_SIGNATURE=$(ls /run/user/$(id -u)/hypr | head -1)
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'; sleep 2; hyprctl monitors -j | jq '.[].dpmsStatus'
hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'; sleep 2
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'; sleep 2; hyprctl monitors -j | jq '.[].dpmsStatus'
Please also post the output of hyprctl rollinglog | grep -i -E 'dpms|output' taken straight after, and omarchy-version.
Codex at medium effort reviewed this separately from the Hyprland source and reached the same reading: the current forms are correct, the proposed ones toggle, and the cause on this machine is not established. It agreed with a reading I had already written down, so its independence is not guaranteed. It also traced the wake-path callers of on. This waits on the reporter for the output above, and the maintainer will decide what to do with it.