<< DiscussionsReply

Restore window positions due to DisplayPort disconnect.

40 discussion posts

DisplayPort has an irritating problem, in that, when the display is disconnected (power plan switches monitor off or physically switched off), MS Windows re-arranges all the windows on to the other monitors (I have 4) in a random fashion.

I have not been able to find a fix for this DisplayPort madness so I am trying to get DF to help me out. I see there is a function "Save Window Positions" that I have been playing with.

Is there any way I can automate this?

Note that my PC never sleeps but I do switch the monitors off at night and the power plan also switches the monitors off after 15 minutes.

I would like DF to save the positions on detecting that the monitor has disconnected and restore the saved window positions on reconnect.

As a test I used a timer to save the window postions and a hotkey to restore from last save. This works but I would prefer to automate the process if possible.

Any ideas on how to do this?


Apr 4, 2020  • #1
1 discussion post

I faced a similar problem at work. My employer will force an idle monitor power off in the BIOS, and DisplayFusion was the only way I could find around it.

My solution was to get the applications situated as I wanted them and then to save them as a "Windows Position Profile". I also bound "Alt+Ctrl+F1" as a hotkey to restore my windows after I logged back in.

After a lot of research, This appears to be a Win10 bug for Display Port connections. When I had a similar 3 monitor setup, I had no problems with D-DVI connections.
Apr 5, 2020  • #2
40 discussion posts
Thanks for your input. I am waiting to see if DF have any ideas.
Apr 6, 2020  • #3
40 discussion posts
I found a solution.

1. Create a monitor profile for your normal state (all monitors on).
2. Create a "Timer Interval" trigger, interval is 60 seconds with Monitor profile created above selected. Add a "Save Window Positions" function.
3. Create a "Monitor Profile Changed" trigger with Monitor profile created above selected. Add a "Restore Window Positions From Last Save" function.

This works but sometimes the restored windows are sitting under the task bar. Maybe a short delay before the restore will fix this.
Apr 6, 2020  • #4
40 discussion posts
Hmm, not that succesful. Only works sometimes....
Apr 10, 2020  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There are a couple of things you can do to try to make it more reliable:

  • Update to the latest DisplayFusion beta, and enable the "Don't run this trigger when the desktop is locked" option in the rule for saving the window positions.
  • Increase the interval to 120 or 180.

Hope that helps!
Apr 14, 2020  • #6
40 discussion posts
I did find a solution to this (sorry, very late in posting the solution).

You need to create a "Window Position Profile" and add all the windows you care about. I have assigned a hot key and it works well.
• Attachment [protected]: Screenshot - 2021-02-09 15.43.58.png [64,870 bytes]
Feb 9, 2021  • #7
Was this helpful?    
<< DiscussionsReply