Repository navigation
Conversation
Automated AI review
Verified: in a sandbox with stubs modelled on hyprsunset v0.4.0 IPC and brightnessctl 0.5.x arithmetic, the brightness keys on an internal panel step down from 2% to 1%, then to hardware 0 (reported The main concerns are at the edges: the 1% backlight floor is gone, gamma also dims external monitors, the monitor panel steps unevenly around 1%, and normal-range brightness changes now reset any hyprsunset gamma. Default keys and the panel now write raw backlight 0Base clamps the down key at 1% ( Sandbox run, max brightness 255, starting at raw 3 (1%):
On base, the precise down key ( Impact: on panels whose backlight turns off at raw 0 (the case #5525 guarded against, also described in systemd's Suggested change: keep the backlight at its existing 1% floor and apply the gamma steps on top of it, or make raw 0 opt-in. Gamma dims external monitors too, with no way back from themhyprsunset builds one colour matrix ( Sandbox run: Impact: dimming the laptop below 1% also dims connected external monitors down to 25% gamma. After focus moves to an external monitor, or the lid closes in clamshell mode, the keys and panel only adjust DDC, and the picture stays dimmed until brightness is raised on the internal panel again, hyprsunset restarts, or hyprsunset re-applies its configured profile at the profile's time (07:00 in the shipped config). This differs from the description's "External display brightness behavior is unchanged". Suggested change: one option is to reset gamma to 100% when an Apple or DDC display is adjusted. Because gamma is global, this also lifts the internal panel back to the Monitor panel sticks at 1% going up and jumps to the minimum going downIn Results from a Node harness that loads the pinned
External monitors are unaffected ( Impact: on internal displays, keyboard Suggested change: use the 0.1 step only when going down from 1 or less, or up from below 1. When stepping down from above 1, stop at 1 first. Normal-range brightness changes reset hyprsunset gamma and depend on its IPCAfter every step at hardware above 0, and before every absolute set of 1% or more, the script now runs Sandbox run with hyprsunset started outside the script (profile gamma 0.8, backlight at 50%):
Impact: a gamma the user set through Suggested change: record in the state file when this script lowers gamma, and reset to 100 only while that record exists. Also scope Night light note: a hyprsunset started by the brightness script loads the shipped identity profile at 6000 K. Related open PR: #13332 ("Fall back to hyprsunset gamma on displays without DDC/CI") also changes Optional test improvement: in Review informationTest scope: source review of the head plus hyprsunset v0.4.0, Hyprland v0.56.2 ( AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
Automated AI review
Outcome: at Earlier review: raw 0 and gamma resets resolved (IPC dependence returns at 1%); panel keys resolved (not the slider wheel); external monitors dimmed still present.
|
| Head | Variant | Result | Exit |
|---|---|---|---|
98c9a1af51 |
unmodified; omarchy-brightness-display-gamma not on PATH |
14 ok, 0 not ok | 0 |
98c9a1af51 |
cleanup block deleted from bin/omarchy-toggle-nightlight |
14 ok, 0 not ok | 0 |
98c9a1af51 |
an omarchy-brightness-display-gamma that exits 1 put on PATH |
14 ok, 0 not ok | 0 |
de7857a43e |
unmodified; omarchy-brightness-display-gamma not on PATH |
14 ok, 0 not ok | 0 |
de7857a43e |
cleanup block deleted from bin/omarchy-toggle-nightlight |
14 ok, 0 not ok | 0 |
de7857a43e |
an omarchy-brightness-display-gamma that exits 1 put on PATH |
14 ok, 0 not ok | 0 |
In the unmodified run the only trace of the cleanup call is stderr: line 60: omarchy-brightness-display-gamma: command not found. The variant with a failing cleanup on PATH recorded exactly one call, cleanup.
Deleted lines for the second variant:
-if (( TARGET_TEMP == OFF_TEMP )); then
- omarchy-brightness-display-gamma cleanup
-fiReview information
Test scope: source and stubbed sandbox tests at 98c9a1af and its quattro merge; no hardware.
AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.
Opt out: To stop receiving these reviews, reply to this comment saying so.
|
Checking in, since the branch hasn't changed since the Sep 29 review. At A small nit: some checks compare gamma to current_gamma() {
local gamma
gamma=$(hyprctl hyprsunset gamma 2>/dev/null) || return 1
[[ $gamma =~ ^[0-9]+([.][0-9]+)?$ ]] || return 1
printf '%.0f\n' "$gamma"
} |
|
Yes. Unfortunatelly, it is impossible to dim only one monitor using hyprsunset. |
The brightness can be lower than the hardware's 1% with the hyprsunset utility.
When the backlight reaches 0%, brightness keys use hyprsunset gamma for 10 finer steps to 25% gamma possible.
The slider, OSD, and keyboard shortcut support values below 1%.

External display brightness behavior is unchanged.