New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vladbaca
Old
#1  
Member - OP
Thanks Meter 5
Posts: 68
Join Date: Jul 2011
Default [Q] Mediaserver drain - normal or not?

Hey guys, I've flashed Res. Remix 2.5.3 a few days ago, with default fluxi kernel, and everything is working pretty darn nice.

However, the other night a watched a 2.5 hours long concert on the youtube app (wifi of course), and I can see that in my battery stats the process Mediaserver has drained a lot of battery. See the pics below:




The sudden drop of battery level at about 3 hours in doesn't matter (I was playing Temple Run and the phone froze and had to pull the battery out). The relevant point is the Mediaserver drain compared to the Screen drain. Is this normal? (note that the Mediaserver drained the battery only when I had the screen on; it's not a wakelock that prevents the phone from deep idle)
 
UnwiredDroid
Old
(Last edited by UnwiredDroid; 9th July 2012 at 04:01 PM.)
#2  
UnwiredDroid's Avatar
Senior Member
Thanks Meter 39
Posts: 273
Join Date: Nov 2011

 
DONATE TO ME
Once I had similar problem, there was somethnig that drains my juice. Its my habit to put my earbud before I sleep and usually the power is around 50%+ and to my surprise when I woke up my phone was dead. So I checked my status and my phone was awake the whole night. Even that my Media Player is already off when one album is finished playing.

To cut the story short, I uninstalled the apps especially those requires internet connection and sync. Then try to observe your phone if it will continue to drain.
Device: Samsung Galaxy S II I9100 (International version)
Android: 4.1.1 Super Nexus (Jelly Bean) - build 4
Kernel: Dorimanx: 5.86 with Mali Driver
Baseband: DXLP9 + RIL Fix
My Blog: Philippine Android News
 
przemcio510
Old
#3  
przemcio510's Avatar
Senior Member
Thanks Meter 195
Posts: 904
Join Date: May 2012
Media server keeps your phone awake while playing media files.
 
okmijnlp
Old
#4  
okmijnlp's Avatar
Senior Member
Thanks Meter 240
Posts: 878
Join Date: Oct 2011
Location: Blackpool

 
DONATE TO ME
Perfectly normal. It's classed as any audio, such as music, YouTube, etc.

Sent from my GT-I9100 using xda app-developers app
The Following User Says Thank You to okmijnlp For This Useful Post: [ Click to Expand ]
 
frankie_p
Old
#5  
Junior Member
Thanks Meter 2
Posts: 7
Join Date: Jul 2012
Location: Louny
Default Normal functionality, abnormal battery drain

Quote:
Originally Posted by okmijnlp View Post
Perfectly normal. It's classed as any audio, such as music, YouTube, etc.

Sent from my GT-I9100 using xda app-developers app
I just registered to XDA trying to find a solution to this problem. Currently on Paranoid Android ROM 1.6a. I agree that the way the media server works is normal. but there is an obvious bug where it keeps re-scanning or mis-handling some specific file which causes it to skyrocket on the battery use. I have been using the PA ROM with great battery until suddenly the media server started eating away my battery. From what I have read so far, this seems to be a bug that's been around for quite a while. Since I have not updated my music collection on my SD card for a while, the only other culprits are either some of the new apps I installed included some media file that is causing the weird behaviour from the media server or some photo or current music file that suddenly went corrupt or similar scenario. The 'fix' is supposed to be removing all your media and go one by one until you see the spike, or even just do a full wipe and re-install and keep a watch on what you install to see if you find the app that caused the spike. Another option is to add .nomedia to almost all directories except photos, videos and music and it also should improve the issue. I personally won't go over 4000 songs and 1000 photos just to fix the battery drain. I am following quite a few forums in hope that someone will find a proper fix.