Hi guys
I recently noticed my Nexus discharging over 50% of its battery over night while in standby. Looking it up in the settings turned out that the process called Media Server is the cause with nearly 50% of the power being drained by it.
Can someone help me out with this issue - what can I do to resolve it?
I'm running stock 4.3, rooted.
Many thanks in advance!
try this:
go in settings>Apps>media server>clear cache and data
this will let it rebuild the database
Reboot after you unplug charger. Every time.
Sent from my cellular telephone
My wife's phone had a corrupt video file (just a few bytes and a funny name) and once I deleted it, the media server drain disappeared.
Related
I alrdy posted a question about this but I figured it out myself in the meantime (i think):
My phone has/had a very high battery drain and I was wondering why. So I kept watching the battery history over and over.. and yesterday I recognized that sometimes the phone doesnt seem to go into sleep mode. When you see the battery history, the "Execution" % (the thing that shows how much % of uptime the phone has been executing/running something) went up even when the phone display was turned off. This meant that some process had to be running.
So after watching the thing closer for a while I noticed that its the mediaserver process. Restarting the phone did help. But after a while the problem was back. So after some more investigation I found out that (in my case) Fruit Ninja was causing this. When I played it, afterwards the mediaserver would keep running. I tried to kill the process, both in app settings, and even in terminal mode, but without sucess. Only restarting the phone did help so far.
..
So if you having very high battery drain you could look into this. There might be other apps out that cause this too.
To see if thats the problem check battery history and note/remember the actual execution %. Then turn off display/let it lie for 5 or 10 minutes, and check the % again, if it went up this or a similar problem might cause ur drain.
--
If someone can figure out a way to restart/fix mediaserver without restarting the phone it would be awesome.
To view the process in terminal:
ps | grep media
tried killing with -15 and -9 both didnt really work, although the response was that the process was terminated/killed. So maybe there is something else wrong than the process itself.
You might be on to something.
In the last few days I have been seeing horrendous battery drainage.
I charge my phone in the evening and next morning it is at 40% left!
I also thought it must have had something to do with the phone not going to sleep.
Battery history tells me "Time without Sleep: 4d 6h", in the last 110 hours since restart!
So something is preventing it from going into sleep mode.
Thanks for sharing, I will see if I can test it a little more.
for me exactly the same,
mediaserver up and ruining in background after playing ' pocket legends', restart did help.
running on original samsung rom 2.1 jm2, just rooted.
Sent from my GT-I9000 using Tapatalk
I can confirm this problem (generated by Fruit Ninja apparently). killing the service with the terminal emulator (using root and the pid) and then restarting it seems to work, but it's not really user friendly.
Should find a way to avoid the mediaserver to loop or at least automatize the process (for example with some sort of background script that kills/restarts the mediaserver if it has 5-10%+ cpu usage for 5 minutes or more pooling every minute)
Edit: killing the process and restarting it brings it to low cpu usage, but I'm not shure the phone goes back to sleep mode as it should
Edit2: I don't really understand... I had the phone on for 2 days, then I've started fruit ninja and the mediaserver went crazy. Killed it several times and everytime I've restarted the game the problem come back (and this is all ok).
I was pretty shure the problem was in some .png in the .apk file since there are people with a similar problem caused by corrupted images or videos, so i extracted them and opened one by one: no problem at all.
Restarted the game, killed it.. and the mediaserver was ok at 0% cpu usage
I guess there is a combination of more elements here.
I tested the game, turn off, 7hrs of idle later I lost 40% battery!
The same problem here ! I need to charge my phone every night. If i leave the phone over the night it may take up to 30 % of the battery
Hoi,
My batt. drained in less than six hours, so I tried different methods to get around this. Switching 3G off and so on. But nothing helped in my case! So I went back to the store, explained the problem... The guy came with some of the usual excuses.... So finally I've dicided to buy a NEW batt. With that all my problems just went a way. I average 2 to 3 days with moderate use. Checking mail, some news,Radio for like 1 hour. About 10 min. Call time and a few other things.... So a new batt. solved my problem. Just incase a bought a spare.
But aside from this, Samsung should look into issue and handle the complaints seriously.
Sent from my GT-I9000 using XDA App
after fully charging my nexus 7 for the night i went to sleep, when i woke up in the morning the battery was down to 49%, wondering why the battery was going down so quickly, i moved to battery usage and guess BAM Media server top of the list with a whopping 46%. Wonder what caused this i searched around a google and concluded it is related to music, videos, pictures etc. However, since i recently bought the tablet i haven't gotten the chance to input any music vids or pics into. The next logical culprit for the high % is the apps,but since i downloaded a bunch of apps before hand i just opted for factory reset. now here comes the problem, even with Currents, googlenow disabled and no apps downloaded, media server is still at 35%! Does any1 know of any other things that might be causing such a high media server battery usage? Thank You very much.
silentsaber said:
after fully charging my nexus 7 for the night i went to sleep, when i woke up in the morning the battery was down to 49%, wondering why the battery was going down so quickly, i moved to battery usage and guess BAM Media server top of the list with a whopping 46%. Wonder what caused this i searched around a google and concluded it is related to music, videos, pictures etc. However, since i recently bought the tablet i haven't gotten the chance to input any music vids or pics into. The next logical culprit for the high % is the apps,but since i downloaded a bunch of apps before hand i just opted for factory reset. now here comes the problem, even with Currents, googlenow disabled and no apps downloaded, media server is still at 35%! Does any1 know of any other things that might be causing such a high media server battery usage? Thank You very much.
Click to expand...
Click to collapse
For me its not more than 10% always, & as per my knowledge mediaserver is all about CPU & keep awake , so maybe some crappy apps causing the issues, so try to test by unistalling them, For me "screen " is always drains almost more than 60% , Got lucky to prove Asus that its battery fault so getting replacement of battery .
I have seen posts that point to the cause being a corrupt media file. Some have mentioned fixing by deleting corrupt video files and my wife had a bad music file that was causing all kinds of problems until I found and deleted it. Also, you can copy a 0-byte '.nomedia' file into any folder you don't want indexed by media server.
I noticed the battery life on my I9505 has been getting worse recently, even though i've been using it very infrequently, sometimes it's just sat untouched for 4+ hours while i'm working. I looked at the battery stats and while the "screen" is usually at the top, "media server" is usually second, taking anywhere from 10-20% of my battery, when i look into this, it lists "stay awake" as the amount of time the phone has been off charge, plugging the phone in will stop the time counting up but the moment i unplug the phone, the timer continues to count up. Battery stats plus also shows the media server to be keeping the phone awake.
I've removed all my music and also pics + video from the phone as suggested elsewhere with media server problems and corrupt files, but this has had no effect.
mrbish said:
I noticed the battery life on my I9505 has been getting worse recently, even though i've been using it very infrequently, sometimes it's just sat untouched for 4+ hours while i'm working. I looked at the battery stats and while the "screen" is usually at the top, "media server" is usually second, taking anywhere from 10-20% of my battery, when i look into this, it lists "stay awake" as the amount of time the phone has been off charge, plugging the phone in will stop the time counting up but the moment i unplug the phone, the timer continues to count up. Battery stats plus also shows the media server to be keeping the phone awake.
I've removed all my music and also pics + video from the phone as suggested elsewhere with media server problems and corrupt files, but this has had no effect.
Click to expand...
Click to collapse
Same here
I have just tried something that may have worked...
I have always tried to stop any Samsung store apps from updating or running, but i read that there was a media scanning issue with samsungs music hub or something, i just let all the samsung apps update through the samsung hub and then rebooted the phone, the media server isn't running any more.
I'm going to use the phone like usual for another day to see if this has actually worked.
I had the same problem today. My phone lasted only 5 hours and media server was on top of the list after listening to music. I think it has to do with Samsung's music app because that's the only time I notice significant battery loss.
Sent from my GT-I9500 using xda app-developers app
mrbish said:
I noticed the battery life on my I9505 has been getting worse recently, even though i've been using it very infrequently, sometimes it's just sat untouched for 4+ hours while i'm working. I looked at the battery stats and while the "screen" is usually at the top, "media server" is usually second, taking anywhere from 10-20% of my battery, when i look into this, it lists "stay awake" as the amount of time the phone has been off charge, plugging the phone in will stop the time counting up but the moment i unplug the phone, the timer continues to count up. Battery stats plus also shows the media server to be keeping the phone awake.
I've removed all my music and also pics + video from the phone as suggested elsewhere with media server problems and corrupt files, but this has had no effect.
Click to expand...
Click to collapse
Do you have an external SD inserted? Such cards can also keep media server (/scanner) running if there is a corrupt file on it. If so, either format the card and/or root the phone and use RescanMediaRoot to disable the media scanner service altogether.
Pfeffernuss said:
Do you have an external SD inserted? Such cards can also keep media server (/scanner) running if there is a corrupt file on it. If so, either format the card and/or root the phone and use RescanMediaRoot to disable the media scanner service altogether.
Click to expand...
Click to collapse
No i don't have an external SD. I haven't had the problem today for the first time in about 3 weeks, so i think letting the samsung store update all the apps has fixed it.
Meda scanner stay awake time is 23 miinutes today after 8 hours use, before that, it would have said 8 hours.
Use Greenify and hibernate your music app and see if media server is still appearing in BetterBatteryStats
I'm running stock/rooted kitkat and for the last few days I have had dramatic battery drain. I go from fully changed to 10% in less than 4 hours. Has anyone else noticed this lately?
I had this as well. I had to disable location services to get my phone to actually go to sleep.
Sent from my AOSP on Mako using XDA Free mobile app
disabling location services and trying that. thanks
I've had awful battery since i upgraded to 5.0 and Google services are killing the battery. I'll try location services. Will update.
It's definitely not a problem with Location Services. My location is completely turned off 99% (since always) of the time and I also have that topping my battery consumption. Even though, my phone has been deep sleeping without major problems. There's an unknown wakelock that is slowly draining the battery, but anyway I've been getting 4h of SOT everyday without making any sacrifices. If somebody finds out what's the root cause, keep me posted, please.
I've been occasionally getting this for a few weeks too.
If I turn off location, the problem continues for a day or so but then goes away.
This morning I took the phone off charger first thing. I restarted and didn't open screen for two hours. When I checked battery usage it was down 80% and the big consumer was Media and SDcard. Anyone see this before?
It just occurred to me that I may have a corrupt file on internal storage. I'm going to back everything up and start deleting.
Well..I did a factory reset and I still have a major battery drain. It has to be some rogue app but I haven't installed "new" apps lately. Plenty of updates though.
So i have experienced some battery draining while my phone was idle mostly when i was sleeping. For example i had my phone at 100% battery at the moment i went to sleep and by the time i woke up after approximately 7-8~ hours my phone was losing 20-30% of its battery.
I made some research on how to stop that idle draining and what i found helpful was having the Android Device Manager disabled.
To do that you have to follow these steps:
1. Go to Settings
2. Go to General Tab
3. Go to Security and scroll down to Device administrators.
4. Now just untick the Android Device Manager
and enjoy your phone much longer out of the charger.
Personally that really helped me so i felt sharing it with others that have the same problem.
I hope this help you and if it does let me know
I've tried your solution, but it doesn't work for me. Sometimes the battery is working up to two days until I've to charge it again. And sometimes it is getting empty after a few hours with the same usage profile. I've installed only a few apps. I've this issue with the stock rom and with the CM 12.1 (5.1.1) rom.