Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BadCash

macrumors newbie
Original poster
Mar 10, 2016
7
0
Yesterday I replaced the battery on my MacBook Air 13" mid 2012 with a replacement from a reputable battery reseller, and performed a "calibration". Today I charged it up to 100% and used it during the day, up until 3.30 pm. At that time the battery level was at 38%. I simply left the computer on and turned off the external screen, as I always do, and presumed it would go to sleep, as it always does.

I came back 3 hours later, and the battery was at 0% and OSx had actually shut down, so the computer booted when I connected the charger (after having tried waking it up several times using the power button and touchpad).

What could have happened?

It usually turns off the screen and sleeps when I just leave it, it's set to sleep after 10 minutes in the Energy Saver settings. It was not connected to any WiFi after I left it (I'm sure of it since I'm using my phone as a WiFi hotspot, and I took my phone with me).

The replacement battery seems good, it displays a "maximum charge" of 7346mAh in CoconutBattery, which is more than the advertised 7200mAh. I'm getting roughly 5 hours of WiFi usage on it (the old original battery would give me 2-2.5 hours tops, and it was down to 3800mAh).

Here's the power log from just before I left the computer at 3.30pm, until now:

Code:
2016-07-28 15:11:54 +0200 Assertions              Kernel Idle sleep preventers: -None-         
2016-07-28 15:26:45 +0200 Assertions              Kernel Idle sleep preventers: IODisplayWrangler         
2016-07-28 15:26:45 +0200 Notification            Display is turned on                                                                   
2016-07-28 15:26:45 +0200 Assertions              PID 109(hidd) Created UserIsActive "com.apple.iohideventsystem.queue.tickle" 00:00:00  id:0x0x9000004ef [System: PrevIdle DeclUser kDisp]         
2016-07-28 15:27:15 +0200 Notification            Display is turned off                                                                   
2016-07-28 15:27:15 +0200 Assertions              PID 205(coreaudiod) Summary PreventUserIdleSystemSleep "com.apple.audio.AppleHDAEngineOutput:1B,0,1,1:0.context.preventuseridlesleep" 02:58:13  id:0x0x1000003da [System: PrevIdle DeclUser kDisp]         
2016-07-28 15:27:15 +0200 Assertions              PID 109(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle" 00:00:30  id:0x0x9000004ef [System: PrevIdle DeclUser kDisp]         
2016-07-28 15:27:15 +0200 Assertions              Kernel Idle sleep preventers: -None-         
2016-07-28 15:31:45 +0200 Assertions              PID 109(hidd) TimedOut UserIsActive "com.apple.iohideventsystem.queue.tickle" 00:04:59  id:0x0x9000004ef [System: PrevIdle DeclUser kDisp]         
2016-07-28 18:09:31 +0200 Assertions              PID 205(coreaudiod) TurnedOff PreventUserIdleSystemSleep "com.apple.audio.AppleHDAEngineOutput:1B,0,1,1:0.context.preventuseridlesleep" 05:40:28  id:0x0x1000003da [System: No Assertions]         
Sleep/Wakes since boot:1   Dark Wake Count in this sleep cycle:0
Time stamp                Domain                  Message                                                                        Duration      Delay   
==========                ======                  =======                                                                        ========      =====   
UUID: C77537CF-E2AA-45E3-A114-C94E5EC6B8BF
2016-07-28 18:09:32 +0200 Sleep                   Entering Sleep state due to 'Low Power Sleep': Using Batt (Charge:0%)         
2016-07-28 18:09:34 +0200 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(2278 ms)]         
2016-07-28 18:34:33 +0200 Assertions              PID 109(hidd) Created UserIsActive "com.apple.iohideventsystem.queue.tickle" 00:00:00  id:0x0x90000014b [System: DeclUser kDisp]         
2016-07-28 18:36:04 +0200 :Showing all currently held IOKit power assertions
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     1
   NetworkClientActive            0
Listed by owning process:
   pid 602(softwareupdate_notify_agent): [0x00000069000b01c8] 00:00:18 BackgroundTask named: "com.apple.softwareupdate.NotifyAgentAssertion"
   pid 415(UserEventAgent): [0x000000430001019f] 00:00:56 PreventUserIdleSystemSleep named: "CDSystemMonitor: delay notifications on switch to AC power"
    Timeout will fire in 9 secs Action=TimeoutActionRelease
   pid 47(UserEventAgent): [0x000000430001019e] 00:00:56 PreventUserIdleSystemSleep named: "CDSystemMonitor: delay notifications on switch to AC power"
    Timeout will fire in 9 secs Action=TimeoutActionRelease
   pid 47(UserEventAgent): [0x0000002b000b0156] 00:01:20 BackgroundTask named: "com.apple.periodic-weekly"
    Created for PID: 394.
   pid 47(UserEventAgent): [0x0000002b000b0154] 00:01:20 BackgroundTask named: "com.apple.SoftwareUpdate.Activity"
    Created for PID: 241.
   pid 47(UserEventAgent): [0x00000021000b0148] 00:01:30 BackgroundTask named: "com.apple.mds.2"
    Created for PID: 68.
   pid 47(UserEventAgent): [0x0000001d000b0140] 13792:35:19 BackgroundTask named: "com.apple.metadata.mds.power"
    Created for PID: 68.
   pid 47(UserEventAgent): [0x00000017000b0139] 13792:35:25 BackgroundTask named: "com.apple.metadata.mds_stores.power"
    Created for PID: 225.
   pid 109(hidd): [0x000000210009014b] 00:01:30 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"
    Timeout will fire in 575 secs Action=TimeoutActionRelease
No kernel assertions.
Idle sleep preventers: IODisplayWrangler
 
What does the battery info in the profiler say?

Were/are there any processes running that could use a lot of power?

You mentioned it's not an original Apple battery. There could always be an issue with the battery itself leading to your afore-mentioned issues.

Download and run Etrecheck and post the result here as a code. Maybe it gives more info about what could be the issue.

Have you tried an SMC reset? Do this after you've tried everything else and it didn't solve the issue.
 
Last edited:
What does the battery info in the profiler say?

Were/are there any processes running that could use a lot of power?

You mentioned it's not an original Apple battery. There could always be an issue with the battery itself leading to your afore-mentioned issues.

Download and run Etrecheck and post the result here as a code. Maybe it gives more info about what could be the issue.

Have you tried an SMC reset? Do this after you've tried everything else and it didn't solve the issue.

When researching this problem I came across people who have had all sorts of things preventing sleep, everything from non-finished printer queues to applications. In the process, I learned that ActivityMonitor actually has a column called "Preventing Sleep" in the Energy view. I also learned that pmset -g assertions is a useful command in the Terminal!

I've noticed that Chrome tends to prevent sleep sometimes (even when no audio/video is playing), depending on what tabs are open. But then, shouldn't that info be in the power log?


Output from Etrecheck:

(Note that I installed SleepMonitor after the problem occurred!)



EtreCheck version: 2.9.13 (267)

Report generated 2016-07-29 14:55:54

Download EtreCheck from https://etrecheck.com

Runtime 1:45

Performance: Excellent



Click the [Support] links for help with non-Apple products.

Click the [Details] links for more information about that line.

Click the [Check files] link for help with unknown files.



Problem: Other problem



Hardware Information:

MacBook Air (13-inch, Mid 2012)

[Technical Specifications] - [User Guide] - [Warranty & Service]

MacBook Air - model: MacBookAir5,2

1 1,8 GHz Intel Core i5 CPU: 2-core

8 GB RAM Not upgradeable

BANK 0/DIMM0

4 GB DDR3 1600 MHz ok

BANK 1/DIMM0

4 GB DDR3 1600 MHz ok

Bluetooth: Good - Handoff/Airdrop2 supported

Wireless: en0: 802.11 a/b/g/n

Battery: Health = Normal - Cycle count = 4


Video Information:

Intel HD Graphics 4000

Color LCD 1440 x 900

DELL U2311H 1920 x 1080 @ 60 Hz


System Software:

OS X El Capitan 10.11.5 (15F34) - Time since boot: about one day


Disk Information:

Samsung SSD 850 EVO M.2 500GB disk0 : (500,11 GB) (Solid State - TRIM: Yes)

EFI (disk0s1) <not mounted> : 210 MB

Macintosh HD (disk0s2) / : 499.25 GB (237.69 GB free)

Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB


USB Information:

Apple Inc. FaceTime HD Camera (Built-in)

Apple Card Reader

Apple Inc. Apple Internal Keyboard / Trackpad

Apple Inc. BRCM20702 Hub

Apple Inc. Bluetooth USB Host Controller


Thunderbolt Information:

Apple Inc. thunderbolt_bus


Configuration files:

/etc/hosts - Count: 40


Gatekeeper:

Mac App Store and identified developers


Unknown Files:

/Library/LaunchDaemons/6rbGjhc.plist

/Library/Application Support/DataFileHost/GFtUTtSg/DataFileHost

/Library/LaunchDaemons/uk.co.dssw.sleepmonitor.agent.plist

/Library/PrivilegedHelperTools/uk.co.dssw.sleepmonitor.agent /Library/PrivilegedHelperTools/uk.co.dssw.sleepmonitor.agent

2 unknown files found. [Check files]


Kernel Extensions:

/Applications/InsomniaX.app

[not loaded] net.semaja2.kext.insomnia (2.1.7 - SDK 10.9 - 2016-04-27) [Support]



/Applications/Parallels Desktop.app

[not loaded] com.parallels.kext.hypervisor (10.1.0 28600 - SDK 10.7 - 2016-04-11) [Support]

[not loaded] com.parallels.kext.netbridge (10.1.0 28600 - SDK 10.7 - 2016-04-11) [Support]

[not loaded] com.parallels.kext.usbconnect (10.1.0 28600 - SDK 10.7 - 2016-04-11) [Support]

[not loaded] com.parallels.kext.vnic (10.1.0 28600 - SDK 10.7 - 2016-04-11) [Support]



/Applications/Tunnelblick.app

[not loaded] net.tunnelblick.tap (20141104 (Tunnelblick build 4544) Unsigned - 2016-03-24) [Support]

[not loaded] net.tunnelblick.tun (20141104 (Tunnelblick build 4544) Unsigned - 2016-03-24) [Support]



/Library/Application Support/VirtualBox

[loaded] org.virtualbox.kext.VBoxDrv (5.0.14 - 2016-01-29) [Support]

[loaded] org.virtualbox.kext.VBoxNetAdp (5.0.14 - 2016-01-29) [Support]

[loaded] org.virtualbox.kext.VBoxNetFlt (5.0.14 - 2016-01-29) [Support]

[loaded] org.virtualbox.kext.VBoxUSB (5.0.14 - 2016-01-29) [Support]



/Library/Extensions

[loaded] com.intel.kext.intelhaxm (6.0.1 - SDK 10.9 - 2016-06-05) [Support]

[loaded] com.paragon-software.kext.VDMounter (4.2 - SDK 10.8 - 2016-06-05) [Support]



/System/Library/Extensions

[not loaded] com.motorola-mobility.driver.MotMobileUSB (1.2.2 - SDK 10.5 - 2016-07-29) [Support]

[not loaded] com.shapeservices.msm.driver.MSMFramebuffer (3.3 - SDK 10.6 - 2016-07-29) [Support]

[not loaded] com.shapeservices.msm.driver.MSMVideoDevice (3.3 - SDK 10.6 - 2016-07-29) [Support]

[not loaded] com.sony.driver.dsccamFirmwareUpdaterType00 (1.1.0.10240 - SDK 10.6 - 2016-07-29) [Support]



/System/Library/Extensions/MotMobileUSB.kext/Contents/PlugIns

[not loaded] com.motorola-mobility.driver.MotMobileMS (1.0.0 - SDK 10.5 - 2012-06-20) [Support]

[not loaded] com.motorola-mobility.driver.MotMobileMTP (1.2.2 - SDK 10.5 - 2012-06-20) [Support]

[not loaded] com.motorola-mobility.driver.MotMobileUSBLAN (1.2.2 - SDK 10.5 - 2012-06-20) [Support]

[not loaded] com.motorola-mobility.driver.MotMobileUSBLANMerge (1.2.2 - SDK 10.5 - 2012-06-20) [Support]

[not loaded] com.motorola-mobility.driver.MotMobileUSBSwch (1.2.2 - SDK 10.5 - 2012-06-20) [Support]



Startup Items:

ChmodBPF: Path: /Library/StartupItems/ChmodBPF

HWNetMgr: Path: /Library/StartupItems/HWNetMgr

HWPortDetect: Path: /Library/StartupItems/HWPortDetect

StartOuc: Path: /Library/StartupItems/StartOuc

Startup items are obsolete in OS X Yosemite


System Launch Agents:

[not loaded] 8 Apple tasks

[loaded] 153 Apple tasks

[running] 77 Apple tasks


System Launch Daemons:

[failed] com.apple.csrutil.report.plist

[not loaded] 44 Apple tasks

[loaded] 150 Apple tasks

[running] 96 Apple tasks


Launch Agents:

[not loaded] com.adobe.AAM.Updater-1.0.plist (2013-07-12) [Support]

[failed] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a...plist (2016-07-13) [Support]

[loaded] com.google.keystone.agent.plist (2016-07-12) [Support]

[not loaded] com.maintain.PurgeInactiveMemory.plist (2016-05-06) [Support]

[not loaded] com.maintain.Restart.plist (2016-05-06) [Support]

