Mediaserver issues... - Samsung Infuse 4G

So in my glallery, some of my images have doubled, and in my music list for selecting ringstones and such, it has tripled some of the songs, but only one of them works. Mediaserver has 48% percent on my battery drain and its taking more power than my screen is! Anyone know whats up with this?
I'm running AOKPS Alpha 2, but I noticed it was doing it last night when I was still on the Alpha.

I use quicpic for my pictures....no issues
https://play.google.com/store/apps/details?id=com.alensw.PicFolder
And google play for my music
https://play.google.com/store/apps/details?id=com.google.android.music

This is actual issue with the media scanner. From what I've read it's an issue that can happen from a few things. I seem to have fixed it for now, I removed all the media files that were acting up. and it's gone back to it's normal amount of battery usage. I may just format my sdcard, then reinstall the ROM again
Sent from my SGH-I997 using XDA

Related

Holy Jeeebus.....I think I finally solved my battery problem. Yours too??

TL: DR - Use Rescan Media, win.
So, I think that I've finally found the source of my constant stress regarding the battery life of my beautiful Samsung Captivate SGH-i897.
I know that a good majority of you have just rolled your eyes in disbelief, or just thought to yourself, "Great....another one of these threads".
If it helps one person get their battery life under control, then roll away.
I've had the phone for about 2-3 months and I've been active on these boards since a few days after getting it.
I've recalibrated, done the on / off / on / off trick, battery stats delete, deleted battery info from CWM, tried a second battery, used battery monitors on the phone, turned off wi-fi, turned off auto-synch, turned off bluetooth, lowered display brightness, and everything else I could think of to conserve juice.
Yesterday afternoon, I downloaded OSMonitor from the market in an effort to try another app in a long line of failures.
Nothing seemed out of the ordinary so I was going to give up hope.
While installed, I had clicked on the box to monitor the app in the notification bar.
I noticed that I would have times where the CPU was being maxed but nothing strange was being reported in OSMonitor.
And then it hit me.....
The entire time I'm watching the OSMonitor, I'm being distracted by the media scanner.
It's running over and over and over and over and over.
When the screen shuts off after 30 seconds, it comes back on, the media scanner runs.
When I update something from the market, the media scanner runs.
When I close a program, the media scanner runs.
It is running constantly and maxing my CPU to 100%.
It finishes fairly quickly, (I have 9.4GB / 13GB available on internal and hardly anything used on my 4GB external SD card) but it just KEEPS....ON.....RUNNING.
I do a quick search, stumble upon the .nomedia file trick from XDA archives, and VOILA ! ! ! !
I'm losing about only one half of one percent per hour while it sits on standby, where I would sometimes lose 10-11% per hour, when the phone isn't even being used by me.
I went to bed last night with 48% at around 3:30am.
It is approx. 11 hours later right now.
I've made approx. 8-10 calls, checked my email a few dozen times, and mostly just let the phone sit.
I'm sitting at 39%.
Previous to doing this, I would have lost that amount in one hour.
So, for anyone who has a phone that is losing battery life like it's going out of style, I highly recommend doing the .nomedia fix.
I did mine using ES Explorer and Super Manager.
Go into your root folder and add a file named .nomedia, then go into your external SD folder and do the exact same thing.
If you do not want to do it this way, you can go the easy route and add a program called Rescan Media that does it for you.
(link supplied)
Hopefully this helps at least one lost soul, I'm so happy to see my phone behave more along the lines of what my expectations were and not have to be fully charged 2 times per day.
For the record, I've tried the following ROM's for the Cappy:
Perception
Phoenix
Assonance
Darkytt3r's port of Darky's ROM
Stock ROM (ODIN Rooted)
Cognition
And the following kernels:
Glitterballs
SpeedMod
SetiroN
Xcalibur
Will this not cause the media scanner to not pick up anything at all then?
IE no custom ringtones/msg alerts, nothing displayed in gallery, playlists wont work with the music player....
Or will it run media scanner selectively instead of all the time?
The only time I notice media scanner running is after rebooting the phone... yet I'm still only getting about 9-10 hours on a full charge with very conservative use.
evoic said:
TL: DR - Use Rescan Media, win.
So, I think that I've finally found the source of my constant stress regarding the battery life of my beautiful Samsung Captivate SGH-i897.
I know that a good majority of you have just rolled your eyes in disbelief, or just thought to yourself, "Great....another one of these threads".
If it helps one person get their battery life under control, then roll away.
I've had the phone for about 2-3 months and I've been active on these boards since a few days after getting it.
I've recalibrated, done the on / off / on / off trick, battery stats delete, deleted battery info from CWM, tried a second battery, used battery monitors on the phone, turned off wi-fi, turned off auto-synch, turned off bluetooth, lowered display brightness, and everything else I could think of to conserve juice.
Yesterday afternoon, I downloaded OSMonitor from the market in an effort to try another app in a long line of failures.
Nothing seemed out of the ordinary so I was going to give up hope.
While installed, I had clicked on the box to monitor the app in the notification bar.
I noticed that I would have times where the CPU was being maxed but nothing strange was being reported in OSMonitor.
And then it hit me.....
The entire time I'm watching the OSMonitor, I'm being distracted by the media scanner.
It's running over and over and over and over and over.
When the screen shuts off after 30 seconds, it comes back on, the media scanner runs.
When I update something from the market, the media scanner runs.
When I close a program, the media scanner runs.
It is running constantly and maxing my CPU to 100%.
It finishes fairly quickly, (I have 9.4GB / 13GB available on internal and hardly anything used on my 4GB external SD card) but it just KEEPS....ON.....RUNNING.
I do a quick search, stumble upon the .nomedia file trick from XDA archives, and VOILA ! ! ! !
I'm losing about only one half of one percent per hour while it sits on standby, where I would sometimes lose 10-11% per hour, when the phone isn't even being used by me.
I went to bed last night with 48% at around 3:30am.
It is approx. 11 hours later right now.
I've made approx. 8-10 calls, checked my email a few dozen times, and mostly just let the phone sit.
I'm sitting at 39%.
Previous to doing this, I would have lost that amount in one hour.
So, for anyone who has a phone that is losing battery life like it's going out of style, I highly recommend doing the .nomedia fix.
I did mine using ES Explorer and Super Manager.
Go into your root folder and add a file named .nomedia, then go into your external SD folder and do the exact same thing.
If you do not want to do it this way, you can go the easy route and add a program called Rescan Media that does it for you.
(link supplied)
Hopefully this helps at least one lost soul, I'm so happy to see my phone behave more along the lines of what my expectations were and not have to be fully charged 2 times per day.
For the record, I've tried the following ROM's for the Cappy:
Perception
Phoenix
Assonance
Darkytt3r's port of Darky's ROM
Stock ROM (ODIN Rooted)
Cognition
And the following kernels:
Glitterballs
SpeedMod
SetiroN
Xcalibur
Click to expand...
Click to collapse
So... exactly what did you do to solve the problem? can you describe how do you do the .nomedia fix?? I have exactly the same issue..
Hm, I haven't experienced that bad of a battery drain, but I installed the market app even though it said 2.2... maybe this will make my battery life better! Thanks for the tip.
It's running over and over and over and over and over.
When the screen shuts off after 30 seconds, it comes back on, the media scanner runs.
When I update something from the market, the media scanner runs.
When I close a program, the media scanner runs.
It is running constantly and maxing my CPU to 100%.
It finishes fairly quickly, (I have 9.4GB / 13GB available on internal and hardly anything used on my 4GB external SD card) but it just KEEPS....ON.....RUNNING.
Click to expand...
Click to collapse
When you say the media scanner runs when doing all of these actions, does the Media Scanning icon show in the notification bar? If so, then I think it's just an issue with your phone cause I don't think that happens with anyone else's phone.
Unless you are saying that the media scanner runs in the background secretly after every action and there is no icon in the notification bar or anything? If so, I think you can be on to something.
GTIVRon said:
Will this not cause the media scanner to not pick up anything at all then?
IE no custom ringtones/msg alerts, nothing displayed in gallery, playlists wont work with the music player....
Or will it run media scanner selectively instead of all the time?
The only time I notice media scanner running is after rebooting the phone... yet I'm still only getting about 9-10 hours on a full charge with very conservative use.
Click to expand...
Click to collapse
You could just run Media Scanner manually. SwitchPro even gives you a button to initiate it. The only time Media Scanner runs automatically for me is when the phone boots (and probably some other infrequent times that I can't remember) so disabling automatic media scanning isn't much of a loss at all for me.
GTIVRon said:
Will this not cause the media scanner to not pick up anything at all then?
IE no custom ringtones/msg alerts, nothing displayed in gallery, playlists wont work with the music player....
Or will it run media scanner selectively instead of all the time?
Click to expand...
Click to collapse
I'm curious of the same thing. I've only seen the media scanner run when I restart or disconnect my SD card from my computer.
trekie86 said:
I'm curious of the same thing. I've only seen the media scanner run when I restart or disconnect my SD card from my computer.
Click to expand...
Click to collapse
trying to get it working... ill report wassup after...
minlee85 said:
evoic said:
TL: DR - Use Rescan Media, win.
...
I did mine using ES Explorer and Super Manager.
Go into your root folder and add a file named .nomedia, then go into your external SD folder and do the exact same thing.
If you do not want to do it this way, you can go the easy route and add a program called Rescan Media that does it for you.
(link supplied)
...
Click to expand...
Click to collapse
So... exactly what did you do to solve the problem? can you describe how do you do the .nomedia fix?? I have exactly the same issue..
Click to expand...
Click to collapse
I'll be nice... see the quoted paragraph that was in your quote?
Minlee, no need to quote an entire post, especially when you aren't responding to something in it directly.
As others have said, I only ever see Media Scanning in the Notification bar when I do a reboot. If it runs at other times it is transparent to the phone.
This is probably an issue specific to myself and a few others.
Someone above asked me if I saw a lot of activity in the background or if I actually saw the "Media Scanning" icon pop up in my notification bar.
The answer is that I saw the icon pop up and then watched it scan, over and over and over, all day long, dozens....if not hundreds of times.
That little fix, coupled with the battery calibration that I've done a few times, along with getting rid of some of the resource hogs that run in the background (Do I reeeeally need Google Maps to run 23 hours out of the day???) has given my Captivate new life.
evoic said:
This is probably an issue specific to myself and a few others.
Someone above asked me if I saw a lot of activity in the background or if I actually saw the "Media Scanning" icon pop up in my notification bar.
The answer is that I saw the icon pop up and then watched it scan, over and over and over, all day long, dozens....if not hundreds of times.
Click to expand...
Click to collapse
Yeah, I've never seen that kind of behavior. I only see the scanning activity when I first boot and when I do something like take a picture or a screen shot.

Huge battery drain while listening to music

Anytime I'm listening to music my battery dies extremely fast. I also notice that the back of my phone gets hot too... Next time this happens ill upload a screenshot of the battery usage
Sent from my Desire HD using XDA App
Happens to me too. Its the app though. When running music for example the newest release of Google Music player. You can check the partial wake status of apps through the Spare Parts app. This shows what apps are awake while you phone is in sleep mode. When listening to music for 2 hours or so, it will show that the music player has been in partial wake. So its just like leaving your phone on for 2 hours straight. And on top of what ever else is running. You can try finding other music apps to see if the issue still exists.
As for you phone getting hot. Could be a battery issue. Could be an overclock issue or undervolt issue.
Hopefully that helps you determine what is causing these issues.
Draining
This happens to me too. When I use GPS alot and Music. Each rom seems to have a different effect with the draining, so I would suggest getting feedback from the DEV.

[Q] Mediaserver drain

Hey guys!
So I realize there are already a lot of topics on this on other phones, but not for the N5.
I've tried the solutions posted on the other phones but they don't seem to work.
Mediaserver seems to take a consistent 10-20% of my battery drain. When I reboot my phone, it jumps up to 30-40%, which is expected because the phone is scanning everything at boot. However, even after a few hours after, if I check the time on mediaserver, it still increases, meaning it's still being used.
My N5 is pretty bare, media wise. I have ~3 gigs of songs and like 50 pictures on it. I've tried removing all my pictures and music, but the mediaserver is still active and takes the same amount %.
I've tried Rescan Media root, but I'm guessing that's not compatible for 4.4 yet because it crashes every time I open it.
I've read that better battery stats can help identify it, but all I see on the stats are that mediaserver is taking up battery. I already knew that.
I've also read that mediaserver could be active due to an application, but the solutions associated to this problem involved uninstalling one app at a time and checking mediaserver; I don't have time for this method.
Anyways, any help would be greatly appreciated.
I am running the latest Cataclysm ROM and Faux kernels.
Thanks!
I want to add the information that during testing the drain times, I have not listened to music or played youtube, etc. Nothing media related.
Mediaserver will show up as the culprit even if it is an app you have installed.
i.e. I found my battery dead (at 11pm) which was odd for me, so I checked and saw mediaserver at 40% usage. I put on my detective hat and worked out it was a game I installed (Robot Unicorn 2), which is very poorly coded so that if you dont completely quit it (swipe it away), it will constantly be playing in the background, it will keep your device awake and constantly play music (that you cant hear).
You will have to work it out, or install a bettery battery app to work out which app it is.

Music battery drain?

When I play music on my Nexus 5, the battery seems to drain just as fast as screen on. Music shouldn't drain this much battery. It shows as always awake through the time that it plays music, which I don't remember seeing on other devices. I heard the DSP tunneling was supposed to help save battery while listening to music so I really don't know whats going on here. Is anyone else having these problems?
All depends what player you are using? I use Rocket Player with Viper sound and I can go over 12 hours with the super high definition driver. As with any device, everyone will have a different experience depending on how their device if configured.
Default Play Music app uses very little battery for me.
Playing music with Google play music locally has drained 10% in about 20 minutes for me. Its unbelievable
Sent from my Nexus 5 using xda app-developers app
25 minutes of music (local)
Sent from my Nexus 5 using xda app-developers app
My newest config uses about 6% per hour when playing music. Happy with it now.
In your battery stats does it show as awake during the time you are playing music? My CPU seems to be running hot while music is playing
Sent from my Nexus 5 using xda app-developers app
I've noticed the same issue recently. Drained 25% battery in ~45 mins if music playing. Battery stats show the device as awake for the entire time.
Thought it might just have been because I was using a 3rd party media player (PowerAmp), but it did the same thing using Play Music (playing only tracks on device).
This is 100% stock?
shotta35 said:
This is 100% stock?
Click to expand...
Click to collapse
Not really, now on stock 4.4.2 with TWRP recovery, root and a couple of Xposed modules active.
I have a couple of ideas for narrowing it down -
1st suspect is Last.fm scrobbling so I'll give it a couple of runs with & without that going and see if there's any consistent pattern there.
Then probably disable Gravity Box (pretty sure none of my other Xposed modules interfere with sound processing in any way).
Will update if I find something.
raolin7 said:
I've noticed the same issue recently. Drained 25% battery in ~45 mins if music playing. Battery stats show the device as awake for the entire time.
Thought it might just have been because I was using a 3rd party media player (PowerAmp), but it did the same thing using Play Music (playing only tracks on device).
Click to expand...
Click to collapse
Other people have reported various games leaving wakelocks open (keeping the device awake), also a bad media file can cause Mediaserver problems (this can show up as very high Mediaserver usage on Settings->Battery):
http://forum.xda-developers.com/showthread.php?p=47868557#post47868557
Well, uninstalling Last.fm and Gravity Box didn't work, still consistently awake whilst playing music.
All the solid blocks in the awake time where the screen is of are where music is playing, interesting that Play Music has so little CPU time, but is keeping awake so much. Media server isn't responsible for much wake time.
alistairs1 said:
Other people have reported various games leaving wakelocks open (keeping the device awake), also a bad media file can cause Mediaserver problems (this can show up as very high Mediaserver usage on Settings->Battery):
http://forum.xda-developers.com/showthread.php?p=47868557#post47868557
Click to expand...
Click to collapse
Pretty sure it's not a game, I had launched any games since my last reboot. Didn't see any processes or services running that might be related. Thanks for the link, I'll check it out when I get a chance.

Mediaserver battery drain

The day before yesterday I decided to reset/repair the phone from sony companion in an attempt to solve the battery drain (I think due to cell radio standby, shown as the biggest consumer in the power management list) and trying to install one app at a time to figure if app-related.
Right from the start I uninstalled/disabled a few stock apps, including twitter/facebook. I am using however google now, aquamail. As I also suspect spotify to be a huge drainer I didn't install it yet but I am listening to music from sdcard through poweramp.
So yesterday, first day usage, with moderate usage, was heading to almost 6hrs sot which is a big improvement from 3-4 sot before reset, same usage pattern except spotify.
At 40% batt I updated a few apps amongst them sony albums.
The main sdcard is mostly empty since reset. I have kept however the few photos/video and the music folder on external sdcard.
Right after last night update noticed the phone is draining fast even with screen off. Mediaserver shows some cpu time but also keeping the phone awake the whole time.
So i have cleared cache/data of media storage app, rebooted, put a .nomedia file in the music folder. A couple hours later, battery at 80% after 30 min sot, mediaserver is again keeping my phone awake.
I don't see anything else relevant to this issue on forums aside from things I already did, reset with sdcard wipe included.
Any idea what to try next?
Do you have lot of media on your external sd?
Remove your sd and try.
Please ignore my previous post. the mediaserver indexing might just be legit as I found a huge bunch of pics on my external sdcard, probably copied there before reset. All photos sync is off, imagine mediascanner has trouble with that many files. The solution was for me to delete them as really don't need them on device but you might use the .nomedia file trick.
I have cleared media storage data and restart the app, I expect this to solve it, will let you know if that's not the case

Categories

Resources