Skip to content

Instantly share code, notes, and snippets.

@shinypb
Created May 24, 2011 15:42
Show Gist options
  • Select an option

  • Save shinypb/988945 to your computer and use it in GitHub Desktop.

Select an option

Save shinypb/988945 to your computer and use it in GitHub Desktop.
Rdio Mac app bug report
The Rdio app interferes with normal system sleep. I've seen it happen on two unrelated MacBook Pros.
I initially noticed this problem on my own system while working on an app that intentionally delays
system sleep — I thought I had a bug. However, when I tried to track it down, I found that Rdio was
the culprit. Last night, I saw similar behaviour on my girlfriend's computer when she shut the lid
and immediately opened it up again to do something else. Once she'd re-opened it, Chrome wouldn't
make network connections because the system was in the middle of the sleeping process, and 30 seconds
later, it shut off. Rdio was running.
On the Mac, before the system goes to sleep, it gives every app a chance to delay that sleep for up
to 30 seconds, so they can finish up important tasks. At the lowest level, this is with
IORegisterForSystemPower. I looked through the strings in the Rdio executable and found that you guys
have an onSystemWillSleep handler — is it possible you have a bug in there that's preventing sleep from
happening? If you guys aren't calling IOAllowPowerChange when you're done, sleeping will take a full 30
seconds.
Hope this is in some way helpful. Please keep up the awesome work.
— Mark
$ strings /Applications/Rdio.app/Contents/MacOS/Rdio | grep -i sleep
_onSystemWillSleep
onSystemWillSleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment