How it works
- Periodic checks: Cyberdriver captures screenshots at regular intervals (default: 30 seconds)
- Black screen detection: Uses variance analysis to detect truly black screens (variance < 1.0, mean pixel value < 10)
- Confirmation check: When a black screen is detected, Cyberdriver waits 5 seconds and checks again to confirm it’s not a transient black screen (like during RDP connection)
- Automatic recovery: If the black screen persists, executes a PowerShell script that runs
tscon <session_id> /dest:consoleto switch the session back to the console - Initial check: Performs the first check 5 seconds after starting, regardless of the configured interval
Enable black screen recovery
--black-screen-recovery: Enables black screen detection and recovery--black-screen-check-interval: Seconds between checks (default: 30)
When to use this
Black Screen Recovery is particularly useful for:- RDP/Remote Desktop sessions that disconnect and show black screens
- Virtual machines that lose display connectivity
- Unattended automation where you need guaranteed screen availability
- Long-running workflows that may experience session issues