Windows-Auto-Night-Mode icon indicating copy to clipboard operation
Windows-Auto-Night-Mode copied to clipboard

[Feature] Add conflict warning if PowerToys Light Switch is turned on

Open kamekku14 opened this issue 6 months ago • 6 comments

Heads up, folks! Microsoft has released PowerToys 0.95.0, which features automatic light-and-dark mode switching (a.k.a. Light Switch). (See https://github.com/AutoDarkMode/Windows-Auto-Night-Mode/discussions/1113)

I'm not sure this PowerToys feature would conflict with ADM, but I bet adding a warning that allows everyone to turn off PowerToys Light Switch might probably solve a problem.

kamekku14 avatar Oct 19 '25 10:10 kamekku14

I also encountered the same issue and spent a lot of time looking for a solution. Thank you for your reply, it was very helpful to me!

sunhotblaze avatar Oct 19 '25 13:10 sunhotblaze

Great idea - this could save users from running into issues like this one: https://github.com/AutoDarkMode/Windows-Auto-Night-Mode/issues/1116

Elazar-r avatar Oct 19 '25 13:10 Elazar-r

Yes, the Powertoys light switch feature (which is enabled by default and confuses many users) does conflict with ADM, because they both are attempting to modify the theme state.

We have to investigate how to properly detect if the PowerToys setting is enabled. I don't know a lot about PowerToys and how it stores the app settings.

Spiritreader avatar Oct 19 '25 15:10 Spiritreader

Yes, the Powertoys light switch feature (which is enabled by default and confuses many users) does conflict with ADM, because they both are attempting to modify the theme state.

We have to investigate how to properly detect if the PowerToys setting is enabled. I don't know a lot about PowerToys and how it stores the app settings.

Every PowerToy has a dedicated process that's handling the module. So if you enable LightSwitch, the process PowerToys.LightSwitchService.exe is running. You just need to check for that process running.

Image

Armin2208 avatar Oct 19 '25 15:10 Armin2208

Yes, the Powertoys light switch feature (which is enabled by default and confuses many users) does conflict with ADM, because they both are attempting to modify the theme state. We have to investigate how to properly detect if the PowerToys setting is enabled. I don't know a lot about PowerToys and how it stores the app settings.

Every PowerToy has a dedicated process that's handling the module. So if you enable LightSwitch, the process PowerToys.LightSwitchService.exe is running. You just need to check for that process running. Image

very nice! We can do this check at startup

Spiritreader avatar Oct 19 '25 16:10 Spiritreader

I updated PowerToys a few hours ago and was wondering why my system kept randomly switching between light and dark modes. I came here to see if there were any related issues, and sure enough, found the solution, LOL~

VicissitudeYW avatar Oct 20 '25 03:10 VicissitudeYW