I'm using Windows 10 connected to a computer monitor with DisplayPort and a Samsung TV with HDMI.
I have the monitor as the second screen (id=2) and the TV as the first one (id=1).
Most of the time I only want to use the monitor and I do that by switching the TV off and doing Windows+P so it's set to "Second Screen Only".
The problem is that the TV is detected most of the time, but sometimes the detection gets lost for a second and all my windows are rearranged (even though my monitor is the only thing on). So it's basically a useless rearrangement. This all looks like my screen goes off for a second and goes back on every 2/3 minutes while the TV is off.
I have tried deactivating the TV, checking sleep options, try to reorder display output ids (but was not able to)... Is there any solution for this?
What it looks like: https://www.youtube.com/shorts/Hq-GeVZ39c8