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

balooo84

macrumors newbie
Original poster
Mar 15, 2014
19
5
Hello since the 10.15.3 my mac mini doesn't enter any sleepmode or standby, it's always on. The output of pmset-g log looks like this:
2020-04-10 14:05:48 +0200 : Showing all currently held IOKit power assertions


Assertion status system-wide:
BackgroundTask 1
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 0
PreventUserIdleSystemSleep 0
NetworkClientActive 0
Listed by owning process:
pid 360(UserEventAgent): [0x00000179000b81d4] 00:21:27 BackgroundTask named: "com.apple.routined.purge"
Created for PID: 404.
pid 360(UserEventAgent): [0x0000016f000b81c1] 00:21:37 BackgroundTask named: "com.apple.routined.metrics.daily"
Created for PID: 404.
pid 360(UserEventAgent): [0x0000008f000b81a6] 00:25:21 BackgroundTask named: "com.apple.routined.learnedLocationEngine.train"
Created for PID: 404.
pid 360(UserEventAgent): [0x0000003e000b8192] 00:26:42 BackgroundTask named: "com.apple.routined.persistence.mirroring.post-install"
Created for PID: 404.
pid 360(UserEventAgent): [0x0000003e000b8191] 00:26:42 BackgroundTask named: "com.apple.routined.persistence.mirroring.backup"
Created for PID: 404.
pid 205(hidd): [0x0000001200098086] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle serviceID:100000601 name:AppleHIDKeyboardEve product:Magic Keyboard eventType:3"
Timeout will fire in 600 secs Action=TimeoutActionRelease
Kernel Assertions: 0x28=BT-HID,THNDR
id=500 level=255 0x20=THNDR mod=10.04.20, 13:43 description=NHI0 owner=AppleThunderboltHAL
id=508 level=255 0x8=BT-HID mod=01.01.70, 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleHSBluetoothDevice
id=509 level=255 0x8=BT-HID mod=01.01.70, 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleHSBluetoothDevice
Idle sleep preventers: IODisplayWrangler

How can i stop this Backgroundtasks.I killed routined several times in act.mon. but it always comes back. Thany you!
 

StumpyBloke

macrumors 603
Apr 21, 2012
5,617
6,331
England
Just out of interest, if you set sleep to 2 minutes, does it go to sleep then? Mine does on my Mac Mini, but anything longer than that it will never go to sleep. Same on my other Mac Mini, both 2012 models.
 

balooo84

macrumors newbie
Original poster
Mar 15, 2014
19
5
No , sleep set to 2 minutes doesnt help, the screen shuts off but the computer is running
 

kaans

macrumors regular
Nov 17, 2014
239
67
Any solution, my Macbook similarly doesn't sleep if it's on Power Adapter - everything disabled, including deep settings like Screen Time, Siri, Bluetooth ones etc. too - it just doesn't sleep
 

techguy82

macrumors member
Apr 4, 2019
96
79
You can check via terminal what is preventing sleep: pmset -g assertions

In my case I unloaded some services via terminal which prevented sleep or slowed down my MacBook Pro (Mid 2009):

launchctl unload -w /System/Library/LaunchAgents/com.apple.photoanalysisd.plist && launchctl unload -w /System/Library/LaunchAgents/com.apple.mediaanalysisd.plist && launchctl unload -w /System/Library/LaunchAgents/com.apple.parsec-fbf.plist
 

kaans

macrumors regular
Nov 17, 2014
239
67
Only as a BackgroundTask, I have

pid 357(UserEventAgent): [0x000018d3000b88c7] 00:13:38 BackgroundTask named: "com.apple.routined.persistence.mirroring.backup" (I have all iCloud services except FindMyMac disabled)

Listed as the original poster

As far as I've tested tho, Wi-Fi seems to prevent sleep, if the Wi-Fi is off, the system sleeps

Edit: Turning Wi-Fi off seems to disable that task, so whatever it is, it's probably causing my issue, the iCloud comes default-on, I suspect it might've bugged when I disabled it from settings before it could auto hijack all my photos to the cloud - currently it seems to just block sleep
 

kaans

macrumors regular
Nov 17, 2014
239
67
Small update: I don't know whether this is regular or not, but, only when I enable "Power Nap" on "Power Adapter" - the 'BackgroundTask named: "com.apple.routined.persistence.mirroring.backup"' becomes non-blocking and the system sleeps ( but wakes up periodically, since it's a power nap :( )

This is the only thread on the internet which com.apple.routined.persistence.mirroring.backup gets mentioned, so I assume it's a weird stuck process
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.