patrick-theprogrammer / WindowsDisplayManager

A powershell module for managing Windows display settings.
https://www.powershellgallery.com/packages/WindowsDisplayManager
MIT License
18 stars 1 forks source link

DisableHdr() works, but EnableHdr() doesn't #3

Open pmonck opened 4 months ago

pmonck commented 4 months ago

Using Windows 11: Calling "$primaryDisplay.SetResolution(3840,2160,98) -and $primaryDisplay.DisableHdr()" disables HDR as expected

However, calling "$primaryDisplay.SetResolution(3840,2160,98) -and $primaryDisplay.EnableHdr()" returns True, but HDR remains disabled.

marshall1210 commented 3 months ago

I am experiencing the same exact same problematic behavior, detailed in the Issue I logged. Curious when you have HDR disabled, and you retrieve the display information, does HdrEnabled attribute always show True for you as well?

patrick-theprogrammer commented 2 weeks ago

Ditto to what @marshall1210 said- I'm thinking this is likely the same issue as issue #4 where we unexpectedly think HDR is already enabled. If you think it's something different, please provide some debug logs using the instructions I provided in that issue as well.

I'm thinking I should increase the default visibility of log messages when the tool can't make a requested change, so it would be more obvious at least why a change doesn't go through if the tool thinks it knows why.