Bug 485244 - Night Light stops when connecting external monitor
Summary: Night Light stops when connecting external monitor
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-04-08 20:31 UTC by Natalie Clarius
Modified: 2024-04-17 20:23 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Natalie Clarius 2024-04-08 20:31:25 UTC
STEPS TO REPRODUCE
1. Have night light active
2. Connect an additional monitor

OBSERVED RESULT
Night becomes inactive on existing screen and is not active on new screen

EXPECTED RESULT
Night color remains active on existing screen and is also active on new screen

SOFTWARE/OS VERSIONS
git master
X11

ADDITIONAL INFORMATION
Night light comes back when toggling of an on again

Looks similar to https://bugs.kde.org/show_bug.cgi?id=466435 but in my case Night light doesn't turn on on the external screen either
Comment 1 Nate Graham 2024-04-09 14:32:52 UTC
What GPU hardware are you using on this system?
Comment 2 Natalie Clarius 2024-04-09 16:15:13 UTC
Integeated Intel GPU. Iirc it worked correctly with Plasma 5.
Comment 3 Natalie Clarius 2024-04-09 23:12:38 UTC
It's not broken on Wayland.
Comment 4 Zamundaaa 2024-04-10 11:30:06 UTC
Does it start working again if you run kwin_x11 --replace?
Comment 5 Zamundaaa 2024-04-10 11:30:33 UTC
Or simply turning night light off and then on again?
Comment 6 Natalie Clarius 2024-04-17 00:00:03 UTC
Both restarting KWin and toggling night light makes it work again.
Comment 7 Zamundaaa 2024-04-17 12:26:34 UTC
Okay, then you probably have colord or similar running, which sets the gamma ramp on display hotplug events, and overrides the gamma ramps set by KWin.
This isn't really possible to fix on Xorg, because there's no way for KWin to get exclusive control over the color management hardware.
Comment 8 Natalie Clarius 2024-04-17 20:23:43 UTC
Yes, disabling colord fixes it.