[Q] mediaserver battery drain - Galaxy S III Q&A, Help & Troubleshooting

Hi all,
I'm having some trouble with battery drainage. Main cause is mediaserver, I have searched, and (for other devices) they suggested moving my pictures and videos off the sdcard. I have no additional media files since before this mediaserver issue began so I don't know what the problem is.
As you can see from the image, battery drains normally, then the sudden drop.
Can anyone shed any light on this? Are there any other people with the same issue?
One thing I did was flashing latest firmware from sammobile. Was fine for the first few days but suddenly this happened..

I used to have this problem. I think it might have been caused by a corrupt media file, which made the media scanner get "stuck" on that file. I deleted everything in my /sdcard/ folder which solved the issue. I'm not 100% sure, that this was the solution though, since I did a few factory resets at the same time, but the problem is gone and so is the excessive battery drain.
Sent from my GT-I9300

member68 said:
I used to have this problem. I think it might have been caused by a corrupt media file, which made the media scanner get "stuck" on that file. I deleted everything in my /sdcard/ folder which solved the issue. I'm not 100% sure, that this was the solution though, since I did a few factory resets at the same time, but the problem is gone and so is the excessive battery drain.
Sent from my GT-I9300
Click to expand...
Click to collapse
when you say deleted everything, literally the entire contents of the sd card? on my nexus there is no external one so that means deleting all the notification/gallery/system files too??

yep wanna ask the same thing. I haven't actually had any media I've added myself, which probably means it may be a file from one of the apps.
Will I have to go through all of them and delete? The mediaserver seem okay now but I'm worried about when it might go off again..
Sent from my GT-I9300 using xda premium

Had the same problem yesterday.. no new apps or anything. Looks like I solved it by emptying my photo roll. Suspecting it could be a video I recently filmed. The thumbnail was all black, so guessing that was the culprit.
Edit: And just after typing this I noticed Media was up at 20% usage again.

The problem started happening again. It's really hard to pinpoint this problem. For me, it only happens charging, but not when the phone is unplugged. I hope this is a rom issue which gets resolved in the next version.
Sent from my GT-I9300

Are u using viber or something similar? I never saw mediaserver in battery hog list unless i started using viber

I've never even heard of Viber. I might have a different issue though since I don't have a constant wake lock. Whenever my phone started acting up, I found a lot of repeating logcat messages related to the media scanner. It might be something completely different though.
Sent from my GT-I9300

maybe a fix
i had the same problem after wipe clean and fresh install of JB.
I dont know exactly what solved it but here is what i did:
1. disable media store
2. clear media store data
2.5 executed playerpro application while media store is disabled
3. deleted all .nomedia files i could find
4. deleted the Player Pro album art directory content.
5. deleted all image caches of all applications i could find
6. enabled media store

Google doesn't really care?
http://code.google.com/p/android/issues/detail?id=37298

Related

[Q] ICS Passion v7 - "Media" process killing battery

The android.media.process is taking a large chunk of my battery. I haven't seen this process on any of the previous ICS passion roms. Can anybody tell me why this is constantly running?
Here's a couple screen shots. I would ask the dev but I'm a couple posts away from being able to do so. Hopefully he'll read this and explain why it would be different than the previous versions..
Try clearing data for all those services mentioned.
It's weird, I've seen this problem a lot in the thread, but I don't have it.
What are you syncing, by the way? Which do you have enabled?
Only thing synced is my gmail. I make sure to go through all of the settings and uncheck anything that would run in the background. I'll update after I clear out my cache.
Alright, hm.. could be a faulty app, too.
Let me know how it goes.
Cleared cache from recovery, set permissions.. etc. Its still running. It must be something different with this rom... I may just return to 6.5. I had no problems with it and I have gotten used to no GPS.
Sent from my SGH-T959 using XDA App
pillowmissile said:
Cleared cache from recovery, set permissions.. etc. Its still running. It must be something different with this rom... I may just return to 6.5. I had no problems with it and I have gotten used to no GPS.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I'm having this issue with V7 too. I read online that it could be a corrupt media file causing it. Apparently, you need to move your media off you SD card to see if it helps.
Haven't tried it yet
You can figure out what media it is scanning and then in that file open it up and put a .nomedia file in it and when your media scanner is engaged, it will skip over that particular file.
Be careful with .nomedia files b/c if you put them in say DCIM or you album art, take a wild guess what you'll see in your media player or your gallery.
.nomedias work as long as your make sure you know where they go. Wouldn't make sense to put on right in the root of your SD now would it? But find the file it keeps scanning and put one in there.
In my experience just let media process run until it eventually stops 10-15 min.. then reboot. Should stop excessive CPU usage after a couple reboots and data built.
I also .nomedia titanium backup and CWM.
Otherwise you may have a corrupt file causing this. I thought so at 1st but maybe its something with this ROM. I formatted my SDcard and media process still loose at boot. So just give time for it to settle and it usually goes away.
Sent from my SGH-T959 using XDA App

