#!/bin/bash echo "=== Monitor Selection Debugging ===" echo "This script helps debug monitor selection issues" echo # Show current monitor setup echo "1. Current monitor configuration:" xfreerdp /monitor-list echo # Test different monitor parameter combinations echo "2. Testing different xfreerdp monitor parameters:" echo echo "Testing /monitors:1,2 (should use monitors 1 and 2):" echo "Command: xfreerdp /monitor-list /monitors:1,2" echo "Note: This would be used for '2 Monitors' selection" echo echo "Testing /monitors:1,2,0 (should use monitors 1, 2, and 0):" echo "Command: xfreerdp /monitor-list /monitors:1,2,0" echo "Note: This would be used for '3 Monitors' selection" echo echo "Testing /multimon (should use all monitors):" echo "Command: xfreerdp /monitor-list /multimon" echo "Note: This would be used for 'All Monitors' selection" echo echo "3. To test with actual RDP connection, you can use:" echo "xfreerdp /v:your-server /u:username /p:password /monitors:1,2" echo echo "If /monitors:1,2 still uses only one monitor, this indicates" echo "a limitation or bug in your FreeRDP version (2.11.5)" echo echo "4. Alternative workarounds to try:" echo "- Use /multimon instead of /monitors: (uses all monitors)" echo "- Use /span to span across monitors" echo "- Update to a newer version of FreeRDP" echo "- Check if your RDP server supports multi-monitor" echo echo "5. Check current RDP client logs:" echo "tail -20 ~/.config/rdp-client/rdp_client.log"