Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

"Who is this 'Mediaserver' and why is he sucking my battery dry?"

OP tronmech

5th March 2011, 02:43 AM   |  #1  
OP Senior Member
Thanks Meter: 84
 
573 posts
Join Date:Joined: Nov 2010
Just solved a really annoying battery drain issue. Figured I'd post the results...

I noticed last week that my phone was going through the battery MUCH faster than normal. A check of Settings/About Phone/battery use told me that the "Mediaserver" was using over 35% of my battery, surpassing the phone standby -- which is saying a LOT given what my T-Mo reception is like.

Now, I'm still learning, so when the description says is does something with running apps, I assume that the issue is an app I recently installed, so I remove apps I recently installed or updated. Nope.

I saw another post about a laggy G2 that seemed to also have battery issues. It recommended using Watchdog Lite to see what was happening. So, off to the Android Market.

After installing Watchdog Lite, I saw that the CPU was 0% idle with 75-95% "nice." Well, no idle = battery suckage, so off to see what tasks are using CPU. The initial check didn't show anything -- until I enabled monitoring "Phone Processes." The alerts for the "mediaserver" "linux task" showed that this process was taking every cpu cycle it could. Off to Google.

Did a search on "android mediaserver loop" and found a couple of bugzillas that essentially said that a corrupt media file (pic, movie or sound) could send mediaserverover the edge. So, I started to move *every* picture off the sd card onto my computer's HD.

Knew I was on to something when mediaserver stopped going crazy once usb storage was turned on. So, I moved all the image and movie files off and turned off usb storage. The CPU spun back to100% busy, but slowed back down to about 9o% or more idle.

Now all I have to do is find the bad file or files, and I can add it to the bugzilla.

EDIT: It seems that this has also made the cooliris gallery wake up and start updating again. So anyone seeing that the gallery isn't updating may need to see if their mediaserver linux task is unusually busy. If so, offload as many media files as possible and see whap happens...

Sent from my T-Mobile G2 using Tapatalk
Last edited by tronmech; 5th March 2011 at 02:54 AM.
The Following 19 Users Say Thank You to tronmech For This Useful Post: [ View ]
28th March 2011, 08:05 PM   |  #2  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Mar 2011
Very useful post. Thanks!
28th March 2011, 10:45 PM   |  #3  
dustrho's Avatar
Senior Member
Flag Oswego, IL
Thanks Meter: 58
 
879 posts
Join Date:Joined: Sep 2009
More
I saw this sucking down battery for me as well while playing around with CM7 nightlies, but never thought too much about it. Good find!
28th March 2011, 11:32 PM   |  #4  
Neo-Nemesis's Avatar
Junior Member
Flag Lyon
Thanks Meter: 0
 
24 posts
Join Date:Joined: May 2010
More
I've noticed this issue with mediaserver too but never managed to find what's causing this.

Thanks for the tips
29th March 2011, 02:17 AM   |  #5  
Senior Member
Flag Markham
Thanks Meter: 59
 
441 posts
Join Date:Joined: Jun 2010
More
there might be a difference here but media server from G1 (htc dream) was the music stock music player. it might be different here but thats what it was in the G1
29th March 2011, 04:37 AM   |  #6  
infamousjax's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 29
 
833 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by lil-devil

there might be a difference here but media server from G1 (htc dream) was the music stock music player. it might be different here but thats what it was in the G1

actually the stock music player is /system/app/music.apk on all vanilla android phones.
29th March 2011, 07:23 AM   |  #7  
Neo-Nemesis's Avatar
Junior Member
Flag Lyon
Thanks Meter: 0
 
24 posts
Join Date:Joined: May 2010
More
I believe that music player depend of mediaserver.

I have installed system panel and noticed a 30% cpu usage when I play some music with Cyanogen 7 RC2.

I will try with another Rom to compare the result.
11th August 2011, 08:29 PM   |  #8  
Junior Member
Flag Chennai
Thanks Meter: 2
 
1 posts
Join Date:Joined: Aug 2011
More
I found my cause for the problem
I got really frustrated with the Galaxy S2 because of this mediaserver issue...

From wat i have researched, I found that once the 'gallery' is opened and closed,
  • Phone keeps using the cpu 100%.
  • Phone's back becomes red hot.
  • The battery drains rapidly in 2-3 hours.
  • I plug it on to a charger it doesn't charge up
  • the mediaserver process comes up in the 'battery usage' with 60% usage


Now, I switch off the phone. Boot it up. Charge the phone to 100%. Its all perfect and no heating up too. After 7 hours of usage, no mediaserver process in 'battery usage'.

I went into the gallery once. Browsed some photos. And Closed it.
Now it all started again. I've tried this 3 times now.

And I have no idea wats wrong with the gallery.
The Following 2 Users Say Thank You to itsforsab7 For This Useful Post: [ View ]
13th August 2011, 04:00 AM   |  #9  
OP Senior Member
Thanks Meter: 84
 
573 posts
Join Date:Joined: Nov 2010
Do what I did and either move all the media files off the sd card or drop ". nomedia" files in strategic locations. (Don't forget to look all over the card because they could be in unexpected places.

Sent from my T-Mobile G2 using Tapatalk
27th December 2011, 06:21 AM   |  #10  
Senior Member
Flag Orem, Utah
Thanks Meter: 17
 
111 posts
Join Date:Joined: Jan 2011
More
could this mediaserver also be caused by lots of Pandora listening?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes