-
Notifications
You must be signed in to change notification settings - Fork 1
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
1) Unable to enable HDR if is disabled ||||| 2) HdrEnabled attribute always shows True even when HDR is not enabled #4
Comments
This is the first time I've ever debugged a powershell script, but it does appear that the reason I am unable to EnableHdr() is because it the utility already thinks it is enabled. As I mentioned previously, The HdrEnabled attribute always shows true on my system, and because of this attribute always saying it is True, I cannot successfully call EnableHdr(). Hope this helps. |
Thanks for your interest in my project and for the debug details! Sorry for the delay- I haven't had much time for this project since I started it. Life has gotten in the way so far this year, but hoping to find some time to give this a little TLC soon. In the meantime would you be able to provide debug logs? You can set a debug log level to get a much more verbose output from the tool. This might give us a bit more detail on the unexpected HDR state. I'm using PowerShell framework as a dependency to handle logging. Hacky but easy way to set debug log level is run More details here: If we can't find a root cause then in the least I think I should add a force option to just ignore what we think the current state is and try to change it anyways. |
I can confirm that by commenting out the true statement in the
function, it fixes the problem. For anyone else having this issue, this is how I solved it. Navigate to where the module is installed, which by default is usually:
Using ethier Notepad++ or VSCODE, open the following file
Then find the part of the code:
and change to
Then save. You might need to save the file to you Desktop Folder, then manually move it to this directory with Admin Permissions. Last step, run this command in Windows Powershell:
That's It! This is a quick fix, as if you run "$primaryDisplay.DisableHdr()" it will still display as "True" even though it is "False" What the "#" does above is forcing the code to execute anyway, even if it thinks HDR is already turned on and vice versa. I tested it on my computer, and it works flawlessly! |
This is my first time ever submitting an issue, please go easy on me if I'm doing something incorrect here. I absolutely love this utility, however the fact that at no point can I get it the enable HDR (from the state of disabled of course) to work is a real bummer. Turning HDR on and off from the command line was the exact use case that led me to the WindowsDisplayManager project.
I am experiencing two issues:
The text was updated successfully, but these errors were encountered: