Created
February 15, 2019 07:19
-
-
Save nfvs/60316db3c57af8785a95ce037c630bfa to your computer and use it in GitHub Desktop.
Prevent macbook from waking up during sleep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, disable SIP | |
# Boot into recovery with CMD+R | |
csrutil disable | |
# Reboot... | |
# Get board ID | |
BOARD_ID=`ioreg -l | grep board-id | sed 's/.*<"\(.*\)">.*/\1/'` | |
# Modify IOPlatformPlygin ktext | |
vim /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources/${BOARD_ID}.plist | |
# TCPKeepAliveDuringSleep = false | |
# NotificationWake = false | |
# DNDWhileDisplaySleeps = true | |
# DarkWakeBackgroundTasks = 0 | |
# Re-enable SIP | |
# Boot into recovery with CMD+R | |
csrutil enable | |
# Reboot... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment