Alan Green

Q: Just go to sleep!!!

At the moment I'm really hating my Mac Mini. It has just decided in recent weeks that it does not want to go to sleep. I've tried removing all USB connections but still it wants to stay awake. What happens is it'll go to sleep and then a split second later it'll quickly wake up and then basically continue this process thereafter.

 

Any ideas or help would be greatly appreciated.

 

Here's the Terminal report:

 

Alans-Mac-Mini:~ alan$ pmset -g assertions

2016-07-31 22:26:25 +0100

Assertion status system-wide:

   BackgroundTask                 0

   ApplePushServiceTask           0

   UserIsActive                   1

   PreventUserIdleDisplaySleep    0

   PreventSystemSleep             0

   ExternalMedia                  1

   PreventUserIdleSystemSleep     0

   NetworkClientActive            0

Listed by owning process:

   pid 99(hidd): [0x000091f6000914df] 00:00:54 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

  Timeout will fire in 576 secs Action=TimeoutActionRelease

   pid 53(powerd): [0x000000040008012c] 17:17:57 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

Kernel Assertions: 0xc=USB,BT-HID

   id=501  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.14200000 owner=Elements 1023

   id=502  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.14500000 owner=My Passport 0820

   id=503  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.1d130000 owner=USB2.0 Hub

   id=504  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.1d133000 owner=USB2.0 Hub

   id=505  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.1d134000 owner=USB2.0 Hub

   id=506  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.1d133400 owner=NovaT 500Stick

   id=507  level=255 0x4=USB mod=01/01/1970, 01:00 description=com.apple.usb.externaldevice.1d134400 owner=HL-2250DN series

   id=570  level=255 0x8=BT-HID mod=01/01/1970, 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBTrackpadDevice

   id=571  level=255 0x8=BT-HID mod=01/01/1970, 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

Idle sleep preventers: IODisplayWrangler

Alans-Mac-Mini:~ alan$

 

Here's the Console report:

 

31/07/2016 22:22:53.024 AirPlayUIAgent[419]: 2016-07-31 10:22:53.023573 PM [AirPlayUIAgent] BecomingInactive: NSWorkspaceWillSleepNotification

31/07/2016 22:22:53.057 TogglDesktop[14511]: receiveSleepNote: NSWorkspaceWillSleepNotification

31/07/2016 22:23:17.000 kernel[0]: Opened file /var/log/SleepWakeStacks.bin, size 172032, extents 1, maxio 2000000 ssd 1

31/07/2016 22:23:17.000 kernel[0]: ARPT: 37238.992738: AirPort_Brcm43xx::powerChange: System Sleep

31/07/2016 22:23:18.000 kernel[0]: ARPT: 37239.492789: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,

31/07/2016 22:23:24.000 kernel[0]: 037241.561166 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

31/07/2016 22:23:24.000 kernel[0]: 037241.561399 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

31/07/2016 22:23:24.000 kernel[0]: Previous sleep cause: 5

31/07/2016 22:23:24.000 kernel[0]: 037242.918892 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

31/07/2016 22:23:24.000 kernel[0]: 037242.918897 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

31/07/2016 22:23:31.000 kernel[0]: ARPT: 37250.204525: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

31/07/2016 22:24:25.000 kernel[0]: ARPT: 37304.463655: AirPort_Brcm43xx::powerChange: System Sleep

31/07/2016 22:24:26.000 kernel[0]: ARPT: 37304.965648: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,

31/07/2016 22:24:33.000 kernel[0]: 037308.099059 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

31/07/2016 22:24:33.000 kernel[0]: 037308.146483 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

31/07/2016 22:24:33.000 kernel[0]: Previous sleep cause: 5

31/07/2016 22:24:33.000 kernel[0]: 037308.288851 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

31/07/2016 22:24:33.000 kernel[0]: 037308.289049 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

31/07/2016 22:24:38.000 kernel[0]: ARPT: 37313.510999: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

31/07/2016 22:25:20.457 WindowServer[207]: handle_will_sleep_auth_and_shield_windows: Deferring.

Mac mini, OS X El Capitan (10.11.6), 16GB RAM / 512GB SSD

Posted on Jul 31, 2016 2:32 PM

Close

