Bug 479518 - Night color not starting automatically
Summary: Night color not starting automatically
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.10
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 21:35 UTC by Adi Efendic
Modified: 2024-03-14 20:41 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adi Efendic 2024-01-07 21:35:53 UTC
SUMMARY
The night color setting does not turn on when setting a custom time.


STEPS TO REPRODUCE
1. Turn on Night Color to "Custom times"
2. Set up temperatures and the times for enable and disable

OBSERVED RESULT
Night Color does not start when the appropriate time is reached, I have to manually enable it via the Night Color applet in the tray.

EXPECTED RESULT
Night Color should start on its own when configured with custom times

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 39 KDE Spin
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Running an all-AMD system on Wayland with Mesa 23.3.1
Comment 1 Adi Efendic 2024-01-07 21:57:26 UTC
I forgot to add that it seems to happen whenever my display wakes from being turned off due to inactivity. After the display turns back on, only a system restart gets the night color working again
Comment 2 Nate Graham 2024-02-15 22:40:44 UTC
I used to see this in Plasma 6, but no longer do in Plasma 6. I'm pretty sure it's been fixed there.
Comment 3 Stuben 2024-03-14 20:41:30 UTC
I've had this issue happen even after upgrading to plasma 6. Decided to look at my kwin config under `.config/kwinrc` and noticed that the setting key for [NightColor] only contained Active=true and NightTemperature=3000 and nothing else, despite when me opening the settings or looking at the widget both stated that it would automatically activate and deactivate based on my position.
When opening the settings I've also noticed  that it automatically would enable the reset button despite me not touching any of the settings.
After closing the settings and deleting the [NightColor] config section entirely, running `kwin_x11 --replace` and checking the settings again it would now show it as disabled. Enabling it to sunset and sunrise now adds the LatituteAuto and LongituteAuto config keys to the kwinrc file.

Now with those keys in place opening the settings no longer shows the revert button active. Manually deleting LatituteAuto and LongituteAuto seems to bring me back into the bugged state.

I am unsure if having those keys fixes the issue completely as I just discovered it and it's nighttime here at the moment, just wanted to share my findings.