(I did take the opportunity to clean the keyboard and screen as this is the first time the MacBook appears to have been completely off! I once almost locked myself out by cleaning the keyboard and getting a message warning about incorrect password entry). After reading various forums I found I had to turn on the MacBook using the power button, something I have never needed to do as usually just opening the lid turns it on. It didn’t so I assumed it needed more power to operate and waited a bit. After plugging in the adapter and hearing the confirmation sound I was expecting the MacBook to come to life. I think I may have done this when the battery was very low and wonder if this could have caused the problem? The next time I opened the lid the battery low ikon appeared in the centre of the screen. I usually shut the lid until I need it again. I am wondering if it is triggered by a combination of battery drain and sleep mode? I only occasionally restart the MacBook. I have had my MacBook for about two years, (the first I have owned), and I have not seen this error message before. It was very irritating getting the error message on every start up. Thank you so much! Your solution and instructions are perfect and the problem is fixed for me. Re How to Fix ‘You Shut Down Your Computer Because of a Problem’ Find and double-click on the Logs folder to open it.From the menu bar at the top, click on Go, then select Go to Folder. Use Command-Space Bar to open Spotlight, then type Finder. In order to get rid of this message, we will delete a log file using Finder. Fix the ‘You shut down your computer…’ warning message Fortunately, the fix that worked for me and many others does not require so much work. Others have tried many different things to get rid of the message they have tried restarting, updating software, restarting in Safe Mode, resetting the PRAM/NVRAM, doing disk checks in Disk Utility and even reinstalling macOS. Some users who have had this problem have said that the message simply stopped appearing at some point. For most users seeing this message, they were just shutting down like usual. This message seems very similar to the “ Your Computer was Restarted Because of a Problem” message, but strangely, the message tells you that you shut your computer down because of a problem. The good news is that there is a way to disable this error message this article will explain the steps you need in order to get rid of this pesky warning. After doing some research, I could see that many users have had this problem with their Macs running Monterey, but users have complained about the issue as early as 2012. See Technical Q&A QA1134: Programmatically causing restart, shutdown and/or logout.Īccording to man shutdown, shutdown -h now and shutdown -r now send processes a TERM signal followed by a KILL signal.Īccording to the Daemons and Services Programming Guide, when you tell loginwindow to log out, processes that support sudden termination are sent a KILL signal, and processes that don't support sudden termination are terminated in different ways: Cocoa applications receive the applicationShouldTerminate: delegate method, foreground applications receive the kAEQuitApplication Apple event, background applications receive the kAEQuitApplication Apple event followed by a KILL signal, and daemons receive a TERM signal followed by a KILL signal after a few seconds.I recently sent in my MacBook Pro for a battery replacement, and when I got it back, it kept showing the message “You shut down your computer because of a problem” whenever I would restart it. loginwindow is sent the same Apple events as above when you log out, restart, shut down, or put the the Mac to sleep normally. The four letter codes for the Apple events are listed in AERegistry.h.Īll System Events commands above send Apple events to the loginwindow process. Put displays to sleep (10.9 and later): pmset displaysleepnow Go to sleep (AppleScript): osascript -e 'tell app "System Events" to sleep' Log out after showing a confirmation dialog: osascript -e 'tell app "System Events" to log out' Log out without showing a confirmation dialog: osascript -e 'tell app "System Events" to «event aevtrlgo»' Restart after showing a confirmation dialog: osascript -e 'tell app "loginwindow" to «event aevtrrst»' Restart without showing a confirmation dialog: osascript -e 'tell app "System Events" to restart' Shut down after showing a confirmation dialog: osascript -e 'tell app "loginwindow" to «event aevtrsdn»' Sleep mode behaviour may slightly vary in case of Macs which support Power Nap. Closing the lid of a portable automatically puts it into sleep mode unless an external display is connected to it. Shut down without showing a confirmation dialog: osascript -e 'tell app "System Events" to shut down' The advantage of this mode is that it's quicker to wake from sleep that starting from a shut down.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |