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

Change brightness script encounters an error whenever triggered #49

Open
jay-chorus opened this issue May 18, 2024 · 3 comments
Open

Change brightness script encounters an error whenever triggered #49

jay-chorus opened this issue May 18, 2024 · 3 comments

Comments

@jay-chorus
Copy link

  • WDD Version: 5.5.0
  • OS Version: Windows 11 v23H2

Steps to Reproduce:

  1. App was run with both Standard and Elevated privileges
  2. Latest scripts were used

Are you using the Microsoft Store version of WDD?: No
image

@t1m0thyj t1m0thyj transferred this issue from t1m0thyj/WinDynamicDesktop May 19, 2024
@t1m0thyj
Copy link
Owner

Not sure what would cause the WmiSetBrightness method to be missing. The way that ChangeDisplayBrightness.ps1 sets brightness matches the example script in Microsoft docs here.

Could you check your version of PowerShell by running powershell $PSVersionTable in a Command Prompt to ensure you have the latest version installed and on your PATH?

@t1m0thyj
Copy link
Owner

If you are using a desktop that doesn't have screen brightness control built-in to Windows, you may have better luck with this script: #22

@jay-chorus
Copy link
Author

jay-chorus commented May 25, 2024

After some troubleshooting, I narrowed it down to an unknown conflict with Powershell7. Apparently having Powershell7 installed will cause windows to use that as a default when running scripts. I still think the exact cause is unknown since manually running the brightness command on line 22, in an instance of Powershell7, will still give the same output as regular Windows Powershell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants