Link to home
Create AccountLog in
Avatar of Kyle Santos
Kyle SantosFlag for United States of America

asked on

Macbook has frequent sleep / awake failures

Macbook Pro
15-inch, Mid 2012
OS X El Capitan
Processor 2.3GHz Intel Core i7
Memory 16GB
Graphics Intel HD Graphics 4000 1024 MB
240GB  SSD

Anyone know why this happens?  
How can I prevent this from happening?

I have tried PRAM and SMC resets in the past.
This has happened on multiple OSX versions: Mountain Lion, Mavericks, Yosemite and El Capitan.  I'm assuming this has to be more of a hardware failure than software.  In the time that I have owned this macbook I have replaced the memory and hard drive.  I hardly ever restart the machine.  I usually have 10 tasks open all the time.

After it happens I get a message that asks if I want to ignore the problem or send to Apple.  I send to Apple.
Avatar of Tyler Brooks
Tyler Brooks
Flag of Canada image

When you say it has occured on multiple OS versions, did you upgrade the OS or do a fresh install? Or have you done a fresh OS install at some point while you've had the MacBook?
Avatar of Kyle Santos

ASKER

Always updated.  I've never done a fresh install because I never thought it was necessary like a Windows machine.
Typically I'd agree with a Mac but if you've only done upgrades to it the problem could be a software issue that has persisted through the upgrades. As much as I hate to suggest it, the only way to entirely eliminate software as the cause would be to restore it to factory.

You've replaced the only two components I've ever found to be practical to replace in a Macbook, and done the PRAM and SMC resets, other than going into disk utility and running some checks there you've basically performed all the hard ware trouble shooting you can. It wouldn't hurt to start rebooting the machine more often, but I doubt that that is the root cause of this issue.
What's that message? You happen to have a screenshot?
@Tyler,
I was afraid of that.

@Gerwin,
No. :(

I went to Console and looked for 'failure' in the system log queries, but nothing related to what I saw.
I never needed a fresh install with a Mac but you may need one after all.

I would format the hard drive before you install / restore from the backup you made before you start.
Do you or Tyler have recommendations on kb's I can follow to do something like this?
SOLUTION
Avatar of Tyler Brooks
Tyler Brooks
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
So is your problem that the Mac does not awake from sleep and you have to do a hard shutdown?

Try turning off the hibernate mode with this terminal command:

sudo pmset -a hibernate mode 0

See this link for details:  http://www.markc.me.uk/blog/files/OSXSafeSleep.html
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
I backed up my macbook in Time Machine (I usually do this before I update to another OSX) and updated to Sierra OSX.  The same sleep awake failure appears to have happened.  This time I grabbed a screenshot.

eg

User generated image
I will look into the other suggestions too, thanks!
I have not had time to try the other suggestions.  I will try them when I have time this weekend.
Unfortunately the screenshot doesn't tell us anything. Please post the Etrecheck report when you get a chance.
Please post the Etrecheck report when you get a chance.
Is that from the console?  I don't know what that is.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
EtreCheck version: 3.1.2 (334)
Report generated 2016-11-04 13:21:53
Download EtreCheck from https://etrecheck.com
Runtime 1:48
Performance: Excellent

Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Remove] links to remove adware.

Problem: Other problem
Description:
sleep awake failure

Hardware Information: ⓘ
    MacBook Pro (15-inch, Mid 2012) 
    [Technical Specifications] - [User Guide] - [Warranty & Service]
    MacBook Pro - model: MacBookPro9,1
    1 2.3 GHz Intel Core i7 (i7-3615QM) CPU: 4-core
    16 GB RAM Upgradeable - [Instructions]
        BANK 0/DIMM0
            8 GB DDR3 1600 MHz ok
        BANK 1/DIMM0
            8 GB DDR3 1600 MHz ok
    Bluetooth: Good - Handoff/Airdrop2 supported
    Wireless:  en1: 802.11 a/b/g/n
    Battery: Health = Normal - Cycle count = 776

Video Information: ⓘ
    Intel HD Graphics 4000
        Color LCD 1440 x 900
    NVIDIA GeForce GT 650M - VRAM: 512 MB

System Software: ⓘ
    macOS Sierra  10.12 (16A323) - Time since boot: less than an hour

Disk Information: ⓘ
    OWC Mercury Electra 6G SSD disk0 : (240.06 GB) (Solid State - TRIM: No)
    [Show SMART report]
        EFI (disk0s1) <not mounted> : 210 MB 
        Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB 
        OWC (disk1) /  [Startup]: 238.83 GB (152.56 GB free)
            Core Storage: disk0s2 239.20 GB Online

    HL-DT-ST DVDRW  GS41N   ()

USB Information: ⓘ
    Apple Inc. FaceTime HD Camera (Built-in) 
    Apple Inc. Apple Internal Keyboard / Trackpad 
    Apple Computer, Inc. IR Receiver 
    Apple Inc. BRCM20702 Hub 
        Apple Inc. Bluetooth USB Host Controller 

Thunderbolt Information: ⓘ
    Apple Inc. thunderbolt_bus

Gatekeeper: ⓘ
    Mac App Store and identified developers

Adware: ⓘ
    ~/Library/LaunchAgents/com.spigot.ApplicationManager.plist
    1 adware file found. [Remove]

Kernel Extensions: ⓘ
        /Library/Application Support/Avast/components/fileshield/unsigned
    [loaded]    com.avast.AvastFileShield (3.0.0 - SDK 10.9 - 2016-09-23) [Support]

        /Library/Application Support/Avast/components/proxy/unsigned
    [loaded]    com.avast.PacketForwarder (2.1 - SDK 10.11 - 2016-09-23) [Support]

