Display plugin unable to change brightness for mirrored display monitors
System details
Tested with a ASUS and Samsung monitor over HDMI, Omarchy 4.0.3-1, Linux 7.2.3, ddcutil installed
What's wrong?
Problem
My laptop screen is mirrored to an external monitor (over HDMI but doubt its relevant). The default display plugin only shows and can only show the the brightness slider for the laptop but never the mirrored external monitor. It is not possible to change focus from the laptop to the monitor to make it behave as expected.
Why, as I understand it
The plugin queries omarchy-monitor-state, which queries brightness from the focused monitor. When screens are mirrored, Hyprland keeps only the internal display focused, the laptop acting as the source, but never the external mirrored monitor as it is just a mirror. The DDC/CI path in omarchy-brightness-display is never reached from the UI.
Suggested solution
Any UI solution that allows for mirrored monitors to get their brightness changed too. I know there are a lot of great display plugins in the marketplace too but I made a clone of the default that is focused purely on bug fixes below. I'd love to open an appropriate PR for it if it gets your blessing.
https://github.com/knappkevin/mirror-display-brightness It does also fix another display plugin bug that couldn't toggle the enable/disable of monitors, which seemed to be an intended part of the code. But I don't care about that personally.
Checked against quattro (754d2d04b) by reading the source; nothing was run, since showing the external half needs a real monitor with DDC/CI.
The cause is as you describe. The Display panel reads and sets brightness only for the focused monitor: bin/omarchy-monitor-state reads brightness via omarchy-brightness-display --monitor "$focused_monitor", and setBrightness in shell/plugins/panels/monitor/Panel.qml passes --monitor root.focusedMonitor. omarchy-hyprland-monitor-internal-mirror makes the external output a mirror of the laptop panel, and Hyprland keeps focus on the laptop panel, which is the source. So omarchy-brightness-display always takes the laptop backlight path, and the DDC path for the external monitor is never reached. The brightness keys behave the same way: shell/services/BrightnessKeys.qml steps the laptop backlight whenever the focused monitor is the laptop panel, so the mirrored monitor never changes from the keys either.
#12541 fixes the panel half of this: while mirroring, it sends the slider's value to both the laptop panel and the mirrored monitor. It is linked to this issue and will close it when it merges. It does not change the brightness keys. It is reviewed as its own item and is waiting on the maintainer.
The enable/disable toggle you mention is separate from this issue and was not looked into here. If it still fails on a current install, a separate issue with the steps that fail would let it be diagnosed.
No second opinion ran on this diagnosis. The configured reviewer (Codex Medium) was reachable, but today's review budget was already spent, so this is one model's reading of the source.
#12541 (Apply brightness to mirrored external displays) looks like the open fix for this — please try that branch / track it as the duplicate target.
A follow-up to the diagnosis above: a second opinion has now run on it. Codex Medium independently traced the same source on current quattro (ecf0eb362) and agreed with the mechanism. Nothing was run, so it is still a reading of the source and not a reproduction. Codex had the issue text but not the earlier comment, and its independence from the first review is not guaranteed.
Codex added two things, and I checked both against the source:
- Every brightness binding has the same limit as the panel, not just the plain brightness keys. Shift and Alt with the brightness keys (
default/hypr/bindings/media.lua), and the fallback inshell/shell.qmlwhen the shell's own handler declines, all callomarchy-brightness-displaywithout--monitor. The script then resolves the focused monitor, which while mirroring is the laptop panel. #12541 changes only the panel, so none of these change after it merges. - Until then, there is a workaround. Naming the external output explicitly skips focus and takes the DDC path, for example
omarchy-brightness-display --monitor HDMI-A-1 50%(hyprctl monitorsshows the name). Whether it then works depends on your monitor answering DDC/CI, which was not tested here.
Nothing else has changed. #12541 is still open and linked to this issue. Whether the brightness keys should also drive the mirrored monitor is a decision for the maintainer.