Bug 491467 - night color does not start automatically on system startup using X11
Summary: night color does not start automatically on system startup using X11
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: night color (show other bugs)
Version: 6.1.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2024-08-09 03:49 UTC by Rodrigo
Modified: 2025-02-24 17:58 UTC (History)
3 users (show)

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


Attachments
Profiles from Color Management (59.09 KB, image/png)
2024-08-16 20:06 UTC, Rodrigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo 2024-08-09 03:49:34 UTC
When I restart the system or put the computer to sleep the night light function is disabled, I need to manually enable it to work again. This is happening while I am using X11, the night color is set to "always on night light"

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.12-200.fc40.x86_64 (64-bit)
Graphics Platform: X11
Processors: 4 × AMD Ryzen 3 3200G with Radeon Vega Graphics
Memory: 15.3 GiB of RAM
Graphics Processor: AMD Radeon RX 550 Series
Comment 1 Nate Graham 2024-08-09 19:39:00 UTC
Does it work on Wayland?
Comment 2 Rodrigo 2024-08-09 19:44:14 UTC
(In reply to Nate Graham from comment #1)
> Does it work on Wayland?

It works on Wayland, I would like to know if it will continue to work on X11 because I still need X11 for some features that I need.
Regards
Comment 3 Nate Graham 2024-08-13 18:34:26 UTC
Maybe; I'm afraid there are no guarantees. Virtually all the Plasma and KWin devs are using Wayland full-time now, so fixing X11-specific issues is usually done on an "as resources allow" basis (which is to say, very slowly).
Comment 4 Rodrigo 2024-08-13 19:08:10 UTC
I understand, the Wayland is now a priority, I will try to migrate to it then, thanks for the answer!
Regards
Comment 5 Zamundaaa 2024-08-15 13:40:26 UTC
Do you have an ICC profile set in colord? Or some other app that modifies screen colors? Unfortunately on X11, many programs will write to the gamma_lut, and we can't guarantee that the night light lut will be set after these other programs
Comment 6 TraceyC 2024-08-15 15:51:46 UTC
On git master X11, I was able to reproduce this with shutdown and restart or reboot. Wake from sleep worked correctly.

- Started in a Wayland session. Set the night light to "always on night light". It turned on as  expected.  Shut down and booted into X11
   - The cursor briefly looked to be in night light colors on the black background. When Plasma loaded, night light was turned off. Night light settings are  still set to "always on"
  - The brightness icon in the system tray shows "Night Light at night color temperature" (which doesn't match the actual color temperature)
  - Clicking Night Light - Suspend makes the display transition to night light color and then back to day time color. 

- Un-suspended night light color, put the system to sleep and woke it back up
  - The login screen was in night light mode, display was correctly in night light mode

- Restarted the system
 - Login screen and system were not in night light mode, same as with a shutdown and start.

The night light function was
Comment 7 TraceyC 2024-08-15 17:37:30 UTC
(In reply to Zamundaaa from comment #5)
> Do you have an ICC profile set in colord? Or some other app that modifies
> screen colors?

According to colormgr, I do have an icc profile associated with the laptop display, so it does look like that may be involved.


Rodrigo, do you have an icc profile shown with this?
colormgr get-devices-by-kind display
Comment 8 Rodrigo 2024-08-16 20:06:29 UTC
Created attachment 172677 [details]
Profiles from Color Management

hello everyone!
I have some profiles in color management, but they are all standard profiles, I've never touched this section before xD
Comment 9 Rodrigo 2024-08-16 20:09:43 UTC
(In reply to Rodrigo from comment #8)
> Created attachment 172677 [details]
> Profiles from Color Management
> 
> hello everyone!
> I have some profiles in color management, but they are all standard
> profiles, I've never touched this section before xD
I left a screenshot attached, but this session was started in wayland
Comment 10 Zamundaaa 2024-08-17 00:54:38 UTC
The exact profile doesn't matter, what matters is whether or not (on X11) your display has a profile associated with it
Comment 11 TraceyC 2025-02-24 17:58:57 UTC
Adding the x11-only keyword