Q: Just go to sleep!!!

  • All replies
  • Helpful answers

  • by Carolyn Samit,

    Carolyn Samit Carolyn Samit Aug 1, 2016 4:29 AM in response to Alan Green
    Level 10 (120,756 points)
    Apple Music
    Aug 1, 2016 4:29 AM in response to Alan Green
  • by Alan Green,

    Alan Green Alan Green Aug 1, 2016 11:29 AM in response to Carolyn Samit
    Level 2 (271 points)
    Desktops
    Aug 1, 2016 11:29 AM in response to Carolyn Samit

    I have. Didn't help.

     

    I now have all of this…

     

    01/08/2016 19:22:25.000 kernel[0]: 036062.075904 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:22:25.000 kernel[0]: 036062.076034 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:22:31.000 kernel[0]: ARPT: 36068.555141: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

    01/08/2016 19:23:18.000 kernel[0]: ARPT: 36115.531106: AirPort_Brcm43xx::powerChange: System Sleep

    01/08/2016 19:23:18.000 kernel[0]: ARPT: 36116.032034: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,

    01/08/2016 19:23:26.000 kernel[0]: 036118.113873 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:23:26.000 kernel[0]: 036119.178476 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:23:26.000 kernel[0]: Previous sleep cause: 5

    01/08/2016 19:23:26.000 kernel[0]: 036119.475293 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:23:26.000 kernel[0]: 036119.475305 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:23:33.000 kernel[0]: ARPT: 36126.688049: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

    01/08/2016 19:24:19.000 kernel[0]: ARPT: 36172.852541: AirPort_Brcm43xx::powerChange: System Sleep

    01/08/2016 19:24:19.000 kernel[0]: ARPT: 36173.354613: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,

    01/08/2016 19:24:27.000 kernel[0]: 036175.422707 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:24:27.000 kernel[0]: 036176.535268 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:24:27.000 kernel[0]: Previous sleep cause: 5

    01/08/2016 19:24:27.000 kernel[0]: 036176.681617 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:24:27.000 kernel[0]: 036176.681617 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:24:33.000 kernel[0]: ARPT: 36183.068049: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

    01/08/2016 19:25:20.000 kernel[0]: ARPT: 36230.054796: AirPort_Brcm43xx::powerChange: System Sleep

    01/08/2016 19:25:20.000 kernel[0]: ARPT: 36230.556875: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,

    01/08/2016 19:25:28.000 kernel[0]: 036233.737892 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:25:28.000 kernel[0]: 036233.787549 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:25:28.000 kernel[0]: Previous sleep cause: 5

    01/08/2016 19:25:28.000 kernel[0]: 036234.036208 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:25:28.000 kernel[0]: 036234.036213 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:25:35.000 kernel[0]: ARPT: 36241.333151: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

    01/08/2016 19:26:22.000 kernel[0]: ARPT: 36288.355659: AirPort_Brcm43xx::powerChange: System Sleep

    01/08/2016 19:26:22.000 kernel[0]: ARPT: 36288.856435: IOPMPowerSource Information: onSleep,  SleepType: Normal Sleep,

    01/08/2016 19:26:29.000 kernel[0]: 036290.958259 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:26:29.000 kernel[0]: 036290.958499 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateOn -> kPowerStateSleep

    01/08/2016 19:26:29.000 kernel[0]: Previous sleep cause: 5

    01/08/2016 19:26:29.000 kernel[0]: 036291.486075 PRT2@14200000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:26:29.000 kernel[0]: 036291.486101 PRT5@14500000: AppleUSBHostPort::setPowerStateGated: kPowerStateSleep -> kPowerStateOn

    01/08/2016 19:26:29.460 WindowServer[201]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)

    01/08/2016 19:26:31.000 kernel[0]: ARPT: 36294.011919: IOPMPowerSource Information: onWake,  SleepType: Normal Sleep,

  • by Esquared,

    Esquared Esquared Aug 1, 2016 11:44 AM in response to Alan Green
    Level 6 (8,410 points)
    Mac OS X
    Aug 1, 2016 11:44 AM in response to Alan Green

    It still looks like some USB device is telling it to wake up. Are really all USB devices disconnected? Including hubs (also the kind that is build into some displays) and usb sticks?

  • by Alan Green,

    Alan Green Alan Green Aug 1, 2016 11:46 AM in response to Esquared
    Level 2 (271 points)
    Desktops
    Aug 1, 2016 11:46 AM in response to Esquared

    I've tried lots of different things. It's a bit annoying that the code you type into Terminal to say what's keeping it awake doesn't actually say anything. Surely there should be a way of finding out the exact culprit.

     

    Frustrating beyond belief.

     

    I'm away now for the next week so will have to have a proper look again next week.