-
Notifications
You must be signed in to change notification settings - Fork 4
Troubleshooting
This guide addresses the most common issues reported by Sunshine-AIO users. Solutions are organized by category for easy navigation.
Symptoms: Connection establishes, but applications fail with "error -1", mouse becomes unresponsive during connection attempts.
Causes:
- PowerShell script failure in
setup_sunvdm.ps1
- Display resolution mismatches
- Virtual display driver conflicts
Solutions:
-
Check PowerShell Execution Policy:
Get-ExecutionPolicy Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-
Manual Script Test:
cd "tools\sunshine-virtual-monitor-main" .\setup_sunvdm.ps1 1920 1080 60 off
-
Check Virtual Display Status:
Get-PnpDevice -Class "Display" | Where-Object {$_.FriendlyName -like "*Virtual*"}
-
Reset Display Configuration:
- Right-click Desktop → Display Settings
- Reset to single monitor temporarily
- Retry connection
Symptoms: Playnite launches locally but fails via Moonlight with "error 0".
Causes:
- Global prep commands interfering with Playnite
- Virtual display driver incompatibility
- Incorrect app configuration in Sunshine
Solutions:
-
Check Sunshine App Configuration:
{ "name": "Playnite", "cmd": "C:\\Program Files\\Playnite\\Playnite.FullscreenApp.exe", "prep-cmd": [], "detached": [] }
-
Disable Global Prep Commands Temporarily:
- Sunshine Web UI → Configuration
- Uncheck "Global Prep Commands"
- Test Playnite streaming
-
Manual Playnite Test:
"C:\Program Files\Playnite\Playnite.FullscreenApp.exe"
Symptoms: Monitor resolution remains incorrect after client disconnect, especially on ultrawide displays.
Causes:
- Display reversion logic failure
- Windows display API issues
- Hardware-specific ultrawide problems
Solutions:
-
Manual Display Reset:
# Reset to original resolution displayswitch /extend displayswitch /internal
-
Check Display Reversion Log:
Sunshine logs: C:\ProgramData\Sunshine\sunshine.log Look for: "Failed to revert display device configuration"
-
Registry Display Fix (Advanced):
# Restart Windows Display Driver pnputil /restart-device "Root\BasicDisplay"
Symptoms: PowerShell window flashes and closes, no error visible.
Solutions:
-
Run with Debug Mode:
powershell -NoExit -ExecutionPolicy Bypass -File install.ps1
-
Check Python Installation:
python --version pip --version
-
Manual Installation:
pip install -r requirements.txt python src/main.py
Symptoms: No virtual display appears in display settings.
Solutions:
-
Verify VDD Installation:
Get-PnpDevice -Class "Display" | Select-Object FriendlyName, Status
-
Manual VDD Control:
cd "tools\VDD Control" "VDD Control.exe" # Click "Install Driver"
-
Check Device Manager:
- Open Device Manager
- Look for "IDD HDR" under Display adapters
- If yellow warning, update driver
Symptoms: Scripts fail with "execution of scripts is disabled" error.
Solutions:
-
Fix Execution Policy:
# Run as Administrator Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
-
Bypass for Single Script:
powershell -ExecutionPolicy Bypass -File .\install.ps1
Symptoms: HDR games appear washed out or incorrect colors.
Solutions:
-
Check Steam Deck HDR Support:
- Steam Deck OLED: Supports HDR
- Steam Deck LCD: Limited HDR support
-
Sunshine HDR Configuration:
{ "hdr": true, "hdr_prep_cmd": "powershell.exe -file enable_hdr.ps1" }
-
Manual HDR Test:
- Windows Settings → Display → HDR
- Enable HDR manually
- Test with HDR content
Symptoms: All applications fail with the same error code.
Solutions:
-
Check Application Paths:
{ "name": "Steam", "cmd": "C:\\Program Files (x86)\\Steam\\steam.exe", "working-dir": "C:\\Program Files (x86)\\Steam" }
-
Test Command Manually:
# Run the exact command from Sunshine config "C:\Program Files (x86)\Steam\steam.exe" -bigpicture
-
Check Sunshine Logs:
Location: C:\ProgramData\Sunshine\sunshine.log Look for: "Executing Do Cmd" and any error messages
Symptoms: Settings reset or applications disappear after service restart.
Solutions:
-
Verify Configuration Persistence:
Check: C:\ProgramData\Sunshine\config.json Backup: Copy config files before restart
-
Service Restart Test:
net stop SunshineService net start SunshineService
-
Configuration Validation:
- Sunshine Web UI → Configuration → Validate
- Fix any JSON syntax errors
Symptoms: Display configuration changes don't stick between sessions.
Solutions:
-
Windows Display Persistence:
# Save current display config displayswitch /clone # Apply your preferred settings # Windows should remember them
-
Check Display Profile:
- Windows Settings → Display → Advanced display
- Ensure correct display profile is selected
Low latency settings:
- Bitrate: 20-30 Mbps for 1080p
- FPS: Match client display (usually 60)
- Encoder: NVENC (NVIDIA) or AMF (AMD)
NVIDIA Settings:
- Enable GPU Hardware Acceleration
- Set Power Management to "Prefer Maximum Performance"
- Disable Windows GPU Scheduler if issues persist
# Disable Windows Game Mode if causing issues
Get-ItemProperty -Path "HKCU:\Software\Microsoft\GameBar" -Name "AutoGameModeEnabled"
Set-ItemProperty -Path "HKCU:\Software\Microsoft\GameBar" -Name "AutoGameModeEnabled" -Value 0
# System info for support
systeminfo > system_info.txt
dxdiag /t dxdiag_info.txt
Main log: C:\ProgramData\Sunshine\sunshine.log
Service log: Windows Event Viewer → Applications and Services → Sunshine
- Check existing issues: GitHub Issues
- Collect logs: Include relevant log snippets
- System specs: OS version, GPU, network setup
- Reproduction steps: Exact steps to reproduce the issue
If your issue isn't covered here, please create a new issue with detailed information.