Swappa’s New App Helps You Value Your Device

There comes a sad time in everyone’s life where you must part ways with your … more

Xiaomi Sold 34.7 Million Phones In 6 Months

2015 has been a phenomenal year for Xiaomi so far. With a stellar rise in 2014, 2015 saw … more

Sprint Reacts To Jab From T-Mobile

America’s cellular network space has always been a battle of the big four: Verizon, AT&T, … more

Floating Apps with Rovers – XDA App Review

There are a lot of great launchers to help customize your phone. Some Launchers allow … more

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

595 posts
Thanks Meter: 91
By tronmech, Senior Member on 5th March 2011, 01:43 AM
Post Reply Subscribe to Thread Email Thread
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 01:54 AM.
The Following 19 Users Say Thank You to tronmech For This Useful Post: [ View ]
28th March 2011, 07:05 PM |#2  
Junior Member
Thanks Meter: 0
Very useful post. Thanks!
28th March 2011, 09:45 PM |#3  
dustrho's Avatar
Senior Member
Flag Oswego, IL
Thanks Meter: 58
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, 10:32 PM |#4  
Neo-Nemesis's Avatar
Junior Member
Flag Lyon
Thanks Meter: 0
I've noticed this issue with mediaserver too but never managed to find what's causing this.

Thanks for the tips
29th March 2011, 01:17 AM |#5  
Senior Member
Flag Markham
Thanks Meter: 63
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, 03:37 AM |#6  
infamousjax's Avatar
Senior Member
Flag Atlanta
Thanks Meter: 29
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, 06:23 AM |#7  
Neo-Nemesis's Avatar
Junior Member
Flag Lyon
Thanks Meter: 0
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, 07:29 PM |#8  
Junior Member
Flag Chennai
Thanks Meter: 2
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, 03:00 AM |#9  
OP Senior Member
Thanks Meter: 91
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, 05:21 AM |#10  
Senior Member
Flag Orem, Utah
Thanks Meter: 17
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