Repository navigation
Make brightness keys work on external displays with a kernel backlight - #14323
Open
wesleygrimes wants to merge 5 commits into
Open
wesleygrimes wants to merge 5 commits into
wesleygrimes wants to merge 5 commits into
Conversation
Hyprland monitor names are DRM connector names, so a backlight the kernel registers on the focused external monitor's connected connector is used through the existing brightnessctl path before the Apple asdcontrol and DDC fallbacks. This lets the Studio Display use the plain brightness keys and OSD on kernels that expose its DCP backlight, without sudo. Internal panels keep omarchy-hw-display's pick: GPU drivers such as i915 register a backlight on the eDP connector that may not be the one driving the panel (gmux on dual-GPU Macs). Signed-off-by: Wes Grimes <wesgrimes@hey.com>
wesleygrimes
force-pushed
the
brightness-external-backlight
branch
from
October 5, 2026 15:26
ae625d4 to
293a2c0
Compare
Contributor
|
Signed-off-by: Wes Grimes <wesgrimes@hey.com>
Signed-off-by: Wes Grimes <wesgrimes@hey.com>
Signed-off-by: Wes Grimes <wesgrimes@hey.com>
Signed-off-by: Wes Grimes <wesgrimes@hey.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With an Apple Studio Display focused, the brightness keys show the OSD but the screen doesn't change. Today they go through
sudo asdcontrol, and Studio Display firmware 17.0 ignores that command (macOS behaves the same).What this changes
Some kernels expose an external display's brightness as a regular backlight device on its connector, for example
apple-DP-3-blfor the Studio Display. When the focused external display has one, the brightness keys now use that kernel backlight instead of asdcontrol: brightnessctl, the usual step sizes, the OSD, and no sudo.Kernel PR: iconidentify/aurora-linux#15 adds the Studio Display backlight. It's merged into the aurora-linux fork and reaches Omarchy once that fork is merged into omacom/linux and the kernel is built.
This PR is backwards compatible: on a kernel without a connector backlight every display takes the path it does today, so it can merge before the kernel work lands.
Everything else works as it does today:
omarchy-hw-display's choice. Some GPU drivers attach a backlight to the internal connector that isn't the one driving the panel (gmux on dual-GPU Macs), so internal connectors aren't checked.DP-1on both GPUs of a hybrid laptop), neither backlight is used. Hyprland only gives us the name, so the keys can't tell the two displays apart, and they take the existing path instead of possibly changing the wrong display.This isn't Apple-specific: any external display whose kernel driver provides a backlight gets the same treatment.
The manual's monitor page and the
BrightnessKeys.qmlheader now describe the connector backlight as the first backend for external displays.Testing
test/shell.d/brightness-display-test.shuse a fake sysfs tree. They cover:omarchy-hw-displayHEADLESS-1) looking up quietly, without a sysfs error on stderr./test/allin a clean checkout passes apart from five shell tests (config,elsewhen-migration,passwordless-grant-lifecycle,snapper,unowned-system-paths) that fail the same way onquattrowithout this change.This touches the same file as #13362, so whichever lands second will need a small rebase.