Media scanner battery drain - searching for reason

Hi there,
As many folks around i am experiencing massive battery drain from *wakelock*/mediaplayer while music playback.
For now, i have tried everything:
- full wipe
- music playback on fresh wiped rom
- formatting sdcard / internal storage
- disabling media server
- debugging with logcat
- ...
Currently, the mediaserver drains more power then any other process, including screen. The phone gets not hot, but warm while only playing music with screen off. That was not happening before, as i listen music daily.
After all, the problem is most likely caused by a corrupt file, but how can i locate this file ? I have 2300 mp3s on my phone, so testing every single one would be a bit complicated...
Sent from my GT-I9100 using xda premium
Have you tried using another music player?
Sent from my HTC Wildfire using xda premium
Yep, apollo, poweramp, stock..
In case of poweramp i can differ, mediaserver holds a different wakelock as poweramp
Sent from my GT-I9100 using xda premium
Nothing new...
I killed my whole mp3 directory... left only one mp3 file - and guess what? Still mediaserver drain while playback...
Sent from my GT-I9100 using xda premium
Yeah I have the same problem too, not very fun seeing your battery drop!
News about that ? Same problem here.
Envoyé depuis mon Galaxy Nexus avec Tapatalk
Nah... now with cm10 it is even worser for me..
Sent from my GT-I9100 using xda premium
Has anyone found a fix yet?
I've been seeing this behaviour as well on my CM10 GT-I9100
Removing media files helps in shortening the wakelock
I don't see much impact from video files or pictures, I do however see it with music.
Once I start adding mp3's mediascanner service takes longer and longer.
Eventually it drains about 10% of my battery at startup with a wakelock of about 10 minutes (more or less)
At one point, I found Google+ had been installing a 'hangout_ding.mp4' file to my sdcard which was corrupt. This was only on my phone, my tablet was unaffected. A scan of my system log (watching through ddms the boot process) showed when it couldn't read the file information properly. Removing the file would get it working again, but it kept replacing it, I ended up disabling the app and almost forgetting about it. Suffice to say, I remember seeing that this was most common with mp4s, have you also isolated your ringtones and such? If a newer phone, does it have an internal storage (besides /data)? If so, have you tried looking for the culprit there as well?
daveid said:
At one point, I found Google+ had been installing a 'hangout_ding.mp4' file to my sdcard which was corrupt.
Click to expand...
Click to collapse
This is the main problem - finding the file(s) responsible for the misbehaviour.
Or is it the sheer number of files involved? (with pics + music it goes in the thousands)
I used a media checker on the sdcard offline to see which of my music files were bad, but there were many and so many different errors.
There are no easy to use apps afaik that we can use to find them.
It's hard to figure out what trips mediascanner.
You mentioned ddms.
I'll try and use that first to debug mediascannerservice.
thanks, and I'll report my findings
1ist ndayedro
I used ddms to monitor the messages of the mediastorage app while it scans.
At first it found some corrupt media files which I consequently removed.
After that no more useful warnings or erros popped up.
Removing the few corrupt media files changed nothing in the wakelock time...
MediaScannerService still uses full cpu at boot for about 5 minutes...
Any other ideas?

[Q] Battery is @ 77% with 22m off charge, help please HAH!