[not loaded] com.maintain.ShutDown.plist (2016-05-06) [Support]

[running] com.maintain.SystemEvents.plist (2016-05-06) [Support]

[loaded] com.motorola.MDMUpdater.plist (2012-09-24) [Support]

[running] com.motorola.motohelper.plist (2012-09-24) [Support]

[loaded] com.motorola.motohelperUpdater.plist (2012-09-24) [Support]

[loaded] com.oracle.java.Java-Updater.plist (2014-05-19) [Support]

[running] com.sony.SonyAutoLauncher.agent.plist (2013-12-05) [Support]

[running] com.sony.WirelessAutoImportLauncher.agent.plist (2012-11-15) [Support]

[loaded] org.freedesktop.dbus-session.plist (2014-12-14) [Support]

[loaded] org.macosforge.xquartz.startx.plist (2015-10-16) [Support]

[failed] org.pqrs.KeyRemap4MacBook.server.plist (2013-09-23) [Support]


Launch Daemons:

[running] 6rbGjhc.plist (2015-08-10) [Support]

[loaded] ag.shape.MSMToolHelper.plist (2012-03-05) [Support]

[loaded] com.adobe.ARMDC.Communicator.plist (2016-07-13) [Support]

[loaded] com.adobe.ARMDC.SMJobBlessHelper.plist (2016-07-13) [Support]

[failed] com.adobe.fpsaud.plist (2016-06-13) [Support]

[loaded] com.barebones.authd.plist (2016-04-06) [Support]

[loaded] com.boxcryptor.BCFS.KextLoaderHelper.plist (2015-03-27) [Support]

[loaded] com.google.keystone.daemon.plist (2016-07-12) [Support]

[loaded] com.intel.haxm.plist (2015-11-16) [Support]

[not loaded] com.maintain.HideSpotlightMenuBarIcon.plist (2016-05-06) [Support]

[running] com.motorola-mobility.mmcfgd.plist (2012-01-17) [Support]

[loaded] com.oracle.java.Helper-Tool.plist (2014-05-19) [Support]

[loaded] com.paragon-software.vdmounter.plist (2015-09-01) [Support]

[loaded] com.sharpcast.xfsmond.plist (2013-12-24) [Support]

[running] com.siber.gs-server.plist (2016-04-12) [Support]

[not loaded] com.tenablesecurity.nessusd.plist (2015-03-27) [Support]

[loaded] net.tunnelblick.tunnelblick.tunnelblickd.plist (2015-06-15) [Support]

[not loaded] org.freedesktop.dbus-system.plist (2014-12-14) [Support]

[loaded] org.macosforge.xquartz.privileged_startx.plist (2015-10-16) [Support]

[failed] org.pqrs.KeyRemap4MacBook.load.plist (2013-09-23) [Support]

[not loaded] org.virtualbox.startup.plist (2016-01-29) [Support]

[failed] se.ovpn.ovpn-daemon.plist (2016-02-05) [Support]

[running] uk.co.dssw.sleepmonitor.agent.plist (2016-07-28) [Support]


User Launch Agents:

[running] com.spotify.webhelper.plist (2016-06-16) [Support]

[loaded] net.tunnelblick.tunnelblick.LaunchAtLogin.plist (2014-12-01) [Support]

[not loaded] org.virtualbox.vboxwebsrv.plist (2016-01-29) [Support]


User Login Items:

Flux Application Hidden (~/Applications/Flux.app)

iTunesHelper Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

Android File Transfer Agent Application Hidden (~/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)

Google Chrome Application Hidden (/Applications/Google Chrome.app)

HyperSwitch Application Hidden (/Applications/HyperSwitch.app)

startMAMP Application Hidden (/Applications/startMAMP.app)

GoodSync Application Hidden (/Applications/GoodSync.app)


Other Apps:

[running] com.bahoom.HyperSwitch.54432

[loaded] com.coconut-flavour.coconutBattery-Helper

[running] com.coconut-flavour.coconutBattery.666912

[loaded] com.google.Chrome.53152

[running] com.google.android.mtpagent.90592

[running] com.openssh.sshd.788AACC6-BFE1-4977-BCDD-B0D5AE1BACBD

[running] com.openssh.sshd.D2A0D60B-A00B-40D4-AA72-2E9A2D850553

[running] com.openssh.sshd.E5932188-692C-4A1C-86A2-EC96900E95D6

[running] com.sublimetext.3.70432

[running] net.tunnelblick.tunnelblick.72672

[running] org.herf.Flux.88032

[running] uk.co.dssw.sleepmonitor.636512

