Media process draining battery - General Questions and Answers

Hello all. Sometimes (very often actually) the battery starts going down very fast. Taking a look at the frequency states of the CPU I saw it's because it doesn't go in deep sleep state. The guilty is the media scanner process, a sub-process of the download manager app it seems. I tried to Greenify the app, I even disabled the media scanner process completely, nothing. If I go in the Apps section in settings and I find media process in the cached processes the phone doesn't sleep (even if the service is disabled!). How do I prevent it to keep the phone in a permanent wakelock state?

Related

[Q] what is sleep state?

As the title asks, what is it? I know that turning off the screen with power button is not sleeping. I believe it is the state when it takes more than a second (lag) to unlock the screen. This means that the phone was in sleep state and I woke it up. But the question remains, that what is it? How and when is it activated? What happens when the phone is sleeping? Effect on battery (I believe it's positive)? The notifications like sms and call? Is only the screen asleep or are the other functions sleeping as well? Final question, Can I activate the sleep mode with the help of an application if it helps save the battery?
Note that I don't want to use battery saver apps because I don't want anything on my phone to stop. I paid for the whole phone, "including" gps, wifi and things like that. Smartphones are for us, we are not for smartphones.
usman farhat said:
As the title asks, what is it? I know that turning off the screen with power button is not sleeping. I believe it is the state when it takes more than a second (lag) to unlock the screen. This means that the phone was in sleep state and I woke it up. But the question remains, that what is it? How and when is it activated? What happens when the phone is sleeping? Effect on battery (I believe it's positive)? The notifications like sms and call? Is only the screen asleep or are the other functions sleeping as well? Final question, Can I activate the sleep mode with the help of an application if it helps save the battery?
Note that I don't want to use battery saver apps because I don't want anything on my phone to stop. I paid for the whole phone, "including" gps, wifi and things like that. Smartphones are for us, we are not for smartphones.
Click to expand...
Click to collapse
Technically; sleep mode starts the moment the screen is switched off. With the exception of applications which can prevent the phone from fully 'sleeping'. A good and obvious example is the music application which keeps the phone awake in order to play music.
There's really nothing special about sleep mode except that the phone will execute a lot more tasks together but less frequently in order to save power, so you're still able to receive all messages, emails, calls and all notifications (from apps). Applications can also be informed about the change in power state (awake to sleep and sleep to awake) and therefore change the way they behave.
The amount of sleep time the phone gets is dependent on the apps you have installed and the amount of emails, calls and other notifications you get. There isn't a way to enable 'sleep mode' with an application as it would make little difference if your display is on. Your display is the main cause of power consumption, as is true with all smartphones.
Battery Saver apps are dangerous, by killing apps they have a negative impact on the phone. If the application is needed, the phone will restart it and add to the CPU cycles. The same goes with memory freeing apps. GPS/Bluetooth/WiFi are there for when you need them. Keeping them on when they're not needed is a waste of the phone's resources. As the more CPU cycles they use, the more power they consume.
DennisBold said:
Technically; sleep mode starts the moment the screen is switched off. With the exception of applications which can prevent the phone from fully 'sleeping'. A good and obvious example is the music application which keeps the phone awake in order to play music.
There's really nothing special about sleep mode except that the phone will execute a lot more tasks together but less frequently in order to save power, so you're still able to receive all messages, emails, calls and all notifications (from apps). Applications can also be informed about the change in power state (awake to sleep and sleep to awake) and therefore change the way they behave.
The amount of sleep time the phone gets is dependent on the apps you have installed and the amount of emails, calls and other notifications you get. There isn't a way to enable 'sleep mode' with an application as it would make little difference if your display is on. Your display is the main cause of power consumption, as is true with all smartphones.
Battery Saver apps are dangerous, by killing apps they have a negative impact on the phone. If the application is needed, the phone will restart it and add to the CPU cycles. The same goes with memory freeing apps. GPS/Bluetooth/WiFi are there for when you need them. Keeping them on when they're not needed is a waste of the phone's resources. As the more CPU cycles they use, the more power they consume.
Click to expand...
Click to collapse
That's a good explanation
I have read about term "deep sleep" while searching for this, but the explanations on the internet are not clear to me. I have understood a part of it, that this state comes when phone is at rest for too long. The phone pauses apps and their processes, except those who are downloading e.g games and only does basic tasks such as incoming communications (message, call etc.) and sync. Again, I could not find answer to when it state/mode starts.
About GPS/Bluetooth/WiFi: I said this because I had seen people talking about how they have to force otherwise unnecessary restrictions on them and thus have to worry too much to save their batteries. This is what I don't like. Technology is made to facilitate people and to make their lives easy, that's what I believe. On the other hand, I always keep bluetooth off because I need it very rarely. Well, you may have other preferences but I have to keep gps on in order to geo tag photos and to make it ready whenever I open maps etc. Wifi according to me is life blood of smartphones. So I can't live without it either.
When I had Nokia 5800 I had to turn off auto rotate because its menu took time to refresh if I turned the phone by mistake. That was the time when I came to know how bad it feels to go through the settings to turn it on when I need it urgently.

"Best" battery saver program?

Been trying to squeeze out some battery life on my S4 running goldfinger kitkat ROM. No matter what I do, I seem to get a bunch of wakelocks, radio/wifi turning on, etc. What I would like is to be able to totally disable everything when the screen is off (with the exception of incoming calls/texts) and then sync when I wake the device up. I'd also like to have a whitelist for apps like slacker/pandora/music. I've tried wakelock detector, greenify, and DS battery saver (these are the ones I've found most useful). Of the three, DS battery saver seems to be the best at shutting everything down, but doesn't have a whitelist feature, and requires a reboot to toggle. Greenify and wakelock detector require you to know which apps are waking your device. This is OK for the big culprits on my device (FB, google play, exchange services), but I still get random wifi/gps/other wakeups. This is likely just the result of having a bunch of apps that want to phone home, even if each of them does it rarely. Again, it would be nice if they could all do it at once. Any solutions?
you can use greenify, it can turn off apps when your phone is off.
Please let me know if you find such app. For now I'm using Greenify, Wakelock Detector and for some time a new Xposed module: Unbounce.
A little more experimenting. Seems that DS battery saver is the best for what I want, which is a sleeping phone except when I'm using it. All the other apps require that I put a certain app to sleep, rather than have everything asleep by default. My phone then gets random wakes, even though there isn't any one single misbehaving app that I can find. DS saver can be turned off temporarily through the notification bar for when I'm using music services in the background without rebooting. Using DS battery saver on "aggressive", I average about 0.6% drop/hour, with 3 minutes awake time/hour. I think that's OK, but not sure if I can do better (like no awake time/hour). I'm wondering if the awake time is just due to cellular traffic. Hmm, maybe I'll see what it looks like in airplane mode.

Anyone else having lots of wakelocks after flashing new kernels?

Hey guys.
Lately whenever I'm flashing a new kernel either on KitKat or Lollipop I get terrible wakelocks that kill my battery. Not sure why this is happening. I'm using CWM. Basically after flashing I can just notice a huge battery drainage and I tend to install either GSam or WakelockDetector to see what's the problem. WakelockDetector (Rooted) gives me an overall idea of my battery problem. Usually SystemUpdateService, Audiomix "1013", "NlpWakeLock" , "EventlogService" and "CheckinService" drain my battery the most. Sometimes "ConfigFetchService" as well.
Thanks
KodRoute said:
Hey guys.
Lately whenever I'm flashing a new kernel either on KitKat or Lollipop I get terrible wakelocks that kill my battery. Not sure why this is happening. I'm using CWM. Basically after flashing I can just notice a huge battery drainage and I tend to install either GSam or WakelockDetector to see what's the problem. WakelockDetector (Rooted) gives me an overall idea of my battery problem. Usually SystemUpdateService, Audiomix "1013", "NlpWakeLock" , "EventlogService" and "CheckinService" drain my battery the most. Sometimes "ConfigFetchService" as well.
Thanks
Click to expand...
Click to collapse
[Battery Life Help] Troubleshoot battery issues here!
Application wakelocks have absolutely nothing to do with the kernel.
Keep in mind a "wakelock" is simply a request to keep the device awake; they can happen regardless whether the screen is on or off, they are only an issue if they occur while the screen is OFF.
SystemUpdateService is a pretty obviously named wakelock, it's used while an OTA is being downloaded. You can disable the service and it's receivers with an app like Autorun Manager (https://play.google.com/store/apps/details?id=com.rs.autorun, open in advanced mode, go into it's settings to enable for system apps, tap on Google Play Services, disable everything with SystemUpdateService in it's name).
AudioMix is triggered every time there is an audio event, including touch sounds. Harmless as it's usually only used while the screen is on.
NlpWakeLock is a location wakelock.
EventlogService and CheckinService are harmless, unless they occur 24/7 and don't go away EVER, which means you disabled their services but not their receivers.
ConfigFetchService is mostly harmless, it simply fetches your settings from Google's servers when you open a Google app, if that app stores it's settings on the cloud instead of locally.
Lethargy said:
[Battery Life Help] Troubleshoot battery issues here!
Application wakelocks have absolutely nothing to do with the kernel.
Keep in mind a "wakelock" is simply a request to keep the device awake; they can happen regardless whether the screen is on or off, they are only an issue if they occur while the screen is OFF.
SystemUpdateService is a pretty obviously named wakelock, it's used while an OTA is being downloaded. You can disable the service and it's receivers with an app like Autorun Manager (https://play.google.com/store/apps/details?id=com.rs.autorun, open in advanced mode, go into it's settings to enable for system apps, tap on Google Play Services, disable everything with SystemUpdateService in it's name).
AudioMix is triggered every time there is an audio event, including touch sounds. Harmless as it's usually only used while the screen is on.
NlpWakeLock is a location wakelock.
EventlogService and CheckinService are harmless, unless they occur 24/7 and don't go away EVER, which means you disabled their services but not their receivers.
ConfigFetchService is mostly harmless, it simply fetches your settings from Google's servers when you open a Google app, if that app stores it's settings on the cloud instead of locally.
Click to expand...
Click to collapse
Disabling the receivers works indeed. Thanks! By the way, another issue I'm having is that my Nexus 5's CPU heats too fast operating in UI and doing basic stuff, like installing apps from Play Store or watching videos on YouTube. Normally after about 5 min. of running if I go to System Monitor the CPU's temp is around 40-47ºC on action, in standby cools down to 34-35ºC but then after I use it again the temp rise to 45-47ºC. Usually when this happens the battery's temperature is also triggered and reaches 28-30ºC. Is this normal?
KodRoute said:
Disabling the receivers works indeed. Thanks! By the way, another issue I'm having is that my Nexus 5's CPU heats too fast operating in UI and doing basic stuff, like installing apps from Play Store or watching videos on YouTube. Normally after about 5 min. of running if I go to System Monitor the CPU's temp is around 40-47ºC on action, in standby cools down to 34-35ºC but then after I use it again the temp rise to 45-47ºC. Usually when this happens the battery's temperature is also triggered and reaches 28-30ºC. Is this normal?
Click to expand...
Click to collapse
The CPU throttles at 65C by default (some kernels change this or give you an option to change it), and shuts down at 105C. 47C is hardly anything.

The 1013 (OFFLOAD TRACK) service wakelock

Hello everyone. Since I have noticed my battery being drained so rapidly, I decided to setup ROOT and some tools like Wakelock Detector and Better Battery stats.
Here are two services that prevent my phone from deep sleep. They are:
1) Calendar storage(Schedule Next Alarm Wake Lock). It lasted for the whole time since my phone was unplugged until I stopped it via settings -> app manager -> calendar storage -> force stop. It is no longer draining battery, but when I restart my phone, it continues doing so. How to fix?
2) The second and the most annoying service is "Offload track". As I have read some topics in this forum, I understood that it is music player service (correct me if I'm mistaken). It stars working when I turn on music player and it does not stop when I turn on. I have also tried stopping my player via setting (Player Pro) but this won't work. It's stopping only when I restart my phone and drains battery. Can anyone help me?
Did you ever find a solution to nr 2? Searched everywhere don't get a hit on "offload track drain/wakelock"

Someone please answer: Why is my device lagging / stuttering after sleep ?

Why is my Android Tv set top box lagging badly after I put it in deep sleep, and then wake it up again? This normally happens after I have been using the youtube app to watch videos, then put it to sleep, with the power plugged in. I tried everything to fix the problem, including memory clean, restart all apps, virus scan, speed boost app and even system UI reset. The only thing that fixes the problem is to reboot the whole thing. Without reboot, the performance improves but only after a long time. But I don't like shutting down my device, I prefer putting it to sleep so it can start up quickly when I need to use it again and rebooting is too slow. So what do I do to fix it? My device is rooted.
Update: It seems that after searching other posts, this is an update issue to the android firmware for tv boxes but no solution has been found. One user claimed that putting the device to sleep without exiting app to home screen reduces the lag upon wake up somehow.

Categories

Resources