Mac Mini not going to sleep

Discussion in 'Mac mini' started by chenks, Apr 12, 2012.

  1. chenks macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #1
    Have set the Mac Mini (MacMini5,1) to go sleep after 15 minutes, however it is not doing it.

    It's being used as a media server, (in headless mode essentially with no keyboard or mouse connected). Only device connected to it is an external USB HDD (that goes to sleep on its own). Only other cable is HDMI running from mini to an amp, and the HDMI from amp to the TV (if i ever need to use a monitor).

    Apps that run all the time are iTunes, SABnzbd (which is currently idle), LogMein client, AirVideo server, growl, and EyeConnect.

    Shared service from the mini are screen sharing (for remote access), and File sharing.

    Running Lion 10.7.3 and mac is connected to network via ethernet (wifi is enabled (but not connected to any wifi network) for AirDrop.

    [​IMG]

    Any ideas why it's not going to sleep?
     
  2. tshrimp macrumors 6502

    tshrimp

    Joined:
    Mar 30, 2012
    #2
    Usually when a system is not going to sleep it is because something is accessing it. Here are a few ideas.

    1) You might have an app accessing your system. Quit as many apps as possible. This includes the ones you have mentioned. If that works enable one by one and find the culprit. (I would set sleep to a lower time while testing this if this is the issue)

    2) Network connection - If you have any network shares created disconnect them and see if that affects anything.

    3) Are you sharing a printer from your Mac? If you are then stop sharing just to see if this is causing any issues.

    4) Is Spotlight indexing your HD?

    5) Unhook any USB devices. Again just to check and see if it is causing any issues. This includes any usb cables that might connect up to your monitor if it has USB inputs.

    Just a few ideas that come to mind. Good luck.
     
  3. Wavell macrumors regular

    Wavell

    Joined:
    Nov 7, 2007
    Location:
    Essex, UK
    #3
    I'm seeing similar with my late 2009 mac mini and a USB2.0 / firewire (I've tried both connections) DRobo. Literally the only thing I have running on my mac is iTunes and it fails to sleep when I've got the DRobo connected.

    Hope Apple (or DRobo maybe) fix whatever it is soon, it's been like this for a few months now - unfortunately for me, the cause is not easy to pin down as the inability for the mini to sleep coincided with an OS update and a DRobo firmware update :(
     
  4. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #4
    update on this, the mac mini is now going to sleep correctly.
    didn't do anything on the mac mini at all, so not sure what is going on.

    not sure if it was maybe a couple of network shares that i had mounted on my MBP that was keep it awake (even though i wasn't using those shares - they were just mounted at the time).
     
  5. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #5
    of course as i typed that, i woke it up, and it hasn't went back to sleep again !
     
  6. Atius macrumors newbie

    Joined:
    Apr 13, 2012
    Location:
    Iceland
    #6
    Finding the problem

    open up terminal

    write: pmset -g

    there you should be able to see what is preventing it from sleeping.
    If your not sure where it is, post the results here.

    This should give you the pid number of the app stopping it from sleeping,
     
  7. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #7
    Active Profiles:
    AC Power -1*
    Currently in use:
    hibernatemode 0
    disksleep 10
    womp 1
    networkoversleep 0
    sleep 15
    powerbutton 1
    ttyskeepawake 1
    hibernatefile /var/vm/sleepimage
    autorestart 1
    panicrestart 157680000
    displaysleep 0 (imposed by 1420, 1421)
     
  8. Atius macrumors newbie

    Joined:
    Apr 13, 2012
    Location:
    Iceland
    #8

    in displaysleep there is: imposed by 1420, 1421
    open activity monitor in applications/utilities and arrange by PID, check what is number 1420 and 1421, that might be what is preventing the computer from sleeping.
     
  9. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #9
    nothing in activity monitor with the id of either 1420 or 1421

    i ran pmset -g again, and this time against displaysleep is 1550 and 1551.
    nothing with 1550 in the list, but 1551 is Screensharingagent, but that is probably showing now as i connected to the mac mini via screensharing to get the info asked for here.

    so this is basically showing what the last keep awake event was, which is me checking to see what is keeping it awake! not sure how this is helping me see what is keeping it awake when i'm not touching it?
     
  10. Atius macrumors newbie

    Joined:
    Apr 13, 2012
    Location:
    Iceland
    #10
    Now I am clueless. everything looks ok in the pmset, so I'm guessing it has something to do with the network.
    if there are any active sessions over the network, it will not go to sleep.

    you could check if internet sharing is on, that is a known problem
    Little snitch sometimes causes sleep problems

    Some report that resetting SMC (http://support.apple.com/kb/HT3964) or PRAM (http://support.apple.com/kb/HT1379) works.

    Otherwise, good look with finding a solution :)
     
  11. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #11
    internet sharing is not enabled, only file and screen sharing.
    there are currently no active network shares mounted.
     
  12. ijha macrumors regular

    ijha

    Joined:
    Aug 20, 2009
    #12
    I am not sure if it helps.
    My MacMini and Macbook pro 13" with the newest lion can't go automatically into sleep mode,
    if the tweeter app on the Chrome browser is on

    or
    if the Sparrows (email client) is on.

    I have no idea how to fix.
     
  13. chenks, Apr 13, 2012
    Last edited: Apr 13, 2012

    chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #13
    definitely not the case in this instance, as the mac mini is running essentially as a file/itunes server, and it not used as a desktop system.

    incidentally, i've been out since my last post and came back in and the mac mini is asleep.
    when i went out, i put the MBP to sleep (closed the lid), and the amp/TV were turned off (standby).

    this might suggest that either the MBP was keeping the mini awake (not sure why though as it wasn't connected to anything on the mini at the time), or the amp/TV (connected to the mac via HDMI) is keeping it awake.
     
  14. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #14
    waking the MBP up didn't result in the mini waking up
    turning the amp/tv back on didn't result in the mini waking up

    so it's getting hard to pin down what is stopping it from going to sleep when the mini is awake.
     
  15. Wavell macrumors regular

    Wavell

    Joined:
    Nov 7, 2007
    Location:
    Essex, UK
    #15
    try unplugging your USB hard drive and see if it goes to sleep (and stays asleep)..
     
  16. chenks thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #16
    it went to sleep with the USB HDD connected, and has stayed asleep with it connected.
     
  17. Wavell macrumors regular

    Wavell

    Joined:
    Nov 7, 2007
    Location:
    Essex, UK
    #17
    well that's more than mine's doing already, right there ! ;)
     
  18. marc.garcia macrumors regular

    Joined:
    Jul 26, 2010
    #18
    Hello,

    this is the output of my pmset -g:

    server:~ marc$ pmset -g
    Active Profiles:
    AC Power -1*
    Currently in use:
    standby 1
    powerbutton 1
    womp 1
    autorestart 1
    hibernatefile /var/vm/sleepimage
    networkoversleep 0
    disksleep 10
    sleep 10 (sleep prevented by 108)
    autopoweroffdelay 14400
    hibernatemode 0
    autopoweroff 1
    ttyskeepawake 1
    displaysleep 10
    standbydelay 4200

    process with pid 100 seems to be preventing my Mac from entering into standby mode. That process id is "socketfilterfw". Can anybody help me tune the OS's firewall so that I won't interfere?

    Thanks in advance, I would appreciate your help! :)
     

Share This Page