

Status=$(networksetup getairportpower en0 | grep -Ei "On$")Įcho "`date` - WiFi is On. This solution does the same, but automatically, which makes it a good solution for the battery drain. Please note that in the original question of mine I said that I didn't want to disable WiFi constantly when putting the Mac to sleep. You can download a script that installs SleepWatcher and the scripts at a blog post of mine (No ads located on the page). When the Macbook wakes up again, I enable WiFi again: /usr/sbin/networksetup setairportpower en0 on When the macbook goes to sleep, I execute the following command to disable WiFi: /usr/sbin/networksetup setairportpower en0 off I used SleepWatcher v2.2 () to run 2 scripts at wake and sleep interrupts. The solution was to disable Airport (WiFi) when the Macbook was sleeping. I didn't found the exact cause of the problem, but I did found a solution which will avoid massive battery drains in sleep mode. Then change these key values with a text editor so that they match these settings: TCPKeepAliveDuringSleep Right click on the file > get info, and change permission for 'Everyone' to read and write (or edit this using sudo chmod a+rw *.plist). whenever your Macintosh computer wakes from sleep, download and install SleepWatcher.
#Download sleepwatcher mac for mac os x
To get your board ID and then look for a file in the following directory that has your board ID as the filename (*.plist file) /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources The script is currently tailored for Mac OS X including a Growl. You have to turn SIP off, then do ioreg -l | grep board-id

Please report it to them as well since any changes you make will be probably reverted with a system update.įrom here: MacBook Pro 13 with Retina display consumes 10% battery overnight with the lid closed, is this normal? I reported the bug to Apple so hopefully they'll fix it sometime soon. This required disabling SIP and changing a system setting.
