Bug 484361 - Night Light Widget In System Tray Breaks Night Color if Middle Clicked To Toggle Night Light Off
Summary: Night Light Widget In System Tray Breaks Night Color if Middle Clicked To Tog...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Brightness and Color widget (other bugs)
Version First Reported In: 6.0.2
Platform: openSUSE Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 03:50 UTC by C Schell
Modified: 2024-08-11 17:51 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C Schell 2024-03-24 03:50:57 UTC
By default the night light widget in the system tray is configured to only show when relevant.  It appears when the night light turns on (adjusting screen color for night).  If you middle click the widget to toggle the night light the widget disappears (apparently no longer considered relevant) and once it disappears the night light will not function even if toggled back on by any other means.  

This is all I've found that can restore the night light functionality.

killall plasmashell; kstart plasmashell

Other things that fail:
Go into system tray expansion and middle click the icon.
Place Color and Brightness widget somewhere else (Desktop, Panel, etc.)  and middle click it.
Assign a global K-win short cut to toggle the night light and use the short cut.

None of those methods will restart the night light color shift once the widget has auto-hidden after the first click to toggle the night light off.

If the system tray setting is changed to show always the middle click toggle works normally.

STEPS TO REPRODUCE
1.  Enable Night Light with system tray widget set to show only when relevant
2.  Middle click the widget in the system tray to toggle night light off.
3.  Use any method to attempt to toggle night light back on.

OBSERVED RESULT
Night light does not come back on, at least not the change in screen color.  
You can move the night light toggle in the expanded widget view but it doesn't do anything.

EXPECTED RESULT
Night Light turns back on and screen changes color.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:   Opensuse Tumbleweed
(available in About System)
KDE Plasma Version:  6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Graphics Platform: X11
Comment 1 Natalie Clarius 2024-03-25 02:48:08 UTC
Hm, I can't reproduce this with the steps you describe. What is your configuration for night light switching times?
Comment 2 Natalie Clarius 2024-03-25 02:49:01 UTC
And does it work normally if you set the widget to always show?
Comment 3 C Schell 2024-03-25 04:42:52 UTC
(In reply to Natalie Clarius from comment #1)
> Hm, I can't reproduce this with the steps you describe. What is your
> configuration for night light switching times?

It is set for a manual location. 

> And does it work normally if you set the widget to always show?

Yes it does.  The bug only triggers when they system tray widget hides.
Comment 4 Natalie Clarius 2024-03-25 04:49:00 UTC
FWIW the part about it no longer being considered relevant when night light is toggled off is being changed: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4141. Maybe this will the bug go away automatically. Right now I can't think of of what the problem could be.
Comment 5 C Schell 2024-03-25 04:53:14 UTC
(In reply to Natalie Clarius from comment #4)
> FWIW the part about it no longer being considered relevant when night light
> is toggled off is being changed:
> https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4141. Maybe
> this will the bug go away automatically. Right now I can't think of of what
> the problem could be.

No idea.  Oddly even when in the broken state changing the color will cause a preview to show correctly.   Anyway yes a minor bug as I marked it.
Comment 6 Natalie Clarius 2024-03-25 05:00:25 UTC
> Anyway yes a minor bug as I marked it.

I'd say it's not minor but a normal bug, it does break functionality after all. (I can't change the field myself though.)
Comment 7 C Schell 2024-03-25 05:04:20 UTC
(In reply to Natalie Clarius from comment #6)
> > Anyway yes a minor bug as I marked it.
> 
> I'd say it's not minor but a normal bug, it does break functionality after
> all. (I can't change the field myself though.)

Doesn't seem to be a field I can edit either.  If it's not easily repeatable maybe it's something in my setup / a problem with the upgrade from 5 to 6.
Comment 8 Nate Graham 2024-07-27 13:01:18 UTC
I can't reproduce this issue in current git master. Is it still happening to you in Plasma 6.1.3 or later?

If so, it would be great if you can try on Wayland too, and also with different switching time settings. Anything to narrow down the conditions under which the issue occurs. Thanks!
Comment 9 Bug Janitor Service 2024-08-11 03:46:29 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 10 C Schell 2024-08-11 04:32:54 UTC
(In reply to Nate Graham from comment #8)
> I can't reproduce this issue in current git master. Is it still happening to
> you in Plasma 6.1.3 or later?
> 
> If so, it would be great if you can try on Wayland too, and also with
> different switching time settings. Anything to narrow down the conditions
> under which the issue occurs. Thanks!

Since the tray widget no longer hides (it stays relevant) when you toggle the night light off the conditions that triggered this bug no longer exist.   So it is no longer happening.