Night Light returns to daylight abruptly while enabling transitions smoothly
System details
- Omarchy: 4.5.0-3
- CPU: AMD Ryzen 5 4600G with Radeon Graphics
- GPU: AMD Renoir / Radeon Vega integrated graphics (amdgpu)
- Hyprland: 0.56.2-4
- hyprsunset: 0.4.0-3
- Kernel: 7.2.15-1-omarchy, x86_64
- Session: Wayland
What's wrong?
Switching from daylight to Night Light changes the screen color smoothly, but switching back from Night Light to daylight changes it abruptly. The return transition should be gradual too.
Steps to reproduce
- Enable Night Light using Omarchy's Night Light control.
- Observe the smooth transition to the warmer screen color.
- Disable Night Light to return to daylight.
- Observe that the screen color returns abruptly instead of transitioning smoothly.
Expected behavior
A smooth color transition in both directions, including when restoring the original untinted output.
Investigation
The visual behavior above was observed by the reporting user. The installed script and configuration were inspected; the visual transition was not independently reproduced during preparation of this report.
The installed omarchy-toggle-nightlight matches the current upstream script at commit 74de10479d3bf7aa7865408e33219064cfe45432. On the off path it requests 6500 K, then immediately requests the identity matrix:
hyprctl hyprsunset temperature $TARGET_TEMP
# ...
if (( TARGET_TEMP == OFF_TEMP )); then
hyprctl hyprsunset identity
fi
The temperature readback is used to exit the retry loop. A possible cause is that the subsequent identity request interrupts or bypasses the visible color transition. This is a hypothesis, not a confirmed root cause. The identity reset is intentional to remove the residual tint at 6500 K; the concern here is the abrupt transition when reaching that untinted state.
The local hyprsunset configuration has the default identity profile at 07:00, with no active custom temperature schedule. A read-only temperature query returned 4000 K.
omarchy-debug --no-sudo --print was run to gather system information. Relevant details are included above; the full log contains unrelated system and network information and is omitted. No screen recording is attached.
I can confirm the hypothesis from source. The identity request cuts the fade short.
hyprsunset (0.4.0) has no transition of its own. Every IPC command that changes state calls reload() and commits a new CTM straight away. The fade comes from Hyprland's CTM animation, and in Hyprland 0.56.2 CHyprlandCTMControlProtocol::setCTM (src/protocols/CTMControl.cpp) starts each animation from the previous target, not from the matrix currently on screen:
data->ctmFrom = data->ctmTo;
data->ctmTo = ctm;
data->progress->setValueAndWarp(0.F);
*data->progress = 1.F;
monitor->setCTM(data->ctmFrom);
So the off path does this:
temperature 6500: fade starts from the 4000 K matrix towards 6500 K (__internal_fadeCTM, 500 ms linear).identity, a few milliseconds later:ctmFrombecomes the 6500 K target, which is applied immediately, so the screen jumps from roughly 4000 K to 6500 K in one frame. The remaining fade, 6500 K → identity, is almost invisible.
Turning on has no second request, which is why it looks smooth. omarchy-toggle-nightlight and the shell's services/nightlight/Service.qml (temperature 6500 && identity) both hit this.
A fix that keeps the fade is to turn off with identity alone. That fades from the 4000 K matrix directly to identity. hyprsunset then keeps reporting 4000 K, so "off" has to be read as hyprctl hyprsunset identity get returning true (available in 0.4.0), not from the temperature. The shipped identity = true profile already gives that state. This touches the status logic in omarchy-toggle-nightlight, the shell service's probe and NightlightModel.js, so I'm leaving it here for a maintainer to confirm the direction before anyone opens a PR. The quicker alternative, waiting out the 500 ms fade before sending identity, depends on Hyprland's internal animation timing.
GPT-6 in Codex (reasoning effort not exposed) read the report, the follow-up, and the current omarchy-toggle-nightlight code on quattro. The off path still sends temperature 6500 followed by identity; I have not reproduced the visual transition or confirmed its cause on a worker.
My initial classification is a bug, but the classification reviewer (deepseek-v4p1-flash) returned no usable classification, so the required agreement is missing. No second review of the diagnosis completed. This remains open for classification to be resolved before verification and a fix; no code or labels were changed.