From 84c97e2d5e3d0b9bd4bb408ad08ff3a749b82f59 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 1 Feb 2025 16:27:38 +0100 Subject: [PATCH] chore(osx): prevent m-cpu laptops from turning on on lid open or power connect --- knowledge base/mac os x/README.md | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/knowledge base/mac os x/README.md b/knowledge base/mac os x/README.md index 6c904af..e110aab 100644 --- a/knowledge base/mac os x/README.md +++ b/knowledge base/mac os x/README.md @@ -4,6 +4,7 @@ 1. [Taking screenshots](#taking-screenshots) 1. [Record the screen](#record-the-screen) 1. [Hidden settings](#hidden-settings) + 1. [Prevent Apple silicon laptops from turning on when opening their lid or connecting to power](#prevent-apple-silicon-laptops-from-turning-on-when-opening-their-lid-or-connecting-to-power) 1. [Image manipulation](#image-manipulation) 1. [Resize PDF files](#resize-pdf-files) 1. [Manage tags](#manage-tags) @@ -208,6 +209,44 @@ Use Quicktime Player to capture an area or the full screen by opening the applic See the [`defaults`][defaults] command. +### Prevent Apple silicon laptops from turning on when opening their lid or connecting to power + +Mac laptops with Apple silicon automatically turn on and start up when one opens their lid or connects them to power. + +From macOS Sequoia 15, one can change this behavior.
+This will **not** affect one's ability to use the keyboard or trackpad to turn on the Mac. + +
+ Prevent startup when opening the lid or connecting to power + +```sh +sudo nvram BootPreference=%00 +``` + +
+
+ Prevent startup only when opening the lid + +```sh +sudo nvram BootPreference=%01 +``` + +
+
+ Prevent startup only when connecting to power + +```sh +sudo nvram BootPreference=%02 +``` + +
+ +Undo any of the previous commands and reenable automatic startup when opening the lid or connecting to power: + +```sh +sudo nvram -d BootPreference +``` + ## Image manipulation Use Preview to perform basic image manipulation through the GUI.
@@ -545,6 +584,7 @@ your Mac, or after your Mac begins to restart. Keep holding until the described - [Remap Home and End Keys?] - [trusktr's default keybindings] - [Improve docker volume performance on MacOS with a RAM disk] +- [Prevent a Mac laptop from turning on when opening its lid or connecting to power] [compress a pdf in preview on mac]: https://support.apple.com/guide/preview/compress-a-pdf-prvw1509/mac [mac startup key combinations]: https://support.apple.com/en-us/HT201255 +[prevent a mac laptop from turning on when opening its lid or connecting to power]: https://support.apple.com/en-us/120622 [resize, rotate, or flip an image in preview on mac]: https://support.apple.com/guide/preview/resize-rotate-or-flip-an-image-prvw2015/11.0/mac/13.0