Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADM no longer works on Windows 10 LTSC after updating to new version #508

Closed
cmhrky opened this issue Sep 26, 2022 · 12 comments
Closed

ADM no longer works on Windows 10 LTSC after updating to new version #508

cmhrky opened this issue Sep 26, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@cmhrky
Copy link
Contributor

cmhrky commented Sep 26, 2022

Description

After updating from stable version 10.1.0.10 to 10.2.0.18 it no longer switches between modes. "Force Dark Theme" and "Force Light Theme" don't work either.

Expected Behavior

No response

Log Data

service.log
config.yaml.txt

Operating System

Windows 10 Enterprise LTSC 1809 17763.3406

Commit Hash and Version

  • Commit: f7a700b
  • Service: 10.2.0.18
  • Updater: 2.4.2
  • App: 10.0.1.0
  • Shell: 1.3.1.0
  • .Net: 6.0.7

Screenshots

No response

@cmhrky cmhrky added the bug Something isn't working label Sep 26, 2022
@Spiritreader
Copy link
Member

Spiritreader commented Sep 27, 2022

Unfortunately I don't have LTSC 1809 to test, but with the development of Windows 11 I am not sure if we can still support LTS operating systems.

There is a way to fix this but it's not an easy/quick one.
Until then I would recommend downloading the older 10.1.0.10 release https://github.com/AutoDarkMode/Windows-Auto-Night-Mode/releases/tag/10.1.0.10 and disable automatic updates.

I will update here once we have windows-version specific switching behavior figured out.

Sorry for the inconvenience, development for Win11 22H2 has been pretty difficult and currently there are some trade-offs.

@Spiritreader Spiritreader changed the title ADM no longer works after updating to new version ADM no longer works on Windows 10 LTSC after updating to new version Sep 27, 2022
@Spiritreader
Copy link
Member

Should be fixed in the latest beta (10.3.0.1)

@cmhrky
Copy link
Contributor Author

cmhrky commented Oct 1, 2022

I tried now. No change unfortunately.

@Spiritreader
Copy link
Member

Hmm the logic in 10.3.0.1 for your windows build is the same as in 10.1.0 tho. Please upload logs once again so I can take a look.

@cmhrky
Copy link
Contributor Author

cmhrky commented Oct 1, 2022

@Spiritreader
Copy link
Member

Hmm that looks alright.

Could you navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize in RegEdit, then change the "AppsUseLightTheme" and "SystemUseLightTheme" from 1 to 0 or from 0 to 1 and see if that changes anything?
image

@cmhrky
Copy link
Contributor Author

cmhrky commented Oct 1, 2022

"AppsUseLightTheme" works. "SystemUseLightTheme" not works.

@Spiritreader
Copy link
Member

Could you check whether ADM updates the AppsUseLightTheme entry by forcing theme to dark, then pressing F5 in the regedit window to refresh?

@cmhrky
Copy link
Contributor Author

cmhrky commented Oct 1, 2022

I've tried. There is no changes in the regedit.

@Spiritreader
Copy link
Member

Spiritreader commented Oct 1, 2022

Hm there have been zero code path changes and the logs you uploaded show the correct code path (AppsSwitch) getting called, which hasn't been modified in 13 months.

The only thing that could be is that the registry editing method (which is part of dotnet) has somehow been altered. But that's part of the framework and not something we can fix.

There are no error messages, the registry handler is not reporting any exceptions, logging indicates that ADM calls all of the functions necessary to change that regkey.
It seems like we have to declare Win10 LTSC as an unsupported build as a result

I will try one more thing, will update tomorrow

Never mind I think I found something. Please update once again to 1.3.0.2

@cmhrky
Copy link
Contributor Author

cmhrky commented Oct 1, 2022

OK. No problem now. Working properly.

@Spiritreader
Copy link
Member

awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants