Bug 510182

Summary: Upgrade from 6.4.5 to 6.5 beta 2 lost day-night cycle settings
Product: [Plasma] plasmashell Reporter: Nicolas <nicolas>
Component: Day/night scheduleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, nicolas.fella, vkrevs, vlad.zahorodnii
Priority: LO Keywords: regression
Version First Reported In: 6.4.91   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:

Description Nicolas 2025-10-02 20:29:44 UTC
SUMMARY
After upgrading from plasma 6.4.5 to 6.5.91 the day-night time settings were reset to "automatically detect location" using geoIp (which was wrong). I did set it up manually before however, resulting in night time mode at day. 

STEPS TO REPRODUCE
1. In 6.4.5 set manual location for day-night-cycle
2. Upgrade to 6.4.91 (6.5 beta 2)

OBSERVED RESULT
Night time settings are not kept

EXPECTED RESULT
Settings should be preserved during upgrades

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.91
KDE Frameworks Version: 6.18.0
Qt Version: 6.10.0
Kernel Version: 6.16.8-arch3-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor 1: Mesa Intel® UHD Graphics 630
Graphics Processor 2: NVIDIA GeForce GTX 1650/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 20QVCTO1WW
System Version: ThinkPad X1 Extreme 2nd

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-10-03 16:04:39 UTC
The settings moved from the "Night Light" KCM to a new "Day-Night Cycle" KCM. It's quite possible that old settings weren't migrated over to the new thing.
Comment 2 Bug Janitor Service 2025-10-06 07:30:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/knighttime/-/merge_requests/11
Comment 3 Vlad Zahorodnii 2025-10-14 06:02:59 UTC
Git commit 6ac638999b1487c143fa0e5f084d9cff82716f61 by Vlad Zahorodnii.
Committed on 14/10/2025 at 05:51.
Pushed by vladz into branch 'master'.

daemon: Migrate config from night light

M  +1    -0    src/daemon/CMakeLists.txt
M  +52   -0    src/daemon/kdarklightmanager.cpp

https://invent.kde.org/plasma/knighttime/-/commit/6ac638999b1487c143fa0e5f084d9cff82716f61
Comment 4 Vlad Zahorodnii 2025-10-14 06:06:46 UTC
Git commit fd0e59ff72cbc887ec2a4e472fe3b4a8ee1e375c by Vlad Zahorodnii.
Committed on 14/10/2025 at 06:03.
Pushed by vladz into branch 'Plasma/6.5'.

daemon: Migrate config from night light


(cherry picked from commit 6ac638999b1487c143fa0e5f084d9cff82716f61)

Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>

M  +1    -0    src/daemon/CMakeLists.txt
M  +52   -0    src/daemon/kdarklightmanager.cpp

https://invent.kde.org/plasma/knighttime/-/commit/fd0e59ff72cbc887ec2a4e472fe3b4a8ee1e375c