Kernel Panic during sleep

Installed Ventura yesterday afternoon. 2019 iMac 21.5" 4K, 3.2GHz 6-core i7, 32GB DDR4. Every time it goes to sleep: "Your Computer Restarted Because of a Problem." ...What's up with this?

iMac 21.5″, macOS 13.0

Posted on Oct 25, 2022 9:40 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 25, 2022 9:42 AM

Disconnect all third party peripherals before going to sleep. About the only "safe" peripherals are keyboard and mice. If an external hard drive is connected, quit the open programs that might be using it, and dismount the external drive first before going to sleep.


Many peripherals are not familiar with Mac OS low power mode, which remains in effect until you restart the Mac.

Your Energy Saver settings of put hard drive to sleep when possible can trigger it more often.

17 replies
Question marked as Top-ranking reply

Oct 25, 2022 9:42 AM in response to DUG1138

Disconnect all third party peripherals before going to sleep. About the only "safe" peripherals are keyboard and mice. If an external hard drive is connected, quit the open programs that might be using it, and dismount the external drive first before going to sleep.


Many peripherals are not familiar with Mac OS low power mode, which remains in effect until you restart the Mac.

Your Energy Saver settings of put hard drive to sleep when possible can trigger it more often.

Oct 30, 2022 3:17 PM in response to er-minio

Back in early versions of MacOS there was an option in System Preferences, under Energy Saver to "Put hard disks to sleep when possible". For some reason that option isn't available to me anymore in Ventura on this iMac, though I've seen a screenshot from another user here showing that they do have it. I'm thinking maybe it's because all my drives, internal and external are solid state that I don't get the option? Anyway, while I was looking around in System Settings here in Ventura, I found under the Advanced settings for Displays, an option to "Prevent automatic sleeping when the display is off". So, I flipped that on, and now the display turns off on schedule but the kernel panic stopped happening. It's probably costing a few extra pennies a day for the electricity, but at least it doesn't crash.


Oct 27, 2022 4:32 PM in response to DUG1138

Bring it in for service. It may be something has happened with the logic board such as bad memory.

Backup your data before bringing it in for service. and make sure the Energy Saver is off when backing up your data.


Upgrades don't cause kernel panics, but because they may address different parts of memory, may expose a fragility not seen before.

Oct 31, 2022 4:43 AM in response to DUG1138

Back in early versions of MacOS there was an option in System Preferences, under Energy Saver to "Put hard disks to sleep when possible".
sudo pmset disksleep 0

That will turn it off. Setting a value in minutes will turn Hard disk sleep for that amount of time. Default was 10.

If it is a laptop, you can set it for battery (-b) or AC power (-c) or both (-a).

To only disable hard disk sleep on wall charger:

sudo pmset -c disksleep 0


But, that all seems irrelevant now that you found the other setting which works for you.

Oct 25, 2022 1:21 PM in response to DUG1138

The problem is the power the drive is able to manage during sleep. You can supplement drive power with a hub that takes pass through power from a USB-C adapter that is sufficient,


https://www.smklink.com/products/usb-c-multi-port-hub


As for your music library, do you have it on multiple drives, or just one? You never want to have your data in just one place. You never know when that one place might fail.

Oct 25, 2022 1:58 PM in response to DUG1138

Hi doubtful those error mistakes will make any difference.


Like finding a needle in a haystack. Process of elimination can verify if it is reproducible with the drive, versus without.


If it happens every time you go to sleep after opening the music, but does not happen if the drive is disconnect, you can be sure something about the drive was not too happen.


http://www.binaryfruit.com/ DriveDX lets you evaluate the health of both internal and external drives. That can at least show is the problem the cable or the drive itself.

Oct 26, 2022 6:04 AM in response to a brody

Though the issue does seem to be related to external SSD drive that I bought from the Apple Store (unplugging it correlates with no kernel panic during sleep), unplugging the drive is not an acceptable solution. It worked in Catalina. It worked in Big Sur. It worked worked in Monterey. It should work in Ventura. It should just work.

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.

Kernel Panic during sleep

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