Spotify prevents Mac from going to sleep

Solved!
Reply

Spotify prevents Mac from going to sleep

user-removed
Not applicable

Hi,

 

running the Spotify client prevents my Mac from going to sleep, even when no song is being played.

By typing "pmset -g assertions" into the terminal window, you'll get a list of diagnostic information regarding power save mode. As long as Spotify is running, it contains the the line

  PreventUserIdleSystemSleep named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,2:0'.noidlesleep" 

 

This would be the expected behavior when a song is being played but seems to be a bug otherwise.

 

A fix would be nice!

 

Thanks,

 

Norb

1 ACCEPTED SOLUTION

Accepted Solutions
Solution!

dougbeck
Regular

Yeah, it's a bummer.  I now use hotcorners and have the ScreenSaver app in my dock just so I can activate it manually.  But then there are times I fall asleep on my couch and wake up to my TV on and spotify open and think "Yep, can't wait until that's burned-in forever"

View solution in original post

69 Replies

snooty
Roadie

Please look at this!

bubba9000
Casual Listener

After much time wondering why my Mac wouldn't sleep, I finally figured out the same: the Mac Spotify client prevents sleep.

 

I agree. A fix would be nice here. Preventing sleep wastes a lot of energy.

snooty
Roadie

I tried logging this issue as a bug.

 

Here is the correspondence:

 

Me

======================================================

Spotify prevents mac from sleeping.


For more information see:

https://getsatisfaction.com/spotify/topics/spotify_prevents_my_mac_from_sleeping

http://community.spotify.com/t5/Desktop-Mac/Spotify-prevents-Mac-from-going-to-sleep/m-p/61923/highl...

http://community.spotify.com/t5/Spotify-Ideas/Allow-OS-X-Lion-to-sleep-when-Spotify-is-open/idi-p/81...

======================================================

 

 


 

Spotify

======================================================

Thanks for contacting Spotify. I'm sorry to hear you have been experiencing issues.

Lets get this fixed for you.

It's a simple procedure, but often effective. Have you performed a clean reinstallation following these instructions.

1. Quit Spotify
2. In the finder, locate and delete the following folders:
~/Library/Caches/com.spotify.Client
~/Library/Application Support/Spotify
3. Locate and delete the Spotify app (from the application folder)
4. Empty trash, then restart
5. Download and install Spotify latest version: https://www.spotify.com/download/

OSX LION users:
Apple have masked the user "Library" folder to prevent accidental deletion. You can access it by choosing 'Go', from the top menu in the Finder. Hold down 'alt' key, and the library should appear as a folder you can now open.

What operating system are you running on your Mac? 
What version of Spotify are you running on your device?

Are you running any third party Spotify software, like a remote program?

Does the issue occur when you have music playing via Spotify, or just when the program open?

Do you have SIMBL running?

SIMBL can be hidden from view sometimes, so to be sure, can you perform this task for me please:

1. Delete the entire folders from the following locations:
- Macintosh HD/Library/Application Support/SIMBL
&
- [USER FOLDER]/Library/Application Support/SIMBL
2. Uninstall Spotify
3. Restart your computer
4. Install Spotify
*please take care to ensure the removal of the following as well as some users have reported issue continuing until removal of these
/Applications/SpotRemote Server.app
/Library/ApplicationSupport/SIMBL/Plugins/SpotifyRemotePlugin.bundle
To access hidden files please type the following in Terminal:
defaults write com.apple.Finder AppleShowAllFiles YES
to hide them again please type:
defaults write com.apple.Finder AppleShowAllFiles NO

OR

sudo rm -rf "/Library/Application
Support/SIMBL/Plugins/SpotifyRemotePlugin.bundle"
/private/var/db/receipts/com.axelmoller.spotremote.*
/private/var/db/receipts/com.rootateverything.spotifyremote.spotRemot*
Kind regards 

Louis Napoletani 

Spotify Customer Service - Cambridge
======================================================

Me
======================================================
Thank you. I can confirm I don't have spotify remote software or SIMBL installed or running. I am using OS X Lion (10.7.4).Spotify version is 0.8.3.222. 
I do not want to uninstall Spotify because I have something like 1700 songs cached in offline playlists that I believe are deleted as part of your removal process.
Before I'm forced into re-downloading these playlists, can you please confirm you are offering this advice because you cannot reproduce the issue yourself?
The first link I included when originally logging the bug gives good instructions doing this:
1. Open Terminal and type "pmset -g assertionslog". This will display info about any processes that are preventing your Mac from sleeping. You should see something like this: 

Logging all assertion changes. 
9/27/11 12:41:43 PM EDT 
Assertion status system-wide: 
ChargeInhibit 0 
PreventUserIdleDisplaySleep 0 
PreventUserIdleSystemSleep 0 
NoRealPowerSources_debug 0 
CPUBoundAssertion 0 
EnableIdleSleep 1 
PreventSystemSleep 0 
DisableInflow 0 
DisableLowPowerBatteryWarnings 0 
ExternalMedia 0 

Kernel Assertions: None 

2. Launch Spotify
3. Start playing a song. 
4. Go back to the Terminal window in step 1. You will see something like this: 

