I need everything to stay open and never shut down....simple ? NOT!!!

I have all possible settings on my mac m1 Sonoma 14.6.1 so that my work set-up does not shut down everynight!!!


This set-up can be quite long if you have to do it just about every day, so I'm trying to keep it open at all times! I have managed to keep the mac from going idle or on sleep and shutting down...that part seemed to be working, but again I am not sure, because I'm pretty sure the "chain shutting down of all the app" is caused by the operating system ?!


But every morning one app -midiculous- seem to interrupt the chain closing of all the apps !?! So I am left with just 3 apps (the unimportant ones) still open but most of my setup has shut down and I have to start setting up again....


I have been trying to fix this for almost a year! I can't seem to find the solution and tried so many things I lost count :( I'm willing to try anything at this point....


My work set-up includes about 10eesh apps and all apps before MIDICULOUS shut down... it stops at Midiculous -that prompts saving questions- and stops the chain shut down of all the apps :


Chrome, Manycam, Quicktime player, Goodnotes, Tempo, Zoom, MIDICULOUS , classroom maestro, kindle, safari...

Mac mini, macOS 14.6

Posted on Oct 1, 2024 7:43 AM

Reply
10 replies
Sort By: 

Oct 2, 2024 12:39 PM in response to Strontium90

Well well "caffeinate in terminal" sorta worked...it interrupted after only one software closed in the chain and prompted to terminate terminal & caffeinate, which sorta gives me a temporary solution and this will save me a lot of time so ......thank you Strontium90

Thank you sooo sooooo much!


I am still going to seek help to fix the source of the problem, but during school year I can't factory reset anything so certain steps I could take are simply out of the question for now...

Reply

Oct 2, 2024 4:31 AM in response to BabaOrhum

The second of those settings, if enabled, will force all the windows to close when the Mac restarts. Since you’re getting an orderly shut down, you have something set to shut down your Mac every night. It doesn’t sound like you’re getting a kernel panic that is causing it to restart, but that’s also possible.


Short of you having a schedule set to restart it every night I don’t know what would cause it to do that. This article shows how to check that, but it doesn’t get set magically.

Schedule your Mac to turn on or off in Terminal - Apple Support



Reply

Oct 1, 2024 7:56 AM in response to BabaOrhum

Two suggestions.


This sounds like you have logout after idle enabled. Go to System Settings > Privacy & Security and scroll all the way to the bottom. Click on the Advanced... button. Is "Log out automatically after inactivity" enabled?



If so, turn it off.


Second suggestion, try running caffeinate in a Terminal window. This is likely an excessive case. Based on your description, it sounds like suggestion one is the culprit. Especially since you described that apps with open documents are halting the logout process.


Hope this helps

Reply

Oct 1, 2024 10:51 AM in response to BabaOrhum

Here is another thing to check. A few operating systems ago (like maybe 10.12 or 10.13), there was a bug where a managed device would enforce a logout timer and then when removed, the logout timer would remain. I am wondering if despite the UI showing the setting is off, that the preference is still set.


Run this command from Terminal:


defaults read /Library/Preferences/.GlobalPreferences.plist


This will read the contents of the .GlobalPreferences.plist file and display them in the Terminal. No changes will be made to anything.


If you have the feature enabled, and the default value is 60 minutes, you will see a key/value pair like this:


    "com.apple.autologout.AutoLogOutDelay" = 3600;


The value of 3600 is 60 seconds * 60 minutes, thus 3600 seconds. With the feature disabled, this key/value pair should not be present in the preference file.



Reply

Oct 1, 2024 12:11 PM in response to BabaOrhum

For quite a long time now, the default behavior of macOS is to never restart never shut down and restore all apps to what state they were in if you did shut down. If you have enabled, ask to close windows before shutting down, that defeats the whole Resume process.

Reply

Oct 1, 2024 12:19 PM in response to Barney-15E

Whew is that ?

where is that setting ? ......the "ask to close windows before shutting down"


under Desktop & Dock

there is a "ask to keep changes when closing documents" (disabled)

and a " Close windows when quitting an application" (disabled)

both are disabled


but I fail to understand how that provokes a chain closing of all apps every night ???


Reply

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.

I need everything to stay open and never shut down....simple ? NOT!!!

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