[loaded] 428 Apple tasks

[running] 213 Apple tasks


Internet Plug-ins:

JavaAppletPlugin: Java 8 Update 101 build 13 (2016-07-27) Check version

o1dbrowserplugin: 5.41.3.0 - SDK 10.8 (2015-12-16) [Support]

Google Earth Web Plug-in: 7.1 (2015-09-13) [Support]

Default Browser: 601 - SDK 10.11 (2016-05-29)

Unity Web Player: UnityPlayer version 5.3.5f1 - SDK 10.6 (2016-05-08) [Support]

AdobeAAMDetect: AdobeAAMDetect 1.0.0.0 - SDK 10.6 (2013-07-12) [Support]

FlashPlayer-10.6: 22.0.0.192 - SDK 10.9 (2016-06-25) [Support]

AdobePDFViewerNPAPI: 15.017.20050 - SDK 10.11 (2016-07-13) [Support]

Silverlight: 5.1.40416.0 - SDK 10.6 (2015-06-15) [Support]

QuickTime Plugin: 7.7.3 (2016-05-29)

Flash Player: 22.0.0.192 - SDK 10.9 (2016-06-25) Outdated! Update

googletalkbrowserplugin: 5.41.3.0 - SDK 10.8 (2015-12-11) [Support]

AdobePDFViewer: 15.017.20050 - SDK 10.11 (2016-07-13) [Support]

DirectorShockwave: 12.1.8r158 - SDK 10.6 (2015-04-17) [Support]



User internet Plug-ins:

iGetterScriptablePlugin: 2.9.2 (2014-01-24) [Support]

Picasa: 1.0 - SDK 10.6 (2014-03-05) [Support]

Google Earth Web Plug-in: 7.1 (2013-10-07) [Support]



Safari Extensions:

AdBlock - BetaFish, Inc. - https://getadblock.com (2016-01-02)

iGetter Extension - Presenta Ltd. - http://www.igetter.net/ (2013-06-22)

LastPass - LastPass - https://lastpass.com (2016-07-29)

Open in Internet Explorer - Parallels - http://www.parallels.com (2016-04-11)


3rd Party Preference Panes:

Flash Player (2016-06-13) [Support]

FUSE for OS X (OSXFUSE) (2015-02-07) [Support]

Java (2016-07-27) [Support]

Nessus.Preferences (2015-03-27) [Support]

Paragon NTFS for Mac ® OS X (2015-04-09) [Support]

PostgreSQL (2016-06-04) [Support]


Time Machine:

Skip System Files: NO

Mobile backups: ON

Auto backup: YES

Volumes being backed up:

Macintosh HD: Disk size: 499.25 GB Disk used: 261.56 GB

Destinations:

Time Machine [Local]

Total size: 500.00 GB

Total number of backups: 12

Oldest backup: 14/04/16 04:10

Last backup: 28/07/16 23:08

Size of backup disk: Too small

Backup size 500.00 GB < (Disk used 261.56 GB X 3)


Top Processes by CPU:

10% WindowServer

3% kernel_task

2% fontd

0% Google Chrome

0% syncdefaultsd


Top Processes by Memory:

2.39 GB Google Chrome Helper(14)

834 MB kernel_task

401 MB Google Chrome

328 MB Finder

279 MB mds_stores


Virtual Memory Information:

361 MB Free RAM

7.65 GB Used RAM (2.09 GB Cached)

16 MB Swap Used


Diagnostics Information:

Jul 29, 2016, 02:11:52 AM /Library/Logs/DiagnosticReports/firefox_2016-07-29-021152_[redacted].cpu_resource.diag [Details]

/Applications/TorBrowser.app/Contents/MacOS/firefox

Jul 28, 2016, 10:40:25 PM /Library/Logs/DiagnosticReports/backupd_2016-07-28-224025_[redacted].cpu_resource.diag [Details]

/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd

Jul 28, 2016, 06:34:04 PM Self test - passed

Jul 27, 2016, 12:25:34 PM /Library/Logs/DiagnosticReports/Disk Inventory X_2016-07-27-122534_[redacted].cpu_resource.diag [Details]

/Applications/Disk Inventory X.app/Contents/MacOS/Disk Inventory X

Jul 26, 2016, 09:53:53 PM ~/Library/Logs/DiagnosticReports/SpotlightNetHelper_2016-07-26-215353_[redacted].crash

/System/Library/PrivateFrameworks/ParsecUI.framework/Versions/A/Support/SpotlightNetHelper.app/Contents/MacOS/SpotlightNetHelper

 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.