Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Mats Lindh
14 discussion posts
Hi,

I'm using the feature that saves the windows after being idle for a period, and then I use a shortcut to restore the windows afterwards. I have a three monitor setup.

This kind of works, but randomly the window positions will be switched around - most windows on the center monitor (main) will restore to the left monitor, while one of the windows from the left monitor will be restored to the center monitor. The windows on the right monitor usually behaves.

Any advice on how I can debug this to make it work or provide information for an update? I'm running 8.1 (since I was hoping that the changes to the dock handling would fix this), but the same issue has been there since 8.0.

If I use my shortcut again, the windows will be restored back to the same position (the wrong one) as when I did it the first time.
Oct 28, 2016  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Strange! Can you make a note of the monitor IDs in the Monitor Configuration window when everything is working correctly? Then, when you run into this again, check to see if the monitor IDs are different?
Oct 28, 2016  • #2
User Image
Mats Lindh
14 discussion posts
I've attached the views from the Monitor Configuration. I've discovered that the windows on monitor 1 has moved to monitor 2, and the window on monitor 2 has moved to monitor 1 while the monitors has been asleep.

After restoring, the window now on monitor 1 (which was on monitor 2 before sleep), moves back to monitor 2, but all the windows that were moved to monitor 2 (and was originally on monitor 1), stays on monitor 2. They're minimized/restored as they were, but their location is now on the wrong monitor.
• Attachment [protected]: monitor-configuration-post.png [123,027 bytes]
• Attachment [protected]: monitor-configuration-pre.png [115,889 bytes]
Oct 29, 2016  • #3
User Image
Mats Lindh
14 discussion posts
Does DF keep a more detailed log that can be helpful to determine what's actually happening behind the scenes?
Nov 1, 2016  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
It sounds like the Trigger for saving the positions could be firing after the windows have been jumbled. If you disable the Trigger rules, assign hotkeys to the "Save Window Positions" and "Restore Window Positions" functions, and run the manually before and after sleep, does everything work correctly?
Nov 4, 2016  • #5
User Image
Mats Lindh
14 discussion posts
Manually saving and restoring seems to work, yes.

So could it be that the idle timeout is reset after the monitors are put into sleep? (which might change the location of the mouse pointer, if any of the monitors' device disappears?)
Nov 5, 2016  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, another test for you. Can you enable the Trigger for restoring, but leave the Trigger for saving disabled? Then, manually save the positions before letting the computer sleep, and see if they get restored automatically when it comes out of sleep?
Nov 9, 2016  • #7
User Image
Mats Lindh
14 discussion posts
I've never used automatic restoring, since it's only the screens that go to sleep - that's always been bound to a keyboard shortcut (and I can't bind automatic restoring without locking the desktop, iirc?).