9/27/11 12:42:57 PM EDT 
Assertion status system-wide: 
ChargeInhibit 0 
PreventUserIdleDisplaySleep 0 
PreventUserIdleSystemSleep 1 
NoRealPowerSources_debug 0 
CPUBoundAssertion 0 
EnableIdleSleep 1 
PreventSystemSleep 0 
DisableInflow 0 
DisableLowPowerBatteryWarnings 0 
ExternalMedia 0 

Listed by owning process: 
pid 117: [0x0000012c00000075] PreventUserIdleSystemSleep named: "com.apple.audio.'AppleHDAEngineOutput:8,0,1,1:0'.noidlesleep" 

5. Stop the song. Note that coreaudio is still preventing idle sleep. 
6. Quit Spotify
7. Go back to the Terminal window in step 1. You will see something like this: 

9/27/11 12:44:05 PM EDT 
Assertion status system-wide: 
ChargeInhibit 0 
PreventUserIdleDisplaySleep 0 
PreventUserIdleSystemSleep 0 
NoRealPowerSources_debug 0 
CPUBoundAssertion 0 
EnableIdleSleep 1 
PreventSystemSleep 0 
DisableInflow 0 
DisableLowPowerBatteryWarnings 0 
ExternalMedia 0 

Kernel Assertions: None 

8. Your Mac will now sleep. 

My guess is Spotify wants to prevent the Mac from sleeping while it's playing music, but it continues to do so even when the music has stopped.

I eagerly await the results of your own tests. I can see with other media playing apps that pausing/stopping sets PreventUserIdleSystemSleep back to 0, so I really think it's an issue with Spotify.
======================================================

 

 

 

 

 

Spotify

======================================================

I have tested this here and also tested it with different preferences turned on and off to see if it's any of those causing this issue.

We have looked into this and have submitted it to our senior team to look in to as well.

Please bare with us while we figure this out.

Thank you very much for bringing this to our attention.

Kind regards
Oliver 

======================================================

 

 

 

 

That is the last email I got,9 days ago. Fingers crossed it'll at least get recognised soon!

bubba9000
Casual Listener

Thanks snooty!

hustavsson
Regular

Any news? I'm having the same problem with my iMac. Since I have a fast internet connection I have no problem doing a full delete and then re-downloading the tracks but it didn't solve the problem unfortunately. If I run pmset I still see Spotify preventing sleep.

snooty
Roadie

not heard anything back.

 

is there any chance a forum moderator could give this some attention?

 

is there a proper bug tracking system for spoitfy?

snooty
Roadie

hello?

hustavsson
Regular

I have investigated a little bit further. If there is no track in the queue, Spotify will not prevent sleep. Please fix this as soon as possible.

 

It is amazing that a bug like this can still exist. Do you realise that Spotify is creating a lot of pollution by not letting computers sleep?

snooty
Roadie

bump

snooty
Roadie

Because of this, I have successfully let my spotify premium expire along with my credit card. Well done Spotify.

snooty
Roadie

will this ever get looked at?

KennyFan
Casual Listener

Bug hasn't been fixed yet... 😞

snooty
Roadie
Nope

snooty
Roadie

hello????????????????

hustavsson
Regular

Forgot to update you guys. This bug will not be fixed.That was the answer I got from Spotify. They acknowledge the bug, saying that it only affects certain iMacs. They say "it's too hard to fix". Great pride in their development skills... Researching the issue I've found that it affects some other sound applications as well so it's definitely an Apple thing. The question is if it could be solved by Apple rather than Spotify.

KennyFan
Casual Listener

It doesn't affect only certain iMacs. I use Spotify on a Mac Pro and have the same problem. They should get a Mac audio development expert... 😞

snooty
Roadie
Oh my god. Sorry, but it isn't a hard feature to implement, i.e. i really doubt Apple have made developers jump through hoops to do this. I *can* believe that because of some crazy practices that spotify employs it makes it difficult within their existing framework, but that's their fault, but it's by no means Apple's. it does not affect iMacs only, i have a macbook air.

this is not something other media player developers have struggled with.

If you genuinely think that it is Apple's fault then I urge you to raise it and discuss this with them. I'm sure as a fairly big player you can get more direct access. I'm a developer at a company which is a Microsoft partner and we've had Microsoft look at issues in the past.

hustavsson
Regular

I totally agree snooty. It feels very unprofessional on their end. You should notify them though that this isn't only an issue on iMacs. One thing though. They hinted that it's due to the fact that the client is polling the server when paused and that this is something they won't change.

snooty
Roadie

Interesting hint. I don't want to overplay the "I'm a developer thing" as I have literally no mac development experience, nor have i worked on a media player.  But that the application is polling the server when paused doesn't seem like a valid reason to prevent idle sleep to me. All sorts of applications poll servers all the time - e.g. mail clients, the operating system itself as it checks for updates, etc. etc. Perhaps it's a case of chinese whispers and there's more to it than that, but right now it sounds like a poor excuse.

 

I may see if there's any open developer documentation of preventing idle sleep on mac os x....

SUGGESTED POSTS