Bug 511443 - The KDE Night Light feature ignores the scheduling parameters
Summary: The KDE Night Light feature ignores the scheduling parameters
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_nightcolor (other bugs)
Version First Reported In: 6.5.1
Platform: EndeavourOS Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-31 21:06 UTC by kde.fp5t5
Modified: 2025-12-22 22:48 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Despite the needle being in the "daytime" zone, the Night Light feature is active and the screen is tinted (43.93 KB, image/png)
2025-10-31 21:06 UTC, kde.fp5t5
Details
bashrc (1.14 KB, text/plain)
2025-12-17 07:32 UTC, kde.fp5t5
Details
kwinstaterc (652 bytes, text/plain)
2025-12-17 07:33 UTC, kde.fp5t5
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde.fp5t5 2025-10-31 21:06:57 UTC
Created attachment 186371 [details]
Despite the needle being in the "daytime" zone, the Night Light feature is active and the screen is tinted

SUMMARY
The KDE Night Light feature is constantly on after a recent update. This behavior was not present before updating, but I do not know which version I had before the update. The behavior is only present when using the "sunrise and sunset" feature with custom times set. I checked multiple times to verify that the times were set correctly, which they are. Despite being in the "daytime" zone, the Night Light feature is active. This issue is NOT present when the Night Light schedule is set to location-based, either using the automatic location feature or by manually setting latitude/longitude. I am unsure if this is related to this issue, but the brightness slider also no longer works.

STEPS TO REPRODUCE
1. Enable Night Light
2. Set "Switching Times" to "Sunrise and Sunset"
3. Set a custom sunrise and sunset time.

OBSERVED RESULT
Night Light is always on

EXPECTED RESULT
Night Light will automatically turn on at the Sunset time and turn off at the Sunrise time

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.12.56-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i9-9900K CPU @ 3.60GHz
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 2080 SUPER
Manufacturer: ASUS

ADDITIONAL INFORMATION
Comment 1 kde.fp5t5 2025-11-02 22:10:57 UTC
I was able to replicate this behavior on my laptop, which is also running KDE

Operating System: EndeavourOS 
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 2 TraceyC 2025-11-04 20:12:36 UTC
I'm not able to reproduce this on Plasma built from git-master, or on Plasma 6.5.1 on Fedora 42
I'll leave this open so others can try to reproduce, and so people more familiar with the feature can dig into this.
Comment 3 Nate Graham 2025-12-12 16:35:58 UTC
Me neither. Is your detected location accurate?
Comment 4 kde.fp5t5 2025-12-16 00:22:11 UTC
(In reply to Nate Graham from comment #3)
> Me neither. Is your detected location accurate?

As stated in the issue description, the problem occurs when using custom times, not when using the location-based sunrise/sunset feature.
Comment 5 Vlad Zahorodnii 2025-12-16 09:42:44 UTC
Can you share your ~/.config/kwinrc and ~/.local/state/kwinstaterc when you use custom sunrise and sunset times (also ideally after you reboot, i.e. when night light is on when it shouldn't be)?
Comment 6 kde.fp5t5 2025-12-17 07:32:34 UTC
Created attachment 187728 [details]
bashrc
Comment 7 kde.fp5t5 2025-12-17 07:33:47 UTC
Created attachment 187729 [details]
kwinstaterc
Comment 8 kde.fp5t5 2025-12-17 07:35:18 UTC
(In reply to Vlad Zahorodnii from comment #5)
> Can you share your ~/.config/kwinrc and ~/.local/state/kwinstaterc when you
> use custom sunrise and sunset times (also ideally after you reboot, i.e.
> when night light is on when it shouldn't be)?

After rebooting my computer, I added the requested files to the attachments section of the bug report