"This monitor is not controllable" after monitor turned off
See original GitHub issueThis issue is directly related to #50
I got this problem as well, Code: -1071241843, Message: The operating system asynchronously destroyed the monitor which corresponds to this handle because the operating system’s state changed. This error typically occurs because the monitor PDO associated with this handle was removed, the monitor PDO associated with this handle was stopped, or a display mode change occurred. A display mode change occurs when windows sends a WM_DISPLAYCHANGE windows message to applications.
I’ve found a solution for that, in AppControllerCore.cs, line 303, change the code to
var updateResults = await Task.WhenAll(Monitors .Where(x => x.IsTarget) .Select(x => Task.Run(() => x.UpdateBrightness()))); if (updateResults.Any((result) => result == false)) await ScanAsync(TimeSpan.Zero);
I don’t know if this is a good fix but it works, hope it will help
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
private readonly DisplayWatcher _displayWatcher; private readonly PowerWatcher _powerWatcher; private readonly BrightnessWatcher _brightnessWatcher;
There are three watchers, first one watches display setting changes, second one watches Computer power changes, third one is for brightness changes.
However, none of those watches for power changes of Display itself, I guess that’s the issue?
@sbcarp This issue has been solved, maybe.