When working with Windows machines over RDP, Remote Desktop, or virtualization software, you may encounter situations where the screen goes completely black due to session disconnection or display adapter issues. Black Screen Recovery automatically detects these situations and recovers the session by switching to the console session.Documentation Index
Fetch the complete documentation index at: https://docs.cyberdesk.io/llms.txt
Use this file to discover all available pages before exploring further.
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)
Manual recovery from the dashboard
If you want to switch back to the console session immediately, you can trigger the same recovery action from the Cyberdesk Dashboard:- Open the desktop’s details page
- Click
Tools - Click
Fix Black Screen
tscon console-session switch through Cyberdesk’s PowerShell execution path, so it is a useful fallback if you do not want to wait for the next automatic check. If Cyberdriver is not already elevated, Windows may still show a UAC prompt before the session switch runs.
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