Desktop arrangement lost after waking from sleep

MacOS Monterey 12.2.1 / MacBook Pro (16-inch, 2021) / Apple M1 Pro


I have two additional monitors (BenQ PD2725U Displays) and the multiple display setup works fine.

On display #3 there are three "Desktops" each devoted to a different app.


After the system wakes from sleep, the Desktops from #3 all switch to display #2, and all the application windows on display #3 migrate to display #1.


It's disruptive and time-wasting to have to re-set my workflow configuration every time. I've resorted to disabling all the energy saving features. Can anyone recommend a fix?



MacBook Pro

Posted on Mar 5, 2022 5:46 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 20, 2022 4:40 AM

Looks like I have a fix, after 1h call with support and some experimenting.

Step 1: create different local user and check if problem occurs again. For me, it didn't.

Option with new user is nor really good for me, as it means another onboarding process with my corporate, means new device ID, certificates, blahblah.

Step 2: shut down Mac, ten tap and hold power button for Startup options, choose options -> disk utility, and check Macintosh HD for errors -> "health check". For me, it didn't find anything.

Step 3: (being logged into your user) Finder -> Go-> Library -> LaunchAgents, delete everything inside, not the folder itself.

Step 4: go to Macintosh HD -> Library -> LaunchDaemons, delete everything inside, not the folder itself.

Restart Mac.

Now sleeping and waking, unplugging and plugging back - all app windows are back where I left off. Finally.


Similar questions

121 replies

Aug 10, 2022 2:17 AM in response to Blazejos

Ok, but the first series M1 MacBook Pro only has 2 usb-c / thunderbolt ports.


I’m using TB for one monitor and an apple made adapter to HDMI for the other. It It’s either one external Monitor or the other but not both at the same time! The issue of switching when plugging in is it defaults to 2 side-by-side monitors of the external monitor & the laptop screen. But what I keep setting up is the laptop screen underneath the external monitor so that I can access the keyboard and trackpad et cetera- however it remembers that for a short while and then loses it , particularly after sleeping. Not good.

Aug 12, 2022 11:03 PM in response to tistos

For me, your thought process makes a lot of sense. I will give that a try later. There has to be SOMETHING concrete that causes this issue so attempting to find and only remove the culprit(s) is the best option. We all seem to have a very similar problem depending on how many external monitors we have, so hopefully, we are getting closer to an answer between us.

Aug 13, 2022 6:21 AM in response to pixpi

Unfortunately, I still have the same issue. Instead of my Desktop arrangement how I left it, my Mac swaps them around it to be and also the windows on different desktops and not where I left them. Windows that were maximised at sleep are minimised on wake and vice versa.


I can't change the arrangement to suit my Mac's preference because I have a 49" monitor with BIP split and my Mac sits on the RHS of it. On waking or rebooting, my Mac swaps the arrangement of the external monitors as well as arranges my mac on the LHS. In addition, I change my refresh rate to 60hz and my mac changes it to promotion every single time I wake or reboot. AAARGH.

Aug 14, 2022 2:06 AM in response to pixpi

Further update: this morning the arrangement was as I left it; the only difference was that one of the maximised windows was minimised. I didn't put the mac to sleep, it went to sleep after being inactive for a period. I also noted something else, when I Mac went to sleep with power saving it would make ticking noises but there weren't any.


Final word on my post: I would definitely recommend trying the steps suggested by Blazejos.


Aug 18, 2022 4:09 PM in response to jmswingle

I created a screencast to show what I mean through an unlisted YouTube video:

https://youtu.be/lJoG35eAiTw


There wasn't a way to record actual hardware. But if I explain what's going on there, when I click and move the right top monitor in the video, my left top physical monitor was getting highlighted. Just at this moment after a system sleep-wake cycle, top two external monitors were swapped opposite way. So this recording is just before I re-fit them back in order. But this hassle I have to go through a few times during the course of a single day.

Aug 20, 2022 8:26 PM in response to betaclone

I've tried a few apps myself. All of them concerns about placements of the windows (I've got one for that already).


But the core problem is that once the screen positions are swapped your mouse pointer doesn't cross the joining-border middle of the two screens, and you having to go around the screen to navigate between the two screens!


This problem isn't solved by any software yet. And this I believe should be solved not at the application layer software but at the driver/OS layer software.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Desktop arrangement lost after waking from sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.