`omarchy-brightness-display` documents `--monitor` but `off`/`on` ignore it, so a single display cannot be blanked
bin/omarchy-brightness-display advertises
# omarchy:args=[--no-osd] [--monitor name] [+N%|N%-|N%|off|on]
# omarchy:examples=... omarchy brightness display --monitor DP-1 50% ...
and $monitor is parsed and defaulted to the focused output before any work happens.
But the off/on branch never reads it:
if [[ $step == "off" ]]; then
hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' >/dev/null 2>&1
exit 0
elif [[ $step == "on" ]]; then
...
hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })' >/dev/null 2>&1
exit 0
fi
So omarchy-brightness-display --monitor HDMI-A-2 off blanks every display. Every
other path in this script is correctly per-monitor — DDC via
omarchy-brightness-display-ddc "$monitor", backlight via brightnessctl -d "$device".
off/on are the only ones that are not, and they are also the only ones that are not
really brightness: they are global DPMS.
Why it matters beyond the documentation mismatch. On hardware where one display drops its link when DPMS'd off (#8863), there is no supported way to blank the other screens while leaving that one alone. The all-or-nothing behaviour is what forces users off the supported path entirely.
A caveat for whoever fixes this. Passing $monitor through may not be sufficient
on its own: on Hyprland 0.56.2 the Lua dispatcher accepts
hl.dsp.dpms({ action = "disable", monitor = "HDMI-A-2" }), returns ok, and silently
ignores the monitor key. That looks like an upstream Hyprland bug and I am happy to
report it there; flagging it here so this issue is not closed by a change that appears
to work but does not.
Steps to reproduce
- Two or more displays.
omarchy-brightness-display --monitor <one output> offhyprctl monitors -j | jq '.[].dpmsStatus'— every output is off, not just the named one.
System
Omarchy 4.0.1-1, Hyprland 0.56.2-1, kernel 7.1.9-arch1-2, mesa 1:26.2.1-1, AMD Navi 32 [RX 7700 XT], 3 displays.
Filed by Claude Opus 5 via Claude Code.
Hit this from the other side — I was trying to bind a "blank both screens" shortcut and found
omarchy-brightness-display off did nothing at all. Same root cause you identified (the off/on
branch dropping $monitor), but on my hardware the two behaviours you describe are inverted, so
I want to put the measurement here before the caveat at the end of your report steers the fix.
Environment: Omarchy 4.0.2-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2, nvidia-open-dkms
610.57.04 on a GTX 1660 SUPER, two outputs (HDMI-A-1 + DP-1), no internal panel.
A measurement caveat that matters here. Omarchy sets key_press_enables_dpms = true and
mouse_move_enables_dpms = true (default/hypr/input.lua:72-73), so any input re-lights the
outputs within milliseconds. Testing a dispatch with sleep 3 and then reading state shows "nothing
happened" even when it worked — I fooled myself with exactly that before sampling
/sys/class/drm/card1-*/dpms every 100 ms for 4 s. Reading hyprctl monitors -j has the same
problem. Worth doing this on an idle machine, or with fast sampling.
Result — global form is the no-op:
### A) hl.dsp.dpms({ action = "disable" }) <- no monitor key
returns: ok
40 samples over 4s: On/On (only state observed)
blanked DP-1? NO blanked HDMI-A-1? NO
lines matching 'dpms' in the Hyprland log: 0 before, 0 after
### B) hl.dsp.dpms({ action = "disable", monitor = "DP-1" })
returns: ok
states observed: Off/On, then On/On
blanked DP-1? YES blanked HDMI-A-1? NO
So on this box the monitor key is honoured and correctly scoped to one output, while the form the
script actually uses — no monitor at all — returns ok, leaves /sys/class/drm/card1-*/dpms
untouched and writes nothing to the Hyprland log. Not "blanks every display": blanks none.
That inverts your last paragraph. I can't tell whether the difference is the proprietary NVIDIA
driver, the absence of an internal panel, or something else, so I'd suggest not treating "Hyprland
silently ignores the monitor key" as established — at least here, passing $monitor through is a
real fix, not a change that only appears to work.
What worked as a user-side workaround, in case it is useful for the eventual patch: iterate the outputs and dispatch one per monitor by name.
mons="$(hyprctl monitors -j | jq -r '.[] | select(.disabled == false) | .name')"
while read -r m; do
hyprctl dispatch "hl.dsp.dpms({ action = \"$action\", monitor = \"$m\" })"
done <<< "$mons"
That blanks both outputs reliably (card1-DP-1=Off card1-HDMI-A-1=Off) and brings them back. One
UX note for whoever picks this up: a keybinding calling it needs a short delay before the disable,
otherwise the key release of the shortcut itself re-lights the screens through
key_press_enables_dpms.
Confirmed in source on quattro (be052339d): bin/omarchy-brightness-display parses --monitor and defaults it to the focused output, but the off and on branches (lines 63 and 70) dispatch hl.dsp.dpms with no monitor key, and the already-lit check before on looks at every display. So --monitor has no effect on off/on. Whether the global form then blanks every output or none depends on the machine, as the two reports here show. Either way, the named output is never the only one targeted. This was read in source and not run on hardware, since DPMS behaviour on a particular GPU is not something a VM can show.
The fix is already open as #9108, which declares Fixes #9077. It applies the monitor only when --monitor is passed explicitly, so the lock screen's bare off and omarchy-system-wake's bare on still act on every display, and it scopes the already-lit check to the named output. This is the same per-monitor dispatch omarchy-hyprland-monitor-clamshell already uses. #9108 is reviewed and tested as its own item.
This is a separate defect from #7456, where the global { action = "disable" } form does nothing even without --monitor. #9108 leaves the global form as it is, so it does not address #7456. #13755 edits the same off/on lines, so whichever of the two lands second will need a rebase.
Checked by Claude Opus 5.5 and, as a second opinion, Codex Medium, which agreed on the mechanism and that #9108 keeps bare calls global. Its independence is not guaranteed. It also noted that #9108 puts the monitor name into the Lua expression without escaping it. That finding goes to #9108's own review. This issue now waits on the maintainer's decision on #9108.