System Launch Agents: ⓘ
    [not loaded]    7 Apple tasks
    [loaded]    164 Apple tasks
    [running]    100 Apple tasks

System Launch Daemons: ⓘ
    [not loaded]    40 Apple tasks
    [loaded]    158 Apple tasks
    [running]    106 Apple tasks

Launch Agents: ⓘ
    [running]    com.avast.secureline.update-agent.plist (2016-10-31) [Support]
    [loaded]    com.avast.secureline.userinit.plist (2016-10-31) [Support]
    [running]    com.avast.update-agent.plist (2016-09-23) [Support]
    [loaded]    com.avast.userinit.plist (2016-09-23) [Support]
    [loaded]    com.google.keystone.agent.plist (2016-08-24) [Support]
    [running]    org.chromium.chromoting.plist (2016-06-20) [Support]

Launch Daemons: ⓘ
    [loaded]    com.adobe.fpsaud.plist (2016-04-15) [Support]
    [loaded]    com.avast.init.plist (2016-09-23) [Support]
    [loaded]    com.avast.secureline.init.plist (2016-10-31) [Support]
    [loaded]    com.avast.secureline.uninstall.plist (2016-10-31) [Support]
    [loaded]    com.avast.secureline.update.plist (2016-10-31) [Support]
    [loaded]    com.avast.uninstall.plist (2016-09-23) [Support]
    [loaded]    com.avast.update.plist (2016-09-23) [Support]
    [loaded]    com.bombich.ccchelper.plist (2015-11-04) [Support]
    [loaded]    com.google.keystone.daemon.plist (2016-09-02) [Support]
    [loaded]    com.paragon-software.camptunex.helper.plist (2016-03-29) [Support]
    [loaded]    com.paragon-software.camptunex.installer.plist (2016-03-29) [Support]

User Launch Agents: ⓘ
    [loaded]    com.avast.home.userinit.plist (2016-09-23) [Support]
    [loaded]    com.avast.secureline.home.userinit.plist (2016-10-31) [Support]
        /usr/bin/open
    [failed]    com.spigot.ApplicationManager.plist (2015-11-18) Adware!  [Remove]
    [running]    com.spotify.webhelper.plist (2016-11-04) [Support]

User Login Items: ⓘ
    iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Canon IJ Network Scanner Selector EX    Application Hidden (/Applications/Canon Utilities/IJ Network Scanner Selector EX/Canon IJ Network Scanner Selector EX.app)
    Spotify    Application Hidden (/Applications/Spotify.app)

Internet Plug-ins: ⓘ
    Silverlight: 5.1.30214.0 - SDK 10.6 (2015-11-04) [Support]
    FlashPlayer-10.6: 21.0.0.226 - SDK 10.6 (2016-04-21) [Support]
    QuickTime Plugin: 7.7.3 (2016-09-13)
    Flash Player: 21.0.0.226 - SDK 10.6 (2016-04-21) Outdated! Update
    MeetingJoinPlugin: Unknown - SDK 10.6 (2015-11-04) [Support]

Safari Extensions: ⓘ
    Avast Online Security - AVAST Software - http://www.avast.com (2014-10-21)

3rd Party Preference Panes: ⓘ
    remoting_host_prefpane (2016-07-12) [Support]
    Flash Player (2016-04-15) [Support]

Time Machine: ⓘ
    Mobile backups: OFF
    Auto backup: NO - Auto backup turned off
    Volumes being backed up:
        OWC: Disk size: 238.83 GB Disk used: 86.26 GB
    Destinations:
        MBFAT [Local] 
        Total size: 749.81 GB 
        Total number of backups: 8 
        Oldest backup: 12/27/15, 6:46 PM 
        Last backup: 10/22/16, 11:44 AM 
        Size of backup disk: Excellent
            Backup size 749.81 GB > (Disk size 238.83 GB X 3)

Top Processes by CPU: ⓘ
        10%   	kernel_task
         7%   	WindowServer
         6%   	launchd
         5%   	hidd
         2%   	com.avast.proxy

Top Processes by Memory: ⓘ
    1.39 GB   	softwareupdated
    1.01 GB   	kernel_task
    639 MB    	Google Chrome Helper(6)
    557 MB    	mdworker(23)
    246 MB    	Spotify Helper(2)

Virtual Memory Information: ⓘ
    9.33 GB   	Available RAM
    1.66 GB   	Free RAM
    6.67 GB   	Used RAM
    7.67 GB   	Cached files
    0 B       	Swap Used

Diagnostics Information: ⓘ
    Nov 4, 2016, 01:15:54 PM    Self test - passed

Open in new window

I don't see anything that specifically points to a cause of your problem, but you do have some Spigot adware that you should remove. You can use the freeware MalwareBytes for Mac to remove it:  https://www.malwarebytes.com/antimalware/mac/

Also, I see you are using Spotify and there have been all sorts of reports of problems with it. I would try uninstalling it temporarily to see if that makes a difference.

If the problem continues, perhaps you can post the last 20 or so lines in Console immediately before the restart after the crash.
Spigot adware that you should remove.
Done.  Thanks for that.
Spotify is removed.

If the problem continues, perhaps you can post the last 20 or so lines in Console immediately before the restart after the crash.
I will try to get this.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
OK I uninstalled it for now.  Will report back my findings.
After several days, the problem has not been exhibited.  Removing Avast appears to have been the Best Solution.  Thanks for the additional assisted solutions too!
All,

Unfortunately, there is still a problem.  Your help is appreciated.  I have asked a new question based off this one.
https://www.experts-exchange.com/questions/28994647/Macbook-has-frequent-sleep-awake-failures-part-2-status-0x40003-Code-0x100002000014-Stackshot-reason-Watchdog.html