1. Download our Official Android App: Forums for Android!

Spotify makes phone hot, kills battery?

Discussion in 'Android Apps & Games' started by gentoolkit, Jun 22, 2011.

  1. gentoolkit

    gentoolkit Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    May 27, 2011

    May 27, 2011
    9
    1
    6
    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:

    ADD: How I know it is CPU problem:

    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.
     

    Advertisement

  2. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,971
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,971
    3,604
    513
    Android App Developer
    NY
    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.
     
  3. gentoolkit

    gentoolkit Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    May 27, 2011

    May 27, 2011
    9
    1
    6
    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.
     
  4. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,971
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,971
    3,604
    513
    Android App Developer
    NY

    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?
     
  5. gentoolkit

    gentoolkit Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    May 27, 2011

    May 27, 2011
    9
    1
    6
    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.
     
  6. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,971
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,971
    3,604
    513
    Android App Developer
    NY
    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?
     
    gentoolkit likes this.
  7. gentoolkit

    gentoolkit Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    May 27, 2011

    May 27, 2011
    9
    1
    6
    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
     
    alostpacket likes this.
  8. takeshi

    takeshi Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    3,350
    Joined:
    Dec 6, 2009

    Dec 6, 2009
    3,350
    283
    163
    Heat will typically affect the battery first. My Droid won't even charge when it heats up from extensive Google Maps Nav use until it cools back down.
     
  9. gentoolkit

    gentoolkit Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    May 27, 2011

    May 27, 2011
    9
    1
    6
    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.
     

Share This Page

Loading...