[Q] MediaServer..EATING up BATTERY... - Sony Ericsson Xperia Neo, Pro

ok..so iv been using jj's hybrid rom for the past 2 days now...
q1-What are all the activities that come under media server??
q2- My mediaServer is eating..or i shud say HOGGING my battery... its even more thn my standby time battery usage...
standby battery usage was 6% media server 9%...
i tried to google...and even went around xda..Nothing concrete though..
and at present mediaserver is 9% with a wake tym of [email protected] 2hrs32mins4secs...
anyone can shed some light on it..

It is scanning all your media on SD card, if i'm not wrong.

Reboot the phone, and check the Mediaserver activity in Battery monitor

I usually have that when I'm listening to music a lot

sdk16420 said:
I usually have that when I'm listening to music a lot
Click to expand...
Click to collapse
i am tryng to notice the same..i guess...it keeps scanning..media.. as eman said..while playing ringtones it also notches up..while playing music it goes up..rest m not sure..

fix_permissions ;-)
Sent from my MT11i using XDA

Related

[Q] Very high battery usage of all music players under CM7

Hello
I have searched a log but i didn't found a solution.
If i use my SGS2 with CM7 (tried last stable and nightly) i have the following issue:
Normally my phone takes around 1% battery/hour. (if i dont use it, like over the night)
If i start a music player, not important if native music app or winamp, the battery usage goes up to ~5% even if the player don't play music.
So if i like to listen to an audio book and fall asleep, the battery run out of power over the night. (depends on how long i sleep )
Could it depends on the SD Card?
Did you wipe data before installing??
Sent from my GT-I9100 powered by CheckRom™
yes i did.
But i have not done the CM7 SD Fix.
I will try it at the WE.
Maybe i will also try a new Wipe.
this is happening across multiple devices for me - my galaxy tab 10.1, my gt 8.9, droid charge, epic touch 4g... something in just about every music player won't let my devices sleep and drains the battery fast as heck.

AOKP Ressurection Rom 'mediaserver' battery drain issue

I have been running Resurrection Remix 2.5.3 with NEAK 2.0.6 for a few days now and it is easily the best combo I've ever used, I have one problem though...
I'm seeing extreme battery drain when using any music app (tried about 15 different ones, using PowerAmp atm) where a process named mediaserver keeps the phone from going into deep sleep.
I've observed the process and it is taking up to %65 or more of the battery usage.
I know that this is caused by corrupt media files and I've tried all the solutions I could find like formatting, cleaning and deleting corrupt media files etc... all to no avail.
Anyone know of a fix for this? I need help, it's driving me crazy!
Note: as soon as I exit the music player, mediaserver use drops massively, but I want to listen to music without my phone lasting 4-6 hours!
Don't you think this belongs in the QUESTIONS AND ANSWERS section?
Sent from my GT-I9100 using Tapatalk 2
Media server is the thing that controls the media. Hence why it uses battery while listening to music, watching videos etc. It's normal.
Sent from my GT-I9100 using xda app-developers app
I've noticed that to, listening to music in any ics rom is a way bigger battery drain than it was with gb, media server or any music app didn't even came close to the screen on time in the battery stats in gb, and now listening to music eats away almost as much battery as the screen
it happens in all non sammy roms, it eats up all the bettery life
cipry189 said:
I've noticed that to, listening to music in any ics rom is a way bigger battery drain than it was with gb, media server or any music app didn't even came close to the screen on time in the battery stats in gb, and now listening to music eats away almost as much battery as the screen
Click to expand...
Click to collapse
android_isda_**** said:
it happens in all non sammy roms, it eats up all the bettery life
Click to expand...
Click to collapse
Yeah i have noticed both the things !!!
Moved to Q&A

[Q] Playing music is taking too much power?

