Skip to content

Instantly share code, notes, and snippets.

@phwd
Created June 8, 2024 02:06
Show Gist options
  • Save phwd/1ca5abe6fe3a5a730f36f9ef179d43b3 to your computer and use it in GitHub Desktop.
Save phwd/1ca5abe6fe3a5a730f36f9ef179d43b3 to your computer and use it in GitHub Desktop.
Macbook shutdown when closed lid
pmset -g log | grep ShutdownCause
ShutdownCause SMC shutdown cause: -82:
# https://github.com/apple-oss-distributions/PowerManagement/
# https://georgegarside.com/blog/macos/shutdown-causes/
"Thermal shutdown for overtemp", -81
"Proximity temperature exceeds limits" -86
Fan always spin with CPU intensive memory intensive activity
So my guess for 82 is a shutdown because temperature limit is exceeeded
Poor man fix, would be to shutdown or kill -9 any activity that hogs intensive activity
Before closing lid
Typical offenders - check activity monitor
* mds_stores - Spotlight indexing // makes sense if did a big git update of files before closing lid
* Chrome - self explanatory
* zsh - tends to conflict with an apple update somehow and ends up eating CPU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment