Skip to content

Instantly share code, notes, and snippets.

@nfvs
Created February 15, 2019 07:19
Show Gist options
  • Save nfvs/60316db3c57af8785a95ce037c630bfa to your computer and use it in GitHub Desktop.
Save nfvs/60316db3c57af8785a95ce037c630bfa to your computer and use it in GitHub Desktop.
Prevent macbook from waking up during sleep
# 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