Hacker News new | ask | show | jobs
by QuantumNomad_ 19 days ago
What guarantees that the monitor comes back on if your app crashes?
1 comments

the app watches itself. when it crashes, it closed or anything else happens that is not the intended state, the display is reset.

beside this, it's also reset to on-status by macOS itself after restart (however you can turn it off again by auto-starting the app)