So a bit of background. I'm running:
ROM: [ROM][AOSP][JB][4.1.2][JZO54K] SuperNexus - I777 - BUILD 5
Kernel: Siyah - JELLYBEAN - ICS [v4.3.3]
Currently phone is telling me media is 82% of my usage and I have absolutely no clue what that could be. I'm not downloading anything.
I've had the battery for over 1+ year so I know I'm due for a replacement but this usage rate seems ridiculous.
Any thoughts? Thanks friends.
Media scanner going crazy. Download an app from the play store to stop it from acting wonky. Yes u can find the name of the app. I believe in u.
Yeah one night my media scanner went crazy and made my phone feel like it was about to melt. It was draining the battery on the charger. I didn't download an app to stop the media scanner but I don't see it scan anymore. Now I just use an app/widget that scans when you press it.
Sent from my SGH-I777
Had this problem a long time ago..
Try adding a blank file named .nomedia on the internal and sd card root...
That fix it for me. Good luck there hope this helps
Sent from my SGH-I777
I had that issue, media scanner would not stop. I took my 32 GB SD card out, moved the files I needed, reformatted it (didn't use quick format, did it the long way), stuck the files back, and put it back in the phone. Now no more media scanner running always. I had read somewhere that the file structure on the external media card could get messed up causing that issue.

[Q] galaxy s2 overheating after official 4.1.2 update

i updated my galaxy s2 i9100 2days back.uk version.but since installation my 4n overheat like hell and battery drains like hell.I USE MY S2 AS A TAB.so it always in airplane mode.never occur such issue with gingerbread.is cpu clock over heating?i updated via odin.all my gingerbread applications there after i upgreaded.i like the update.but overheating is really problem.what should i do my dear friends????i am from india region.any help????plzzzzzzzz
THANK YOU :crying:
anjuhiru said:
i updated my galaxy s2 i9100 2days back.uk version.but since installation my 4n overheat like hell and battery drains like hell.I USE MY S2 AS A TAB.so it always in airplane mode.never occur such issue with gingerbread.is cpu clock over heating?i updated via odin.all my gingerbread applications there after i upgreaded.i like the update.but overheating is really problem.what should i do my dear friends????i am from india region.any help????plzzzzzzzz
THANK YOU :crying:
Click to expand...
Click to collapse
You flashed which ROM in your phone?? XXLSJ or XWLS8 ?? Is it a custom ROM/leaked??
Official update in india should come in within a few weeks(coz S3 JB already came)...go back to stock ICS and you can wait for it..
For now try Wiping your Battery Stats and see if it gets fixed..
Press Thanx if i helped..
thanks 4 help
[my dear friend it is xwls8.only problem is when screen on also 4n is heat like hell.what can i do?is it softwear problem.what is it may be cpu overheating?what is cpu optimum level?...thanks 4 ur help bro :good: hope further assistance.
Probably an overactive media scanner (android media process). I have the same problem since updating to the stock official 4.1.2 XXLS8.
I'm not sure what the solution is. You can disable the android media process (application manager -> media storage -> select and disable). However, if you do so then not only do you lose access to media files in the standard music and video players, but you also lose all your sound files for ringtones, notifications, email and SMS alerts etc. So as solutions go that one's a bit rubbish...
Rescan Media Root is also ineffective. I don't know why, possibly something to do with Jellybean that prevents it from working.
I've seen many posts in different forums about this, it seems to be a common issue with the 4.1.2 JB releases. Some say it is partly fixed in JB 4.2 but that isn't much use to us right now.
You could try reformatting your memory card as some say that corrupted files cause the problem. However, others say this 'fix' is unsuccessful and the excessive scanning continues regardless.
Mr Anderson said:
Probably an overactive media scanner (android media process). I have the same problem since updating to the stock official 4.1.2 XXLS8.
I'm not sure what the solution is. You can disable the android media process (application manager -> media storage -> select and disable). However, if you do so then not only do you lose access to media files in the standard music and video players, but you also lose all your sound files for ringtones, notifications, email and SMS alerts etc. So as solutions go that one's a bit rubbish...
Rescan Media Root is also ineffective. I don't know why, possibly something to do with Jellybean that prevents it from working.
I've seen many posts in different forums about this, it seems to be a common issue with the 4.1.2 JB releases. Some say it is partly fixed in JB 4.2 but that isn't much use to us right now.
You could try reformatting your memory card as some say that corrupted files cause the problem. However, others say this 'fix' is unsuccessful and the excessive scanning continues regardless.
Click to expand...
Click to collapse
Try this workaround:
Copy you DCIM folder to your External SD Card. Empty Internal SD card's DCIM folder (files, not the folders, just leave it empty).
Set your external SD Card's DCIM folder to default for pics & video.
Reboot.
gastonw said:
Try this workaround:
Copy you DCIM folder to your External SD Card. Empty Internal SD card's DCIM folder (files, not the folders, just leave it empty).
Set your external SD Card's DCIM folder to default for pics & video.
Reboot.
Click to expand...
Click to collapse
tried this, it worked. thanks
good
i will try it and see brothers...thanks any way:good:
gastonw said:
Try this workaround:
Copy you DCIM folder to your External SD Card. Empty Internal SD card's DCIM folder (files, not the folders, just leave it empty).
Set your external SD Card's DCIM folder to default for pics & video.
Reboot.
Click to expand...
Click to collapse
Sadly no change for me.
Emptied DCIM on internal SD, camera was already set to external SD for storage. Rebooted, and Android Media Process is now busy hammering my CPU again.
This is so frustrating. I lose 50% battery in ten hours, and I'm now scared to actually use the device at all when I'm out and about for fear of losing power altogether. Google have known about it since October - see this issue thread.
I had similar issues after I've installed the same rom on my phone. After a few awful days of fiddling with it and endless cycles of recharging, I've decided to do a clean reinstall. After I did a clean install last night, everything seemed better. The battery wasn't overheating, wasn't even draining that fast. During the night (5 hours of sleep I got, actually), BetterBatteryStats had shown me that I had only ~5 minutes of awake state vs the 5hrs of deep sleep.
But! Today after work, my battery started going crazy again. Left work with ~35% and I've discharged it completely after some 30-40 minutes of Ingress play (gps + 3g + screen on). Something's awfully wrong with this version, no fix worked for me (except the mediascanner issue which resolved itself after I did a clean install).
Any and every advice is more than welcome.
Mr Anderson said:
Sadly no change for me.
Emptied DCIM on internal SD, camera was already set to external SD for storage. Rebooted, and Android Media Process is now busy hammering my CPU again.
This is so frustrating. I lose 50% battery in ten hours, and I'm now scared to actually use the device at all when I'm out and about for fear of losing power altogether. Google have known about it since October - see this issue thread.
Click to expand...
Click to collapse
Try freezing gallery as soon as it boots, check with betterbattery stats if media scanner stops when you do.
If it stops it within 50 seconds or so make sure you have no files at all in internal DCIM, only the -empty- cache folder inside.
Sent from the little guy
Not working
did same but it getting worse and worse.....this is worst update ever seen.thinking roll back to gingerbread again.....its better than this....any custom roms help?is there anyone know better solution.....
anjuhiru said:
did same but it getting worse and worse.....this is worst update ever seen.thinking roll back to gingerbread again.....its better than this....any custom roms help?is there anyone know better solution.....
Click to expand...
Click to collapse
Post your battery detail screen shot.
Are you all stock?
Sent from the little guy
gastonw said:
Post your battery detail screen shot.
Are you all stock?
Sent from the little guy
Click to expand...
Click to collapse
Hello,
I have also installed JB through Odin and facing same battery drain issue. It's finishing like a in a day without using any high app ( FB, Browsing, Twitter etc)
Please help me or I'll need to roll back to ICS .
you're kidding me right?
20 hours with 35% left on battery and 44% screen usage?
Bluetooth on, avast and who knows what more crap you got there. Every app running in background drains your battery, but again, you are looking at a 3 % / hour drain.
Sent from the little guy
gastonw said:
you're kidding me right?
20 hours with 35% left on battery and 44% screen usage?
Bluetooth on, avast and who knows what more crap you got there. Every app running in background drains your battery, but again, you are looking at a 3 % / hour drain.
Sent from the little guy
Click to expand...
Click to collapse
No, I am not kidding. it was just opened to test and received a reply on twitter once the wifi connected. If I am not using my phone and let it without open anything. Next day it will be at 70% which does not seem right to me. ICS was much better, I was using wifi and 3g as well almost all day than it used to go be on 40-50%.
MrGadgetGuy said:
No, I am not kidding. it was just opened to test and received a reply on twitter once the wifi connected. If I am not using my phone and let it without open anything. Next day it will be at 70% which does not seem right to me. ICS was much better, I was using wifi and 3g as well almost all day than it used to go be on 40-50%.
Click to expand...
Click to collapse
Post your partial wakelocks since boot.
gastonw said:
Post your partial wakelocks since boot.
Click to expand...
Click to collapse
Here you go!! Just for info, the android thing on top is an Easy battery saver and avast is security stuff which was running in ICS as well.
Also, Could you please tell me the process to roll back ICS as I have downloaded the file from samobile, in case I need
It's not rooted and neither locked with operator.
Thanks for you help
Here is the pictures -
MrGadgetGuy said:
Here is the pictures -
Click to expand...
Click to collapse
Since Boot, not since unplugged.
gastonw said:
Since Boot, not since unplugged.
Click to expand...
Click to collapse
It's appearing only two options screen off or unplugged. I have attached both of them.

[Q] "Media" app draining my battery?

Hi all, thanks in advance for any help you can offer.
I've been going between 2 ROMs recently (Tron 2.1 and PAC-Man 23.0). For both of them, it is showing that the "Media" app is using a larger percentage of my battery (around 18%). I'm just not sure what this app is, or how to disable or remove it.
When I click on the app from the Battery details, "Force Stop" and "Report" are disabled buttons. Down below, it shows the included packages being "Downloads", "Media Storage", "Download Manager", "DRM Protected Content". I haven't been downloading anything, nor adding songs or movies, so I'm not sure what this "app" is spending its cycles doing.
Thanks!
I guess that it would be a better idea to report this incident to the ROM developer..
I have the same problem sometimes. After a google search I found that basically, your phone is searching for all the media on your internal and external storage. What causes the wake lock is that it is searching for or has found a file that is corrupt. It basically gets stuck on that file for awhile.
I had the wake lock for a couple days then it just went away.
Sent from my Infected Rezound using xda app-developers app
sanders539 said:
I have the same problem sometimes. After a google search I found that basically, your phone is searching for all the media on your internal and external storage. What causes the wake lock is that it is searching for or has found a file that is corrupt. It basically gets stuck on that file for awhile.
I had the wake lock for a couple days then it just went away.
Sent from my Infected Rezound using xda app-developers app
Click to expand...
Click to collapse
That is really interesting! Using a previous ROM, I do have a few corrupted images from a camera-app-gone-haywire. I'll have to clean those out (which I should have done anyway), and see if that helps.
Great idea!
No problem! I should go through and clean my SD card out, but I am too lazy and don't have the time to spend on it. I just deal with it because I usually have a charger nearby most of the time.
Sent from my Infected Rezound using xda app-developers app
Check to make sure the .thumbnails folder in the DCIM folder isnt overloaded with 2GB of images. Dont use the stock camera app regardless what ROM you are on. It accesses the stock Gallery app which in turns eventually creates thousands and thousands of "thumbnail" images. More like small pics at about 400x300 resolution. It JAMS up android.process.media .. hell.. it would make my phone hot because sometimes it ran straight for 24 minutes killing cpu.. deleted all the files in there and stopped using the stock app, no more problem.
THE-COPS said:
Check to make sure the .thumbnails folder in the DCIM folder isnt overloaded with 2GB of images. Dont use the stock camera app regardless what ROM you are on. It accesses the stock Gallery app which in turns eventually creates thousands and thousands of "thumbnail" images. More like small pics at about 400x300 resolution. It JAMS up android.process.media .. hell.. it would make my phone hot because sometimes it ran straight for 24 minutes killing cpu.. deleted all the files in there and stopped using the stock app, no more problem.
Click to expand...
Click to collapse
So what do we do when we have been using the stock gallery and camera app? Can I delete the .thumbnails folder? What kind of camera and gallery app do you recommend? I have both stock samsung and stock android camera that I use everyday...
I have been using my phone (unrooted stock) for quite some time now and only recently did the media act up on me and killing the battery. I have rooted and install custom rom and reformatted my sdcard.
It'll now i kinda check the battery more frequently.
Dan_L said:
So what do we do when we have been using the stock gallery and camera app? Can I delete the .thumbnails folder? What kind of camera and gallery app do you recommend? I have both stock samsung and stock android camera that I use everyday...
I have been using my phone (unrooted stock) for quite some time now and only recently did the media act up on me and killing the battery. I have rooted and install custom rom and reformatted my sdcard.
It'll now i kinda check the battery more frequently.
Click to expand...
Click to collapse
Just following up (I asked the original question). What I've found is that between various ROMs, I have two images folders on my sdcard. Mostly, I just went through and deleted a few invalid images (I think my Tron 2.0 ROM used to take corrupt images, but no longer). I cleaned out many many images I no longer needed as well.
Also, not sure if this is related: I uninstalled and reinstalled Google+ (which has an image auto-backup feature). I had been restoring it from a backup, and I think it got corrupted along the way. It was no longer automatically backing up images, for example.
Since then, I've been in much better shape, and I haven't noticed the Media process taking as much battery.

Categories

Resources