• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Spotify makes phone hot, kills battery?

gentoolkit

Lurker
May 27, 2011
9
1
Has anyone had heating-problems with Spotify or very short battery life? In particular, when the screen is OFF? I have found a possible bug in the Spotify but they said that they do not support my phone (Samsung Galaxy S 2). I have described my way of testing here. Not the finest possible way to test this, but functional.

ADD: This is not the Android OS / suspend / 2.3.3 + dual core -bug. Top-program shows Spotify UI -process using 50% cpu, not suspend-process. I am using offline playlists. Battery-usage shows Spotify using almost one hour cpu time per 2 hours music playing when this bug occurs. This is really high!

If you have the same problem as I and particularly if you have any other phone than SGS2 (SGS2 users still welcome of course), please report it here: Short battery life, phone gets hot (Gui process uses a whole cpu core when screen is off).

ADD: My getsatisfaction/spotify -post:

Spotify GUI process uses sometimes up to 49% cpu on samsung galaxy S 2 (100% means full load on both cores). This happens randomly and only when the screen is OFF. Cpufreq jumps from 200mhz to full 1200mhz. Cpu usage and freq returns to normal only after I turn the screen back on. Normal spotify cpu usage is something like 4-17% / 200mhz. This kills battery in 3-4 hours and heats upper part of the phone (NOT battery). I have the latest spotify version, 0.4.9.181.

I might have had the same problem with HTC Wildfire. It got randomly hot too when listening spotify. I did not do it any measurements.

-----------------------------------------------------------------------------

I just received a reply to the original e-mail: "Please note that the Galaxy SII is not supported by Spotify yet. Having a Galaxy SII (dual core) app is something we want to do at some point but as with all development plans we don't discuss future releases. When we have something to say about a dedicated dual core app we'll be sure to let everyone know."

I suspect this has nothing to do with dual core processor. My understanding is that Android 2.3.* doesn't even have a full dual core -support (meaning that normal app sees only one core, OS two). Correct me if I am wrong... I would guess (based on my Wildfire+spotify experience) that this problem occurs with other phones too. SGS2s more powerful processor just makes things worse. Both cores run at 1200Mhz and one at full speed...

I am testing review-version (0.4.9.175). Preliminary results seem good. No heating yet. Needs more testing...

ADD: The same problem with the preview version. Absolutely no difference.

ADD: How I know it is CPU problem:

First I started to listen Spotify.

Test 1: I pooled cpufreq readings (while() do cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq; sleep 15; done) and waited about 5 minutes. Result: 200Mhz, almost constant. Then I turned the screen OFF and waited for 10 minutes until the phone began to feel hot. I checked cpufreq pools. Result 1200Mhz, constant, at least 3-4 minutes. Cpufreq returned to normal after I turned the screen ON.

Test 2: top -m 20 -d 60. I waited 5 minutes. Result: spotify cpu usage 4-17%. Then I turned the screen OFF and waited for 15 minutes until the phone began to feel hot, again. I checked the latest top output. Result: spotify cpu usage 49%. Cpu usage returned to normal after I turned the screen ON.

If I understand this correctly, this means that the spotify retains a whole cpu core for itself forcing it to run at full clock. This might be the real reason why spotify kills my battery.

I have repeated this test multiple times. Always same result. 49-50% cpu usage and full cpufreq.

ADD: Guide:

NOTE: Screen off -heating doesn't happen every time. Sometimes it works without problem for hours and sometimes it does it every time I turn screen off.

0. Start Spotify and click play. Use offline-playlist if possible.
1. Open Android Terminal Emulator (by Jack Palevich) (or any other terminal-emulator)
2. type: while() do cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq; sleep 15; done
3. It should start printing cpufreq reading every 15 seconds
4. Wait a few minutes with screen on and monitor the situation.
5. Turn screen off and wait until phone gets warm/hot.
6. Check cpufreq results
7. Press CTRL+C to quit. (Volume Up (or Down) + C)

Or, alternatively, you can type:
cp /sys
cd devices
cd system
and so on and then type:
while() do cat scaling_cur_freq; sleep 15; done
You can use ls-command to list to content of the current directory.

