display arrangement changes after sleep

Hello,


The issue is that the arrangement and orientation of external displays may get changed upon waking from sleep. Along with that, the position of the windows may change on those displays as well.


After looking for other posts on the problem, I see that this seems to be a common issue across different types of Mac that has existed for quite a few years. Despite that, there does not seem to be a good solution. I had it on my Macbook Pro, but it did not happen every time it woke from sleep, so it was a nuisance, but I could live with it so I never solved it. Now with a new iMac, I have two displays with rotated orientation, which means they are unusable until I go reorient and rearrange them. The problem is also happening more frequently.


A couple clues:

  1. Rebooting the machine sometimes results in the correct orientation and arrangement coming back.
  2. Unplugging the monitors and reconnecting them sometimes brings back the correct orientation and arrangement. This is the work around I have been using.
  3. Turning them off and back on does not seem to help.


Conclusion: The settings are not lost; they are just not being loaded and applied.


Questions:

  1. For Apple developers: Is there something that can be changed in the wake process that will ensure that the display orientation and arrangement settings are loaded and applied? Please look into this and make a change in the next MacOS update.
  2. For a near term fix: I believe that the settings are stored in com.apple.windowserver.plist. Is there a way to get the windowserver to reload these settings and apply them? Does that make sense?


Thanks.


iMac Line (2012 and Later)

Posted on Jan 10, 2021 1:53 PM

Reply

Similar questions

3 replies

Jan 19, 2021 11:38 AM in response to manzanit

Still looking for a good solution to this issue. Do any devs ever read these posts who might be able to shine some light on what the code is doing?


Recap of the conditions of my particular problem:

2020 iMac

MacOS Catalina, up to date

2 4k external monitors connected by USB-C

  • Samsung U28D590D - scaled to 1440x2560, rotation: 90 degrees
  • Samsung U28E510D - scaled to 1440x2560, rotation: 270 degrees


I have another small clue, and a recipe that has been reliable for me so far. It still seems random as to whether the Mac will wake from sleep and remember the screen arrangement or not, but the following procedure has worked every time to get it to reload:

  1. Starting after waking with the screens in the wrong arrangement.
  2. Turn off the external monitors.
  3. Unplug the external monitors.
  4. Turn on the external monitors.
  5. Plug the monitors back in.


Even though this recipe works it is a serious drag to have to do this 2, 3, or more times per day. I also worry about removing and inserting the USB-C connectors so frequently that those connections may become degraded. I'm sure this frequency of use is not what they are designed for.


The reliability of this procedure also indicates that there must be some software triggered on reconnection of a display that is on that recognizes it as a known display and loads an existing arrangement for it. Are there any devs out there familiar with Mac display handling code? Any idea how I could find one to help with this question? I will continue to look elsewhere and report back here if I find a better solution.


Thanks.


Jan 10, 2021 7:24 PM in response to DonH49

Hi Don,


Thanks for the reply. Yeah, that's true. I was thinking we might be able to find a more general answer since it seems to come up for so many people. But maybe the issue and solution do have more to do with the monitor type.


Both of the monitors I am using are Samsung; U28D590D and U28E510D. They are the common factor between my previous setup with a MacBook Pro and my current setup with an iMac.


Even if there is something specific to these monitors that makes them challenging to deal with I was hoping to find a solution like forcing a reconfiguration based on the settings in the windowserver.plist. Any chance someone knows how to get that to happen?


Thanks,


-Dan


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.

display arrangement changes after sleep

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