Coming from iPhone, i was used to play music without any noticeable battery drain for long time. I mean, while on aiplane mode, phone used about 10% of battery to play music for 6-7 hours (during long flights). Now I play music with Google Play Music using my regular IEM phones (Xears Maestro MH700PRO) on HOX+ and it takes about 2-3% for 30 minutes of music, tested on my trip from home to work. And it seems to me bit too much.
I checked battery stats and found out that most juice is used by Mediaserver app. From searching around I found out that this process is handling playing media, but also scanning storage for media files. And it sometimes gets stuck in infinite loop from some messed files. So I used some NoMedia app to create .nomedia files in every folder of my virtual SD card to avoid Mediaserver scanning, since Google Play Music uses system Data folder to store its cached files. And it also has .nomedia files in its folders.
Problem is, that nothing changed, Mediaserver process is still on the top of power usage while playing music and phone still uses too much power to play simple MP3 music. Any ideas how to solve this?
More digging brought more info - used simple CPU Spy app to monitor which states are used while playing music in period of 30 minutes. And result is interesting - most used state is 760MHz with 21:33 and second is 640 MHz with 9:55. Unfortunately app doesn't show how many cores were active during that time, but even assuming it was only one, its still bit too much for playing simple MP3. Or is it normal with Android devices?
Try Media ReScan Root - if you are rooted It should stop scan your mediafiles without having to create .nomedia files...
Pls report back, I too have the feeling that this task uses a bit too much... not a problem, but could be better...
Have root, Media Scan Root (app has different name after install than on play store) installed and active, CPUstate reset and running music test again. Its quite annoying to see how much power phone uses to play music, simple MP3 player costing few bucks have like 1000% better power usage than phone in this price range. Wonder if there is some specialized player, maybe requiring root rights, but able to significantly lower CPU speed to save battery...
EDIT results are same, most used states are 760 and 640 MHz, most battery drain goes to Mediaserver with 45%, 20% goes to Google Play Music. 30 minutes took 3% of charge.
Wlk said:
Its quite annoying to see how much power phone uses to play music, simple MP3 player costing few bucks have like 1000% better power usage than phone in this price range.
Click to expand...
Click to collapse
It's the same as running a V8 while not driving, you will use more gas than with a v4 doing the same
Hmm, nice theory, but when apple can do it with their hw, android should too...
Wlk said:
Hmm, nice theory, but when apple can do it with their hw, android should too...
Click to expand...
Click to collapse
I wouldn't say that, i say you have installed a power hungry app!!! I just used the stock Music player at the gym for 2hrs straight and guess what? I walked into the gym with 73% battery and walked out of the gym with 73% battery, did not use a stitch of battery. Coming from an iphone 4 and always using it for the gym (which i still do cus this stupid phone doesn't offer wired headset controls yet!!!) i'd say this device gets just as good if not slightly better battery while ONLY listening to music. Now if you are using third party apps, streaming music, blah blah blah, well duh you're going to use up battery. Common sense there. If solely only using the Stock Music Player to listen to music SAVED on your phone, you will not see much of any battery consumption. Actually very impressed myself!
This was also before i rooted and was using the stock rom/device. Now i'm rooted and running a custom rom, battery is even better across the board!!!
Wlk said:
Hmm, nice theory, but when apple can do it with their hw, android should too...
Click to expand...
Click to collapse
For starters your comparing a 1.5ghz dual core iphone 5 with a 1.7ghz quad core, secondly 3% for listening to half an hours music is good. What planet are you from? Either buy an ipod or a less powerfull phone. You chose to buy the most powerfull phone on the market. No one made you, now you have to live with the limitations that brings
Sent from my HTC One X+ using Tapatalk 2

Mediaserver Battery drain (POSSIBLE FIX)

