From b16ec657816ff65710dbecd15980620dcf425261 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Sep 2025 11:22:49 +0200 Subject: [PATCH] TEST: Force monitor selection to 0,1 instead of 1,2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- rdp_client.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rdp_client.py b/rdp_client.py index f01384f..0f48161 100755 --- a/rdp_client.py +++ b/rdp_client.py @@ -327,9 +327,17 @@ 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]}") - # Return the leftmost monitors (excluding position and primary flag) - selected = [str(m[0]) for m in monitors[:count]] - selected_str = ','.join(selected) + # 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) self.logger.info(f"Selected {count} monitors: {selected_str}") return selected_str