I've noticed that the Spotify-window I keep on my left screen sometimes isn't moved back, even if it was manually saved - and is kept on the middle screen instead (and sometimes after the screens wake back up, it's put somewhere off all three screens, requiring me to minimize and open it again for it to show up again).

The current theory is that the coordinate systems change around after the monitors wake up.
Nov 9, 2016  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ah right, sorry about that! I've just tried a System Idle trigger on my machine, and set the machine to power off the monitors, it doesn't seem that the trigger fires twice or anything like that. Quick question: Does it work if you only let the monitors sleep for a minute or two? And if so, if you leave them sleeping longer than the System Idle trigger is set for, does that seem to break the saved positions?
Nov 15, 2016  • #9
User Image
Mats Lindh
14 discussion posts
Neither seems to have any effect - things worked as they should in both cases. Baffled.

Is there a debug log mode that I can configure and then examine the logs after it happens again?
Dec 10, 2016  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Strange! You could enable debug logging so that we can hopefully see when the triggers are firing. Here are the steps to enable and send the log:
  • On the Settings > Troubleshooting tab, change the Logging drop-down to "L2: Log Detailed"
  • Apply the settings
  • Next time you have an issue, note the time, and send us the DisplayFusion.log and DebugInfo.html files (can be found by clicking the Open Log button on the Troubleshooting tab)
Dec 14, 2016 (modified Dec 14, 2016)  • #11
User Image
Mats Lindh
14 discussion posts
The log is attached. When the screens woke up this morning, restoring windows positions did almost nothing.

But after waking up, Windows had moved the taskbar to the left screen (#2), while still having the mid screen (#1) as "make this my primary screen". To get the taskbar to move I had to set #2 as the primary screen, click apply and then set #1 as the primary screen again (this is in Windows' UI, so this isn't a DisplayFusion issue - but maybe it's a symptom of something?)

Anyways, I guess that may be the last few lines in the log file since I didn't copy the file away before I did that.
• Attachment [protected]: DisplayFusion.log [3,217,991 bytes]
Dec 15, 2016  • #12
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! The log doesn't show the Restore Trigger running at all. Could you send me a screenshot of your Restore Trigger rule?
Dec 17, 2016  • #13
User Image
Mats Lindh
14 discussion posts
There is no trigger used - I only use a keyboard shortcut for restoring (as there is no trigger available for "waking up" - just for unlocking).
Dec 17, 2016  • #14
User Image
Mats Lindh
14 discussion posts
Attached is a log file where the windows that were on monitor #1 (mid) no longer restores to monitor #1, but remains on monitor #2 (left), while the contents that were on monitor #2 (left), remains on monitor #1 (mid).

I.e. wrong monitors.
• Attachment [protected]: DisplayFusion.log [5,030,081 bytes]
Dec 19, 2016  • #15
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! I can see in this log that the Save trigger fired at 17:07, then again at 17:24. Is the timeout on your Save trigger set to 10 minutes?
Dec 20, 2016  • #16
User Image
Mats Lindh
14 discussion posts
Yup! Maybe there's a different application waking up the computer after a certain time, before idling and it going back to sleep again?
Dec 20, 2016  • #17
Keith Lammers (BFS)'s profile on WallpaperFusion.com
That's definitely what it seems like. I can see stuff in the log that looks like the computer waking, then 10 minutes later it saves the positions via the Trigger. Is your Trigger set to only run on a specific Monitor Profile?
Dec 20, 2016  • #18
User Image
Mats Lindh
14 discussion posts
No, it's configured globally. I haven't used monitor profiles. Do you have any good ideas on how to debug this further?
Dec 20, 2016  • #19
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I'm wondering, if you save your Monitor Configuration as a Monitor Profile, then create a new Trigger like the attached one, if that would do the trick. In theory, when your system wakes from sleep, it should detect the saved Monitor Profile, and then fire the Restore function automatically. That way, even if it wakes from sleep on its own, it will restore the positions, and when the idle save timer fires, it will be re-saving the correct positions, instead of the broken ones.
• Attachment: RestoreTrigger.jpg [93,185 bytes]
RestoreTrigger.jpg
RestoreTrigger.jpg
Dec 21, 2016  • #20
User Image
Mats Lindh
14 discussion posts
The event doesn't seem to be triggered - at least not in any meaningful way. Same result as earlier. Log is attached.
• Attachment [protected]: DisplayFusion.log [2,869,890 bytes]
Dec 25, 2016  • #21
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, thanks, that trigger must not fire when only the monitors sleep :(

Let's try something different. Instead of using the Idle event in the Save Trigger, could you try using the Timer Interval event, and set it to something longer than your sleep timeout? Maybe 30 minutes? That way it should save automatically every 30 minutes, and even if the machine wakes from sleep when you're not there, it hopefully won't Save the bad positions before it re-enters sleep again.
Jan 17, 2017  • #22
User Image
Mats Lindh
14 discussion posts
That seems to work better, but there's still been at least one time where it confused monitor 1 and monitor 2 and restored the windows to the wrong monitor (and since the monitors have different resolutions, that fubared the windows sizes).

Using restore on monitor profile change did however cause an endless loop with a game (Overwatch) trying to go fullscreen (probably because of a refresh rate / resolution change), where DF would try to restore window positions, which would exit fullscreen, but windows would fullscreen it again, retriggering the restore window positions .. and so it went on until I killed OW and disabled the monitor profile change trigger.
Jan 30, 2017  • #23
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, thanks! I'll put that looping issue on our list to fix up. For now, I think the Save positions Trigger is as good as it will get. Unfortunately it is still possible that the timer could fire when the machine wakes from sleep, if the timer was close to rolling over before the machine entered sleep. We're hoping to add a better "Window Position Profiles" type of feature in the future that would permanently store the saved positions, so that it wouldn't have to be run on a timer. I'll definitely let you know if/when we've implemented that so that you can test it out.

Thanks!
Jan 31, 2017  • #24
User Image
Mats Lindh
14 discussion posts
Thanks! Please keep me posted about any further updates on this functionality and I'll be glad to test it out.
Jan 31, 2017  • #25
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The new Window Position Profiles feature may be what you're looking for now. It's available in the current 9.2 Beta, and if you have any feedback, we'd love to hear it!
May 16, 2018  • #26
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)