Desktop arrangement lost after waking from sleep (MBP M1 Max w 2x identical external displays, Monterey>Ventura)
Interesting issue as many others have experienced.
Have 2x external (identical) displays, set up laptop built-in as "main" display (recommended as seems to fix problem for some), 2x external displays as "extended" displays.
Running latest macOS Monterey.
When I enter LOCK SCREEN or SLEEP mode, my apps on external displays collapse to built-in main display.
Seems to happen more often in SLEEP mode.
( I usually turn off WiFi (all network) for security purposes, don't think should make a difference )
Upgraded to latest Ventura 13.6.3 yesterday... does not happen as frequently in LOCK, more often SLEEP.
I am not using new Stage Manager feature in Ventura (may confuse things).
Tried creating a new user profile and problem seems to disappear, suggesting related to save profile settings along with saved displays profiles for given user. Migrating to new profile and re-setup not viable.
Some suggest deleting LaunchAgents & LaunchDaemons (various Library locations) but these are for apps, don't appear related to Apple OS settings.
I did find post about Mission Control default setting for "Automatically rearrange Spaces based on most recent use" and "Displays have different Spaces". Slightly different location under Apple_Settings_Desktop & Dock. Was set to this...
...and changed to this...
...and appears to have fixed the problem for now... will post update as continue to test....
Hopefully this info helps others...
P.S. Because I have identical external display (manufacturer & model) I did see a glitch on Monterey when setting up the external displays where was was identified as #1, second as #2 and then they switch names (2 became 1 and 1 became 2)... unsure why. Unsure how to rename this displays back.
P.S. Some have suggested waking external monitors out of "sleep mode" before waking up/login to MBP may resolve issue (perhaps MacOS timing thing on wake-up being too fast to allow external display to report connection and get previous window/app layout. One would expect external display "wait time" timer delay could be changed by Apple or some config file some where to resolve if this is the issue. Perhaps a newer faster external display would not have same issues waking up. In my case, waking up did not make a difference if external display was already out of sleep mode... the windows/apps migrated to laptop main display anyhow.
Grant
MacBook Pro 16″, macOS 13.6