Tyrrrz / LightBulb

Reduces eye strain by adjusting screen gamma based on the current time
MIT License
2.23k stars 141 forks source link

Lightbulb causing other apps to flicker when gamma polling enabled, even with Lightbulb disabled #321

Closed BenKennish closed 1 month ago

BenKennish commented 1 month ago

Version

2.5.3

Platform

Windows 10

Steps to reproduce

Load LightBulb Enable Gamma Polling Load up Task Manager and it is flashing/flickering on a regular interval of about once a second

Details

With Lightbulb loaded and with Gamma Polling enabled, apps like Task Manager and HWiNFO64 experiencing regular flickering (seemingly once per second). This happens regardless of whether LightBulb is enabled or not, e.g. using the keyboard shortcut to "Toggle Lightbulb" or using the system tray icon to "Disable for 5 minutes". Shutting down LightBulb or disabling Gamma Polling is the only way to stop the flickering.

Checklist

Tyrrrz commented 1 month ago

With gamma polling enabled, LightBulb will refresh gamma every second, even if it's disabled. This is done to facilitate the "disable to day-time configuration" option.

Regardless of that, however, flickering indicates that there's something else in your system attempting to override the monitor gamma. It can be another app or, in some cases, the operating system itself. In my personal tests, I do not experience any flickering with Task Manager, so the issue is that some other running app is trying to control monitor gamma in parallel to LightBulb.

BenKennish commented 1 month ago

Ah ok thank you for that. When it happens again, I will try closing all other apps and see if I can get the flickering to stop.

BenKennish commented 1 month ago

Weirdly, I've noticed that the blue light filter is sometimes disabled temporarily when i click the Action Center icon in the very right of the Windows Task Tray (to the right of the clock) and it then resumes when I close it. However I am not using Windows 10 Night Light so I'm not sure what's going on

Tyrrrz commented 1 month ago

Yeah it does that. Also happens when you open the Display settings in the Control Panel.

BenKennish commented 1 month ago

Ah so that's expected to happen for everyone and isn't a clue as to what could be causing my app flickering issue?

Tyrrrz commented 1 month ago

Nope. Those windows are just known to reset monitor state when you bring them to the foreground. LightBulb automatically refreshes gamma when you change active windows, which is why it reverts back after you close the window.

BenKennish commented 1 month ago

Ah very interesting. Thanks. My search for the app that's causing the flickering continues... 😅

Tyrrrz commented 1 month ago

Yeah it might be difficult. Some common culprits are motherboard/peripheral "control panel" apps, such as the MSI or Razer app.

Closing the issue as it's not a problem in LightBulb, but just the way gamma manipulation works in Windows.