Bug 485900 - "Night color" not applying day time temperature automatically
Summary: "Night color" not applying day time temperature automatically
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_nightcolor (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-21 14:12 UTC by Guilherme Salazar
Modified: 2024-04-26 21:47 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Salazar 2024-04-21 14:12:43 UTC
SUMMARY

Night colors does not revert back to day color settings.
It only does so if one opens the settings page and interacts with it - for example, by clicking the color temperature slider. It does not even need to be applied; once the preview ends, the correct color is applied.


STEPS TO REPRODUCE
1. Set color temperature and day/night times


OBSERVED RESULT

Day settings are not applied when day time starts

EXPECTED RESULT

Day time settings are applied automatically when day time starts

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux Asahi Remix 39
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.3-414.asahi.fc39.aarch64+16k (64-bit)
Graphics Platform: Wayland
Processors: 8 × Apple Firestorm (M1 Max), 2 × Apple Icestorm (M1 Max)
Memory: 30,8 GiB of RAM
Graphics Processor: Apple M1 Max
Product Name: Apple MacBook Pro (16-inch, M1 Max, 2021)
U-Boot Version: 2024.04

ADDITIONAL INFORMATION

I thought this was the same as https://bugs.kde.org/show_bug.cgi?id=461657; however, I verified the proposed fix _is_ in my current kwin version.

This also looks similar to https://bugs.kde.org/show_bug.cgi?id=413406, but in my case night colors are correctly applied.
Comment 1 Guilherme Salazar 2024-04-22 10:47:05 UTC
Just opened up my laptop for the day - before I fix the color temp, I ran the following command to get some more data:

```
$ qdbus org.kde.KWin /ColorCorrect GetAll org.kde.kwin.ColorCorrect
available: true
currentTemperature: 6500
enabled: true
inhibited: false
mode: 2
previousTransitionDateTime: 1713776400
previousTransitionDuration: 1800000
running: true
scheduledTransitionDateTime: 1713819600
scheduledTransitionDuration: 1800000
targetTemperature: 6500
```

You can see it reports the correct temperature for the day time (6500), even though it's still in 2100 (which is my setting for night time).
Comment 2 Guilherme Salazar 2024-04-24 10:26:50 UTC
I believe this is only happening when I close the laptop's lid after night mode is on; then, when I open, it fails to set day temp. I will verify tonight.
Comment 3 Martin Seidel 2024-04-26 21:47:18 UTC
I also have this problem on Debian testing:

KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.6.15-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600G with Radeon Graphics
Memory: 27.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics