M1 mac mini display keeps losing scaling

I just got an M1 Mac mini, and it's great! Except for one annoying problem so far: whenever my Mac comes back from sleep, my display scaling is messed up.


I have two monitors connected to it, a 4K HDR by LG and a 1080p by HP. The 4K monitor is set to be scaled to be "like 2560x1440," and that one will occasionally reset to be "like 1920x1080." When this happens, if I go back to the Displays system preference page, it'll be set back to "default for display." If I set it to "scaled" again, it won't actually update the scaling unless I set it to a different size (like 3840x2160) and go back to 2560x1440.


Has anyone else experienced this issue, and is there any way to fix it so that my display settings stop getting messed up every time my machine wakes from sleep?


Mac mini, macOS 11.1

Posted on Jan 7, 2021 12:44 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 4, 2021 7:19 PM

Figured out a workaround to restore display scaling for my Mac mini M1 and LG HDR 4K display, using Hammerspoon (watch for display wake) and displayplacer (set resolution). Works for Big Sur 11.2 - hopefully won't need it in future updates.


The quirky thing is that for it to work properly, I have displayplacer set to a smaller resolution first, and then the desired resolution immediately after. It switches so fast you don't even see the smaller res. Here's sample code for Hammerspoon.


function displayWatch(eventType)
	if (eventType == hs.caffeinate.watcher.screensDidWake) then
		hs.execute("/opt/homebrew/bin/displayplacer 'id:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX res:2560x1440 hz:60 color_depth:8 scaling:on origin:(0,0) degree:0'")
		hs.execute("/opt/homebrew/bin/displayplacer 'id:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX res:3008x1692 hz:60 color_depth:8 scaling:on origin:(0,0) degree:0'")
	end
end

displayWatcher = hs.caffeinate.watcher.new(displayWatch)
displayWatcher:start()

Similar questions

46 replies

Feb 4, 2021 7:45 PM in response to GVNYC

Ah, nice, Hammerspoon looks a lot easier to deal with than Sleepwatcher. And yeah you have to change the resolution out and back, or else the display system doesn't think there's any changes to apply (which is probably also why the manual System Preferences fix requires changing the scaling to something else before changing it back too).

Feb 6, 2021 1:21 PM in response to John Scott1

Possibly, and issues like these are why I was hesitant to jump over to Apple Silicon so quickly since all first-gen Apple machines have problems like these. But I was due for an upgrade and didn't want to be stuck on Intel.


My monitor is connected directly via HDMI but I've also had issues with my Thunderbolt dock disconnecting on sleep, which causes the OS to complain about unsafely disconnecting my Time Machine volume (which is connected via that dock). I haven't had any trouble with the USB-A ports, though, or with my directly-USB-C-connected NVMe drive.

Mar 26, 2021 8:53 PM in response to nb1204

How did you install displayplacer? If you're getting "command not found" it means that it's not in your execution path. If you didn't install it using homebrew, try putting it in /usr/local/bin (which you can open in Finder by running "open /usr/local/bin" from Terminal).


Just closing the Hammerspoon window should be enough to make it run, yes. Also if you open the console you can see what error is happening when it tries to run. If you put displayplacer in a different location you'll need to change the script to point to it as well. The script I provided assumed you used Homebrew to install it (thus /opt/homebrew/bin) but if you put it in /usr/local/bin then it'll need to be /usr/local/bin/displayplacer.

Jan 23, 2021 2:32 PM in response to inzekt

Unfortunately, it seems that my monitor doesn't come up as supporting HDR when it goes through my Thunderbolt dock (even though it lists the HDMI port as being HDR-capable), and when my monitor is connected as SDR, the color profile is entirely unacceptable. So, I guess I'm just going to put up with this bug for a while longer. Hopefully it gets fixed by 11.3.

Jan 30, 2021 2:07 AM in response to fluffy

I'm just furious now... Finally, the last beta solved this scaling issue at least on the USB-C / Thunderbolt port. I happily installed the final 11.2 today and voilà the scaling is wrong again. I just can't believe that it's happening and considering the huge numbers of vga related issues, I'm hugely disappointed in Apple's competency solving this whole mess... I'm more upset because the other issues (kernel panics, bluetooth connectivity, etc.) as well combined with this... It's just not the experience I'm used to have with a new apple product... It's a shame.


Jan 30, 2021 8:37 AM in response to inzekt

These are the kinds of things that happen with new hardware and software platforms. Generally it takes time for weird issues like this to shake out.


Personally the M1 has been quite stable for me, and the number of issues I’ve had have been surprisingly few. This M1 mini has been WAY more reliable than the Intel iMac it replaced, anyway. But different people have different experiences with things.

Feb 4, 2021 12:59 AM in response to fluffy

It's funny, that you're fine with it, but actually, I've been using apple computers for almost like 20 years and this is my first one what I have so much issue with it... Starting with bluetooth issues, finally It's been mostly resolved, but the bt range is still not good. Kernel panics... Sometimes I wake up the mac and it seems it has restarted itself recently, showing me a screen that it has been recovered from an error. The debug logs shows a watchdog kernel panic event. The external display and the whole graphics subsystem is kind of brittle... The screen starts to flicker without any reason sometimes, it generates vertical lines after a while, then the whole screen goes blank and the mini restarts itself... Then this constant scaling reset issue. So don't tell me, that it's cool with you, as I can see a LOT of people suffering with this. These issues should be addressed quickly.

Feb 4, 2021 7:50 AM in response to inzekt

Okay, those sound like pretty serious problems to me. I haven’t experienced anything like that, but those problems would be very frustrating to me as well.


But this forum thread is about one specific minor problem I have been having, and I would appreciate it if people would stick to discussing this problem. I’m sure there’s threads about the problems you’re having, and they also sound serious enough that you should be talking directly to Apple support and maybe returning the computer as defective.


In any case, don’t attack other users for not having the same problems as you or bot being aware of the problems you’re having.

Feb 6, 2021 1:16 PM in response to fluffy

I don't have a M1 Mac mini but I have not had any trouble with my Monitor and Big Sur. This must be a specific issue with M1 and some even report losing USB C ports altogether. I have to wonder if this could be a hardware issue as in a defect that is showing up since apparently nothing get's reported in beta testing. You would think with so many experiencing this that beta testing would have least reported this as a potential issue. I have to consider a hardware issue because it appears that issues occur no matter if you use HDMI or DisplayPort to connect to monitor. I That sort of follows back to a problem with graphic chip if you ask me.

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.

M1 mac mini display keeps losing scaling

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