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

Cattywampus_

macrumors 6502a
Original poster
Apr 19, 2006
511
21
Hi

I have a Hackintosh and everything works perfectly except one thing. I am not sure whether this is because it's not genuine Mac or not or just some quirky bug I've got.

Essentially what is happening is when my computer wakes from a deep sleep, a process ("bird") stays in a "preventing sleep" mode. This then stops the computer going to sleep after 30mins like is set in the power saving options.

The process bird is somehow related to iCloud Drive. If I kill the process, it restarts the process but in a non-preventing sleep mode.

So what I have been trying to do using AppleScript is to make a script that kills the process when waking. I am not a programmer so gave up after a while.

So what would be helpful is if someone knows a way that I could kill a process that is in a power assertive state just before the computer is set to go to sleep?

Or maybe after 29mins of the computer being idle, a script runs that kills the process so a minute later it can go to sleep.

I tried using a piece of software called Sleepwatcher which I think was going somewhere. But I spent so much time on it I got annoyed and stopped.

Hoping someone here knows of an easy way to accomplish what I want.

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.