Spotify prevents Mac from going to sleep

Solved!
Reply
Highlighted

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!

Re: Spotify prevents Mac from going to sleep

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

Re: Spotify prevents Mac from going to sleep

snooty
Roadie

Please look at this!

Re: Spotify prevents Mac from going to sleep

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.

Re: Spotify prevents Mac from going to sleep

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!

Re: Spotify prevents Mac from going to sleep

bubba9000
Casual Listener

Thanks snooty!

Re: Spotify prevents Mac from going to sleep

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.

Re: Spotify prevents Mac from going to 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?

Re: Spotify prevents Mac from going to sleep

snooty
Roadie

hello?

Re: Spotify prevents Mac from going to sleep

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?

Re: Spotify prevents Mac from going to sleep

snooty
Roadie

bump

SUGGESTED POSTS