TEST: Force monitor selection to 0,1 instead of 1,2

Testing different monitor combination to isolate the issue:

Monitor layout:
- Monitor 0: +3840+0 (primary, rightmost)
- Monitor 1: +0+0 (secondary, leftmost)
- Monitor 2: +1920+0 (secondary, middle)

Previous: Used monitors 1,2 (leftmost + middle) → single monitor
Test: Use monitors 0,1 (primary + leftmost) → see if this works

This will help determine if the issue is:
- Specific monitor IDs (1,2 vs 0,1)
- Primary monitor involvement
- Physical monitor positioning
- FreeRDP interpretation of monitor selection

Command will be: xfreerdp /f /monitors:0,1
This commit is contained in:
root
2025-09-18 11:22:49 +02:00
parent b12dface5d
commit b16ec65781

View File

@@ -327,6 +327,14 @@ class RDPClient:
# For debugging, log the monitor layout
self.logger.info(f"Monitor layout detected: {[(m[0], m[1], 'primary' if m[2] else 'secondary') for m in monitors]}")
# TEST: Use monitors 0,1 instead of 1,2
if count == 2:
selected_str = "0,1"
self.logger.info(f"TEST: Forcing selection of monitors 0,1 for testing")
elif count == 3:
selected_str = "0,1,2"
self.logger.info(f"TEST: Using all monitors 0,1,2")
else:
# Return the leftmost monitors (excluding position and primary flag)
selected = [str(m[0]) for m in monitors[:count]]
selected_str = ','.join(selected)