Hi!! Before all, i'm sorry for my English, is not my native language but i will try my best.
I'll be quick. I have might finded the FIX for the Mediaserver battery drain. I'm on SlimBean 4.2.1 RC 1 for the Samsung Galaxy S i9000 but this may work in many other roms like Cyanogenmod even ICS based custom roms.
The problem starts just when some media, specially music starts to play, the media server CPU usage goes sky high, but only when the headphones are attached to the phone. So i tough that may be something with sound processing. I have installed Voodoo Sound, the stock music player, Omish player, PowerAMP and the three of them gave me battery drain with mediaserver being the service affected. SO! first, I had to uninstall Voodoo Sound, but nothing changed, and so with stock player and Omish but the battery draing continued. Obviously the problem wasn't those players or Voodoo Sound, but maybe the integrated equalizer called DSPmanager used on custom ROMs was the guilty. I went to /system/app/ with ES File Explorer and renamed the app from DSPManager.apk to DSPManager.bak (so the system will bypass it) and there I found another app called SoundFX.apk, i renamed that to SoundFX.bak too. Restarted and played some music with all my players, first with PowerAMP and then with Omish.. The friking mediaserver battery drain stopped!!!
Now who's the guilty?? DSPManager or SoundFX. I renamed DSPManager back to its original name (.apk instead of .bak) and the battery drain from Mediaserver still not showing up... so maybe the SoundFX app is driving mediaserver nuts. I will update if the battery drain comes back.
So, the FIX (at least on my case) is turning off SoundFX app by changing its name to SoundFX.bak If the problem persist with you maybe you should turn of DSPManager too, renaming it to DSPManager.bak and use some 3rd. party app for music playing like PowerAMP witch have a very nice integrated EQ. I hope this works on you because I think the problem is not corrupted media files like everyone is saying.
Thank you so much! Im having this issue too, im using slimbean (awesome ROM) on my note 2
I was looking at battery stats, i found mediaserver drains a lot.. Thanks again
Mohammed779 said:
Thank you so much! Im having this issue too, im using slimbean (awesome ROM) on my note 2
I was looking at battery stats, i found mediaserver drains a lot.. Thanks again
Click to expand...
Click to collapse
Try Formatting your SD Card. You can also check out THIS thread.
BlakeFox said:
Hi!! Before all, i'm sorry for my English, is not my native language but i will try my best.
I'll be quick. I have might finded the FIX for the Mediaserver battery drain. I'm on SlimBean 4.2.1 RC 1 for the Samsung Galaxy S i9000 but this may work in many other roms like Cyanogenmod even ICS based custom roms.
The problem starts just when some media, specially music starts to play, the media server CPU usage goes sky high, but only when the headphones are attached to the phone. So i tough that may be something with sound processing. I have installed Voodoo Sound, the stock music player, Omish player, PowerAMP and the three of them gave me battery drain with mediaserver being the service affected. SO! first, I had to uninstall Voodoo Sound, but nothing changed, and so with stock player and Omish but the battery draing continued. Obviously the problem wasn't those players or Voodoo Sound, but maybe the integrated equalizer called DSPmanager used on custom ROMs was the guilty. I went to /system/app/ with ES File Explorer and renamed the app from DSPManager.apk to DSPManager.bak (so the system will bypass it) and there I found another app called SoundFX.apk, i renamed that to SoundFX.bak too. Restarted and played some music with all my players, first with PowerAMP and then with Omish.. The friking mediaserver battery drain stopped!!!
Now who's the guilty?? DSPManager or SoundFX. I renamed DSPManager back to its original name (.apk instead of .bak) and the battery drain from Mediaserver still not showing up... so maybe the SoundFX app is driving mediaserver nuts. I will update if the battery drain comes back.
So, the FIX (at least on my case) is turning off SoundFX app by changing its name to SoundFX.bak If the problem persist with you maybe you should turn of DSPManager too, renaming it to DSPManager.bak and use some 3rd. party app for music playing like PowerAMP witch have a very nice integrated EQ. I hope this works on you because I think the problem is not corrupted media files like everyone is saying.
Click to expand...
Click to collapse
go into apps/all find the DRM file. Force close it.
thats it. no need to renaming system apps and functions.
prboy1969 said:
Try Formatting your SD Card. You can also check out THIS thread.
Click to expand...
Click to collapse
Actually this thread helped a little..
And i format my internal and external sd whenever i use a new ROM.. So i will be having a fresh SDs
But formatting didnt really help..
I guess its something to do with the ROM itself, i never had this issue on Samsung Stock ROM or CyanogenMod 10.1 (not sure)..
You may want to check your files. Make sure you do not have any corrupt media. I also make sure to clean up my SD Card from time to time. I get rid of old unused files, and folders.
TEAM MiK
MikROMs Since 3/13/11
prboy1969 said:
You may want to check your files. Make sure you do not have any corrupt media. I also make sure to clean up my SD Card from time to time. I get rid of old unused files, and folders.
TEAM MiK
MikROMs Since 3/13/11
Click to expand...
Click to collapse
I have only music, photos.
And 2 ROMs files and Gapps, and two apks.. Those are for if something happened for the phone, i could always go to recovery and flash easily..
Sent from my Galaxy Note 2 (GT-7100)
---------- Post added at 09:01 PM ---------- Previous post was at 08:58 PM ----------
Anyways now I'm using Emotion ROM which is awesome ROM specially for the battery! Now i get 9 hours of screen time instead of 6-7 hours.. And 0% drain when screen is off loved it
Sent from my Galaxy Note 2 (GT-7100)
I've found a solution for media server battery drain in cyanogenmod 10.1 (nightly) in i9300. In my case it wasn't connected with files in my SD card (but I didn't test this solution connected with files on SD)
I made a some research in my system, and I found that media server consume about 10% of CPU usage when I listen to music (ex. Spotify) so in my Battery stats, media server was at the first place. I've tested CPU usage using 'top' from command line. When I didn't play music, media server didn't consume CPU.
I trace mediaserver using command 'strace' and found some interesting information when I've started playing music. There was some trace information about equalizer, so I decided to disable equalizer in DSPManager.
When I disabled equalizer and leave only turned on Bass Boost, CPU usage of mediaserver was about 1%.
Conclusion: Disabling equalizer in DSPManager cause dramaticly decrease CPU usage of mediaserver.
BTW. Sorry for my poor english language
komw said:
I've found a solution for media server battery drain in cyanogenmod 10.1 (nightly) in i9300. In my case it wasn't connected with files in my SD card (but I didn't test this solution connected with files on SD)
I made a some research in my system, and I found that media server consume about 10% of CPU usage when I listen to music (ex. Spotify) so in my Battery stats, media server was at the first place. I've tested CPU usage using 'top' from command line. When I didn't play music, media server didn't consume CPU.
I trace mediaserver using command 'strace' and found some interesting information when I've started playing music. There was some trace information about equalizer, so I decided to disable equalizer in DSPManager.
When I disabled equalizer and leave only turned on Bass Boost, CPU usage of mediaserver was about 1%.
Conclusion: Disabling equalizer in DSPManager cause dramaticly decrease CPU usage of mediaserver.
BTW. Sorry for my poor english language
Click to expand...
Click to collapse
Your English is just fine.
This media server is really annoying. I'm reading mostly about the pictures and music files being corrupted in the sdcard. Now, even the equalizer is also making it killing the battery. Can we kill this server?
This one worked for me!
I read other solutions on my battery draining problem with Mediaserver but I forgot where I saw it. Anyways, this causes when there are 0 bytes of file on my SD card. So going straight to the point, I erased those files (I'm not sure if those are really junk or just symlinks), but nothing really abnormal happened. After it the mediaserver did not continue running unless I played games or music.
What I did was connecting my device to my PC via USB and find those 0 bytes on my SD and delete them (or I think you can do this on any file manager app). Oh, I checked again the mediaserver after unmounting the SD, and it was not running so somehow my SD is causing the problem.
Again, that worked for me and maybe on yours too.
Mediaserver bug
Hi, I have FINALLY found a solution for the bug of mediaserver process with Poweramp. With the fade option enabled, mediaserver process starts when i change song while with crossfade option disabled the process stop.

Media server huge battery drain

So guys, I've changed to temaseks rom 2 days ago. I did a mega wipe and formated my external SD, since that I'm having a pretty good experience in every way, except when the phone has any kind of audio, music, YouTube, or a game.. It shows like media server in the battery and audio_out2 in bbs, I installed media root rescan but my battery drains really fast, up to 25 per cent each hour, even with screen off while playing music, is it normal? What should I try to do
Luvinus said:
So guys, I've changed to temaseks rom 2 days ago. I did a mega wipe and formated my external SD, since that I'm having a pretty good experience in every way, except when the phone has any kind of audio, music, YouTube, or a game.. It shows like media server in the battery and audio_out2 in bbs, I installed media root rescan but my battery drains really fast, up to 25 per cent each hour, even with screen off while playing music, is it normal? What should I try to do
Click to expand...
Click to collapse
try other custom kernels
:good:
I've tried temaek's one, do u have any suggestions for another?

Categories

Resources