Bug 413406

Summary: Night color only working while settings window open
Product: [Applications] systemsettings Reporter: martin.fopp
Component: kcm_nightcolorAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ddascalescu+kde, karl, kwin-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.17.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screencast of Night Color not kicking in for Custom Times

Description martin.fopp 2019-10-24 19:43:02 UTC
SUMMARY

Every time I close the settings window for night colors on X11, the night colors get lost. If I let open the settings window, the night colors are staying as expected.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20191022
(available in About System)
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
- graphic card NVIDIA GTX 1060 with NVIDIA drivers
Comment 1 Vlad Zahorodnii 2019-10-31 12:13:27 UTC
Please post your kwinrc when the settings window is open, and when it's not.
Comment 2 martin.fopp 2019-10-31 21:57:37 UTC
kwinrc when the settings window is open:

[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize

[Compositing]
Backend=OpenGL
Enabled=true
GLCore=true
GLPreferBufferSwap=a
GLTextureFilter=2
HiddenPreviews=5
OpenGLIsUnsafe=false
WindowsBlockCompositing=true
XRenderSmoothScale=false

[Desktops]
Id_1=db9bb75a-e674-4985-b96c-263213e83c87
Id_2=f1544596-2ecc-4050-8221-f729132faa7f
Rows=2

[NightColor]
Active=true
EveningBeginFixed=1800
Mode=Times
MorningBeginFixed=0600

[TabBox]
DesktopLayout=org.kde.breeze.desktop
DesktopListLayout=org.kde.breeze.desktop
LayoutName=org.kde.breeze.desktop

[org.kde.kdecoration2]
BorderSize=Normal
BorderSizeAuto=false
ButtonsOnLeft=MS
ButtonsOnRight=HIAX
CloseOnDoubleClickOnMenu=false
ShowToolTips=true
library=org.kde.breeze
theme=Breeze


kwinrc when settings window is closed:
[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize

[Compositing]
Backend=OpenGL
Enabled=true
GLCore=true
GLPreferBufferSwap=a
GLTextureFilter=2
HiddenPreviews=5
OpenGLIsUnsafe=false
WindowsBlockCompositing=true
XRenderSmoothScale=false

[Desktops]
Id_1=db9bb75a-e674-4985-b96c-263213e83c87
Id_2=f1544596-2ecc-4050-8221-f729132faa7f
Rows=2

[NightColor]
Active=true
EveningBeginFixed=1800
Mode=Times
MorningBeginFixed=0600

[TabBox]
DesktopLayout=org.kde.breeze.desktop
DesktopListLayout=org.kde.breeze.desktop
LayoutName=org.kde.breeze.desktop

[org.kde.kdecoration2]
BorderSize=Normal
BorderSizeAuto=false
ButtonsOnLeft=MS
ButtonsOnRight=HIAX
CloseOnDoubleClickOnMenu=false
ShowToolTips=true
library=org.kde.breeze
theme=Breeze
Comment 3 Karl Ove Hufthammer 2019-11-08 18:03:55 UTC
I can confirm this bug. I don’t even have to close the system settings; the night colors disappear even when I just return to the main system settings window.

System info:

Operating System: openSUSE Tumbleweed 20191104
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Kernel Version: 5.3.8-1-default
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-2500 CPU @ 3.30GHz
Memory: 15,6 GiB
Comment 4 Nate Graham 2020-12-17 21:08:07 UTC
Is this still happening to anyone in Plasma 5.20?
Comment 5 martin.fopp 2020-12-19 10:01:35 UTC
Yes, it's still happening und KDE 5.20.4.
Comment 6 Bug Janitor Service 2021-01-03 04:34:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 martin.fopp 2021-01-03 08:44:56 UTC
Yes, it's still happening und KDE 5.20.4.
Comment 8 guimarcalsilva 2022-12-24 03:12:19 UTC
It's been a while. Is this still happening to anyone?
Comment 9 martin.fopp 2022-12-24 21:35:23 UTC
Yes, it still happens under KDE 5.26.4
Comment 10 Dan Dascalescu 2023-09-04 13:10:19 UTC
Created attachment 161400 [details]
Screencast of Night Color not kicking in for Custom Times

Night colors stopped working for me either at some point within the last year of KDE updates (I had used macOS for ~6 months so I can't pinpoint exactly when). I have to switch them on and off manually.

I recorded a screencast with what happens, but the color change wasn't recorded, so I narrated it:
* I had set "Custom times" for night color between 19:00 and 06:00
* At 09:00, the night color was still on
* Switched it to "Always off" - nothing happened
* Switched it to "Always on" - then it went off instantly, then transitioned back to on within about 1 second
* Switched to "Always off" again worked
* Choosing "Custom times" appeared to work again (screen was left at cooler temp)


Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.13-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro Gen7 (MK1)
Comment 11 Nate Graham 2025-08-01 22:34:08 UTC
Is anyone still able to reproduce this in Plasma 6.4 or later?
Comment 12 martin.fopp 2025-08-02 09:14:35 UTC
(In reply to Nate Graham from comment #11)
> Is anyone still able to reproduce this in Plasma 6.4 or later?

No, I can not reproduce it currently - now on:
Platform: openSuse Tumbleweed
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.8-1-default (64-bit)
Graphics Platform: Wayland

seems to be fixed
Comment 13 Nate Graham 2025-08-07 14:33:22 UTC
Thanks!