question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"This monitor is not controllable" after monitor turned off

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sbcarpcommented, Nov 7, 2020

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?

0reactions
emoachtcommented, Feb 2, 2021

@sbcarp This issue has been solved, maybe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitor is off but still detected by computer - windows 10
If your TV is detected by Windows then it is not totally off. Most modern TV do not totally turn off but leave...
Read more >
Computer unresponsive after auto turn off display
Press Windows key + R, to open Run dialog box. · Type control powercfg.cpl,,3 and click on OK. · Now, select the active...
Read more >
Monitor not turning back on after turning off display due to ...
Hi! So after I leave the computer for 20 minutes the display turns off. When I come back and try to wake the...
Read more >
SOLVED: Monitor no signal after start up - PC Desktop
So, I went to Control Panel/Power Options and under "change setting that are currently unavailable" turned off the fast start-up.
Read more >
How to Prevent Windows 10 Screen Display From Turning Off ...
By default, Windows 10 will turn off your screen after a period of inactivity. This is to help save battery power and to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found