Previous 1 2 Next 19 Replies Latest reply: Nov 18, 2013 7:02 PM by TheRedBaron1000
pavelll Level 1 Level 1 (0 points)

i noticed the following problem with my MBP 8,1 running 10.7.2 — automatic sleep just doesn’t happen. Since I usually put my Macbook to sleep manually before leaving the desk etc. I just noticed this issue and can’t really pinpoint it to specific updates.

Closing the lid works, selecting “sleep” from the Apple menu works. The only way to put my MBP to sleep automatically is currently PleaseSleep, which works fine.

Here’s pmset -g:

  pmset -g

Active Profiles:

Battery Power       1

AC Power        -1*

Currently in use:

standbydelay   4200

standby    0

womp       1

halfdim    1

panicrestart   157680000

hibernatefile  /var/vm/sleepimage

sms        1

networkoversleep   0

disksleep  10

sleep      10

hibernatemode  3

ttyskeepawake  1

displaysleep   3

acwake     0

lidwake    1

 

As you can see, no process is preventing sleep.

 

 

Here’s pmset -g assertions:

 

 

pmset -g assertions

25.12.11 03:05:34 MEZ  

Assertion status system-wide:

   ChargeInhibit                           0

   PreventUserIdleDisplaySleep             0

   PreventUserIdleSystemSleep              0

   NoRealPowerSources_debug                0

   CPUBoundAssertion                       0

   EnableIdleSleep                         1

   PreventSystemSleep                      0

   DisableInflow                           0

   DisableLowPowerBatteryWarnings          0

   ExternalMedia                           0

 

 

Kernel Assertions: 0x0004

* Kernel Assertion ID = 500

   Created At = 01.01.70 01:03:17 MEZ  

   Modified At = 25.12.11 02:46:14 MEZ  

   Owner ID = 0xffffff800b664000

   Level = 255

   Assertions Set = None (4)

 

 

* Kernel Assertion ID = 501

   Created At = 01.01.70 01:03:21 MEZ  

   Modified At = 01.01.70 01:00:00 MEZ  

   Owner ID = 0xffffff800b674000

   Level = 0

   Assertions Set = None (4)

 

 

* Kernel Assertion ID = 502

   Created At = 01.01.70 01:05:31 MEZ  

   Modified At = 25.12.11 02:38:13 MEZ  

   Owner ID = 0xffffff800b704200

   Level = 0

   Assertions Set = None (32)


 

 

Any ideas? I tried resetting the SMC, to no avail. Thanks in advance!


MacBook Pro, Mac OS X (10.7.2)
  • Linc Davis Level 10 Level 10 (173,925 points)

    Turn off all sharing services and try again.

  • pavelll Level 1 Level 1 (0 points)

    Sharing and Bluetooth -- apparently another possible cause of insomnia -- is off.

  • Linc Davis Level 10 Level 10 (173,925 points)

    Please read this whole message before doing anything.

     

    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

     

    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Boot in safe mode. First, disconnect all wired peripherals except keyboard, mouse, and monitor, if applicable, and remove all aftermarket expansion cards. The instructions provided by Apple are as follows:

     

    • Be sure your Mac is shut down.
    • Press the power button.
    • Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    • Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).

     

    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

     

    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including your login items.

     

    Don't launch any applications. Test sleep. Same problem?

     

    After testing, reboot as usual (i.e., not in safe mode.)

  • pavelll Level 1 Level 1 (0 points)

    Just gave it a try, and automatic sleep works in safe mode. What's next?

  • Linc Davis Level 10 Level 10 (173,925 points)

    Please read this whole message before doing anything.

     

    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

     

    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software -- potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions -- they’re easy to carry out and won’t change anything on your Mac.

     

    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.

     

    Below are four lines of text in monospaced type, which are UNIX shell commands. They’re harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of running these commands, search this site for other discussions in which they’ve been used without any report of ill effects.

     

    Some of the commands will line-wrap in your browser, but each one is really just a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.

     

    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.

     

    To begin, launch the Terminal application; e.g., by entering the first few letters of its name in a Spotlight search. A text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.

     

    Step 1

     

    Copy or drag -- do not type -- the line below into the Terminal window, then press return:

     

    kextstat -kl | awk ' !/com\.apple/ { print $6 $7 } '
    

     

    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.)

     

    Step 2

     

    Repeat with this line:

     

    sudo launchctl list | sed 1d | awk ' !/0x|apple|com\.vix|edu\.|org\./ { print $3 } '
    

     

    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.

     

    Step 3

     

    launchctl list | sed 1d | awk ' !/0x|apple|edu\.|org\./ { print $3 } '
    

     

    Step 4

     

    ls -1A {,/}Library/{Ad,Compon,Ex,Fram,In,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Sta}* 2> /dev/null
    

     

    Important: If you synchronize with a MobileMe account, your me.com email address may appear in the output of the above command. If so, change it to something like “user@me.com” before posting.

     

    Remember, steps 1-4 are all drag-and-drop or copy-and-paste, whichever you prefer -- no typing, except your password.

     

    You can then quit Terminal.

  • pavelll Level 1 Level 1 (0 points)

    Here is the output of the commands you requested:

     

     

    Pavels-MacBook-Pro:~ pavel$ kextstat -kl | awk ' !/com\.apple/ { print $6 $7 } 'com.radiosilenceapp.nke.PrivateEye(1)

    Pavels-MacBook-Pro:~ pavel$ sudo launchctl list | sed 1d | awk ' !/0x|apple|com\.vix|edu\.|org\./ { print $3 } '

    Password:

    de.meilenstein.MSTHostPreferences

    de.meilenstein.MSTFirstRunInstaller

    com.radiosilenceapp.nke.PrivateEye

    com.google.keystone.daemon

    com.barebones.textwrangler

    com.barebones.authd

    Pavels-MacBook-Pro:~ pavel$ launchctl list | sed 1d | awk ' !/0x|apple|edu\.|org\./ { print $3 } '

    com.culturedcode.thingshelper

    net.culater.SIMBL.Agent

    com.maintain.CocktailSystemEvents

    com.google.keystone.root.agent

    ws.agile.1PasswordAgent

    de.metaquark.appfresh

    com.valvesoftware.steamclean

    ca.madefresh.BodegaAgent

    Pavels-MacBook-Pro:~ pavel$ ls -1A {,/}Library/{Ad,Compon,Ex,Fram,In,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Sta}* 2> /dev/null

    /Library/Components:

     

     

    /Library/Extensions:

     

     

    /Library/Frameworks:

    AEProfiling.framework

    AERegistration.framework

    AudioMixEngine.framework

    NyxAudioAnalysis.framework

    PluginManager.framework

    TSLicense.framework

    XSKey.framework

    iLifeFaceRecognition.framework

    iLifeKit.framework

    iLifePageLayout.framework

    iLifeSQLAccess.framework

    iLifeSlideshow.framework

     

     

    /Library/Input Methods:

     

     

    /Library/Internet Plug-Ins:

    Disabled Plug-Ins

    Flash Player.plugin

    Flip4Mac WMV Plugin.plugin

    JavaAppletPlugin.plugin

    Quartz Composer.webplugin

    QuickTime Plugin.plugin

    flashplayer.xpt

    googletalkbrowserplugin.plugin

    iPhotoPhotocast.plugin

    npgtpo3dautoplugin.plugin

    nsIQTScriptablePlugin.xpt

     

     

    /Library/LaunchAgents:

    com.google.keystone.agent.plist

    com.maintain.CocktailSystemEvents.plist

    net.culater.SIMBL.Agent.plist

     

     

    /Library/LaunchDaemons:

    com.apple.aelwriter.plist

    com.apple.remotepairtool.plist

    com.barebones.authd.plist

    com.barebones.textwrangler.plist

    com.google.keystone.daemon.plist

    com.radiosilenceapp.nke.PrivateEye.plist

    de.meilenstein.MSTFirstRunInstaller.plist

    de.meilenstein.MSTHostPreferences.plist

    org.eyebeam.SelfControl.plist

     

     

    /Library/PhonePlugins:

    Nokia_5230_isync_plugin_2v0.phoneplugin

     

     

    /Library/PreferencePanes:

    Flash Player.prefPane

    Flip4Mac WMV.prefPane

    Growl.prefPane

    Perian.prefPane

     

     

    /Library/PrivilegedHelperTools:

    com.barebones.authd

    com.barebones.textwrangler

    de.meilenstein.MSTFirstRunInstaller

    de.meilenstein.MSTHostPreferences

    org.eyebeam.SelfControl

    scheckup

     

     

    /Library/QuickLook:

    iWork.qlgenerator

     

     

    /Library/QuickTime:

    AC3MovieImport.component

    AppleIntermediateCodec.component

    AppleMPEG2Codec.component

    Flip4Mac WMV Advanced.component

    Flip4Mac WMV Export.component

    Flip4Mac WMV Import.component

    Google Camera Adapter 0.component

    Google Camera Adapter 1.component

    Perian.component

     

     

    /Library/ScriptingAdditions:

    SIMBL.osax

     

     

    /Library/StartupItems:

     

     

    Library/Address Book Plug-Ins:

    AdiumAddressBookAction_AIM.scpt

    AdiumAddressBookAction_ICQ.scpt

    AdiumAddressBookAction_Jabber.scpt

    AdiumAddressBookAction_MSN.scpt

    AdiumAddressBookAction_SMS.scpt

    AdiumAddressBookAction_Yahoo.scpt

    FritzTelABAction.bundle

    SkypeABDialer.bundle

    SkypeABSMS.bundle

     

     

    Library/Input Methods:

    .localized

     

     

    Library/Internet Plug-Ins:

    .DS_Store

    Picasa.plugin

     

     

    Library/LaunchAgents:

    ca.madefresh.BodegaAgent.plist

    com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.FA1728C5-B917-44F7-90CD-921 9143D5B9B.plist

    com.apple.FolderActions.enabled.plist

    com.apple.FolderActions.folders.plist

    com.valvesoftware.steamclean.plist

    de.metaquark.appfresh.plist

    org.virtualbox.vboxwebsrv.plist

    ws.agile.1PasswordAgent.plist

     

     

    Library/PreferencePanes:

    .DS_Store

    Hazel.prefPane

     

     

    Library/ScriptingAdditions:

    .DS_Store

    TextExpander Addition.osax

     

     

    Library/Services:

    .DS_Store

    Combine PDF pages.workflow

    GraphicConverter.service

    Mail selected items.workflow

    New PDF from Images.workflow

    Resize images.workflow

    WordService.service

    selected to Bean.workflow

    Pavels-MacBook-Pro:~ pavel$

  • Linc Davis Level 10 Level 10 (173,925 points)

    Back up all data if you haven’t already done so. Before proceeding, you must be sure you can restore your system to the state it’s in now. If you skip this step, no one but you will be responsible for the consequences. If you’re dissatisfied with the results of the procedure suggested below, restore from your backup.

     

    You should either update or uninstall the following system modification(s), if an update is available from the developer:

     

    N/A

     

    and definitely remove at least the following:

     

    † SIMBL

    VirtualBox (non-functional partial installation)

    Radio Silence

    Fritz.mac Suite

    Cocktail

    AppFresh

    Things

    Bodega

    SelfControl

    TextExpander

     

    It's essential that all of the latter be removed completely, and the only way to do that is to use the uninstallation tool provided, if any, or otherwise to follow the developer's instructions. In some cases it may be necessary to re-download or even reinstall the software in order to get rid of it. I can't be more specific, because I don't install such things myself. Trying to remove complex system modifications by hunting for files by name usually will not work and may make matters worse.

     

    Never reinstall the modifications marked with a dagger (†) above, if any. If your problem is resolved after uninstalling all the above modifications and rebooting, but you still want to use some of those not marked with a dagger, you can experiment with putting them back, one at a time, testing carefully after each step. Keep in mind that system modifications may be incompatible with each other or with future Mac OS updates, so it may not be clear which one is at fault.

     

    Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very difficult to solve.

     

    If making the suggested changes and rebooting doesn't resolve your issue, post again.

  • Linc Davis Level 10 Level 10 (173,925 points)

    Uninstall SIMBL by deleting these items:

     

    /Library/Application Support/SIMBL

    /Library/LaunchAgents/net.culater.SIMBL.Agent.plist

    /Library/ScriptingAdditions/SIMBL.osax

     

    Log out and log back in.

     

    Make sure you never reinstall SIMBL, as it’s one of the worst articles of crapware on the Mac platform. It’s likely to come bundled with some other modfication that depends on it. If you want trouble-free computing, avoid software that makes miraculous changes to other software, especially built-in applications. The only real exception to that rule is Safari extensions, which are mostly safe, and are easy to get rid of when they don’t work. SIMBL and its dependents are not Safari extensions.

  • pavelll Level 1 Level 1 (0 points)

    Ok, thanks so far.

     

    I deleted SIMBL, I know it's a hack and I couldn't even remember what I needed it for.

     

    Deleted the remnants of VirtualBox with the official removal tool.

     

    Removed Radio Silence/Private Eye according to developer's instruction. There was no uninstall app.

     

    Removed SelfControl, no uninstall app was provided.

     

    FritzMac doesn't have an uninstaller, either, removed every trace of it using EasyFind.

     

    Removed AppFresh, no uninstaller.

     

    Removed Cocktail, no uninstaller.

     

    Removed Bodega, no uninstaller.

     

    * no effect *

     

    Killing Things Helper and TextExpander Helper in Activity Monitor didn't change anything. I can't delete these apps because I use them on a daily basis. So what? back to PleaseSleep?

  • Linc Davis Level 10 Level 10 (173,925 points)

    Please repeat steps 1-4 and post the output.

  • pavelll Level 1 Level 1 (0 points)

    here you go -- and thanks again.

     

    Last login: Sun Dec 25 19:24:05 on ttys000

    Pavels-MacBook-Pro:~ pavel$ kextstat -kl | awk ' !/com\.apple/ { print $6 $7 } 'Pavels-MacBook-Pro:~ pavel$ sudo launchctl list | sed 1d | awk ' !/0x|apple|com\.vix|edu\.|org\./ { print $3 } '

    Password:

    com.google.keystone.daemon

    com.barebones.textwrangler

    com.barebones.authd

    Pavels-MacBook-Pro:~ pavel$ launchctl list | sed 1d | awk ' !/0x|apple|edu\.|org\./ { print $3 } '

    com.culturedcode.thingshelper

    com.google.keystone.root.agent

    ws.agile.1PasswordAgent

    com.valvesoftware.steamclean

    Pavels-MacBook-Pro:~ pavel$ ls -1A {,/}Library/{Ad,Compon,Ex,Fram,In,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Sta}* 2> /dev/null

    /Library/Components:

     

    /Library/Extensions:

     

    /Library/Frameworks:

    AEProfiling.framework

    AERegistration.framework

    AudioMixEngine.framework

    NyxAudioAnalysis.framework

    PluginManager.framework

    TSLicense.framework

    XSKey.framework

    iLifeFaceRecognition.framework

    iLifeKit.framework

    iLifePageLayout.framework

    iLifeSQLAccess.framework

    iLifeSlideshow.framework

     

    /Library/Input Methods:

     

    /Library/Internet Plug-Ins:

    Disabled Plug-Ins

    Flash Player.plugin

    Flip4Mac WMV Plugin.plugin

    JavaAppletPlugin.plugin

    Quartz Composer.webplugin

    QuickTime Plugin.plugin

    flashplayer.xpt

    googletalkbrowserplugin.plugin

    iPhotoPhotocast.plugin

    npgtpo3dautoplugin.plugin

    nsIQTScriptablePlugin.xpt

     

    /Library/LaunchAgents:

    com.google.keystone.agent.plist

     

    /Library/LaunchDaemons:

    com.apple.aelwriter.plist

    com.apple.remotepairtool.plist

    com.barebones.authd.plist

    com.barebones.textwrangler.plist

    com.google.keystone.daemon.plist

     

    /Library/PhonePlugins:

    Nokia_5230_isync_plugin_2v0.phoneplugin

     

    /Library/PreferencePanes:

    Flash Player.prefPane

    Flip4Mac WMV.prefPane

    Growl.prefPane

    Perian.prefPane

     

    /Library/PrivilegedHelperTools:

    com.barebones.authd

    com.barebones.textwrangler

     

    /Library/QuickLook:

    iWork.qlgenerator

     

    /Library/QuickTime:

    AC3MovieImport.component

    AppleIntermediateCodec.component

    AppleMPEG2Codec.component

    Flip4Mac WMV Advanced.component

    Flip4Mac WMV Export.component

    Flip4Mac WMV Import.component

    Google Camera Adapter 0.component

    Google Camera Adapter 1.component

    Perian.component

     

    /Library/ScriptingAdditions:

     

    /Library/StartupItems:

     

    Library/Address Book Plug-Ins:

    .DS_Store

    AdiumAddressBookAction_AIM.scpt

    AdiumAddressBookAction_ICQ.scpt

    AdiumAddressBookAction_Jabber.scpt

    AdiumAddressBookAction_MSN.scpt

    AdiumAddressBookAction_SMS.scpt

    AdiumAddressBookAction_Yahoo.scpt

    SkypeABDialer.bundle

    SkypeABSMS.bundle

     

    Library/Input Methods:

    .localized

     

    Library/Internet Plug-Ins:

    .DS_Store

    Picasa.plugin

     

    Library/LaunchAgents:

    com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.FA1728C5-B917-44F7-90CD-921 9143D5B9B.plist

    com.apple.FolderActions.enabled.plist

    com.apple.FolderActions.folders.plist

    com.valvesoftware.steamclean.plist

    ws.agile.1PasswordAgent.plist

     

    Library/PreferencePanes:

    .DS_Store

    Hazel.prefPane

     

    Library/ScriptingAdditions:

    .DS_Store

    TextExpander Addition.osax

     

    Library/Services:

    .DS_Store

    Combine PDF pages.workflow

    GraphicConverter.service

    Mail selected items.workflow

    New PDF from Images.workflow

    Resize images.workflow

    WordService.service

    selected to Bean.workflow

    Pavels-MacBook-Pro:~ pavel$

  • Linc Davis Level 10 Level 10 (173,925 points)

    You haven't completely uninstalled Things or TextExpander, but I think it's unlikely that either of those is involved in the problem.

     

    You can narrow down the possibilities further by logging out without rebooting, then logging back in with the shift key held down. That is, enter your name and password, then hold the shift key and click the "Log in" button. Keep holding the key until the Desktop appears. This will prevent LaunchAgents and login items from loading.

     

    If sleep works in that mode, then you know the problem is one of those. If sleep still doesn't work, then you've ruled out everything I can see except the Google "Keystone" updater daemon (which in my opinion should be removed anyway, for privacy's sake) and TextWrangler.

  • pavelll Level 1 Level 1 (0 points)

    Thank you so much for walking me through this.

     

    After removing Google Software Update (there is actually an official method: http://support.google.com/installer/bin/answer.py?hl=en&answer=100386 ) sleep works automatically again.

  • 1 Open Loop Level 2 Level 2 (350 points)

    Why do you suggest removing Things? I have Things, but no longer use it.

Previous 1 2 Next