0. Start Spotify and click play. Use offline-playlist if possible.
1. Open Android Terminal Emulator (by Jack Palevich) (or any other terminal-emulator)
2. type: top -m 3 -d 30
3. It should start printing top 3 cpu using threads every 30 seconds. It takes while to print first time.
4. Wait a few minutes with screen on and monitor the situation.
5. Turn screen off and wait until phone gets warm/hot.
6. Check the latest top output
7. Press CTRL+C to quit. (Volume Up (or Down) + C)

EDIT: top -m 20 -d 60 -> top -m 3 -d 30. Better that way.
 
Any major data flow over the 3G radio is going to heat up any phone. Wi-Fi also but to a lesser extent. Usually a hot phone in and of itself is not a concern but bettery life might be.

I've found that for me, I dont download or stream unless I'm plugged into a power souce.

No, it is not that. CPU is getting hot and I am using offline-playlists. Please read my getsatisfaction-post. 49% / 1200Mhz cpu usage. Remember, this is a dual core device. 100% usage = 100% both cores. 50% + normal app = 100% on one core.
 
Upvote 0
No, it is not that. CPU is getting hot and I am using offline-playlists. Please read my getsatisfaction-post. 49% / 1200Mhz cpu usage. Remember, this is a dual core device. 100% usage = 100% both cores. 50% + normal app = 100% on one core.


OK, calm down a bit, I'm just trying to help. :)

You didnt mention offline playlists that I saw, but that's good to help figure out the problem.


Also, both CPU and Battery heat are pretty normal when doing anything intensive. However it seems that if you are sure that this only starts taking place with the screen off it would clearly be a bug in the app and there is little anyone but the developer can do unfortunately.

I'm curious though, how are you measuring CPU usage and frequency?
Are you rooted? Using setCPU or something similar?
 
Upvote 0
OK, calm down a bit, I'm just trying to help. :)

You didnt mention offline playlists that I saw, but that's good to help figure out the problem.

Also, both CPU and Battery heat are pretty normal when doing anything intensive. However it seems that if you are sure that this only starts taking place with the screen off it would clearly be a bug in the app and there is little anyone but the developer can do unfortunately.

I'm curious though, how are you measuring CPU usage and frequency?
Are you rooted? Using setCPU or something similar?

Sorry about my response. English isn't my native language so I might sounds a bit rude sometimes... And it seems that I forgot to mention offline-playlists too. Sorry again...

Please see: http://androidforums.com/samsung-galaxy-s2/343066-spotify-galaxy-s2-awful.html#post2843070 for more details. I am not root, standard SGS2.
 
Upvote 0
No worries,

I just wish I could help you more, though I'm not sure I have any better answer for you.

Where are you running that command by the way, in adb shell?

Good to hear. Thanks for the feedback!

I am using Android Terminal Emulator (by Jack Palevich). Any terminal-emulator should do. Those are standard unix-commands.

For those who don't know what they do:
while() do ... done: Infinite loop
cat file_name: Prints the contents of the file
sleep s: Waits s seconds
top -m 20 -d 60: Prints top 20 cpu using threads every 60 seconds
You should give it CTRL-C when you are ready. Volume Down (or UP) + C.

I am hopping that this problem can occur with other phones too. It is quite hard to detect after all... Spotify will never fix this if this occurs only with SGS2. Please report this to spotify through getsatisfaction if you have the same problem. http://getsatisfaction.com/spotify/topics/gui_process_uses_a_whole_cpu_core_when_screen_is_off
 
  • Like
Reactions: alostpacket
Upvote 0
My main problem is the dramatically reduced battery life. Battery doesn't get hot. It is actually surprisingly cold, even when in heavy use. It may become slightly warm during charging.

Upper part of the phone gets really hot when this bug is present. Normally the whole phone is almost ice cold.

ADD: CPU time is even higher when the screen is turned off for a long time. Once I got somewhere round 22 minutes cpu time per 25 minutes spotify usage. The whole phone became so hot that it was difficult to hold in my hand.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones