MediaScannerService not letting my phone go to deep sleep - ONE Q&A, Help & Troubleshooting

hey guys a few days ago i noticed my phone was always awake and according to better battery stats it seems that Media Scanner Service is keeping my phone awake, anyone knows if this is normal or should i do something about it?

You could try going into privacy guard /advanced and turning wake up and keep awake off.

Ztones said:
You could try going into privacy guard /advanced and turning wake up and keep awake off.
Click to expand...
Click to collapse
Ok, i will try that and report back

Related

[Q] Battery drain with dock during sleep (Cromi-X 5.4)

This topic has been up a couple of times before, perhaps most interestingly discussed in this thread.
It appears the problem still exists (asusdec_wake kernel wake), and I'm experiencing extreme battery drain during sleep with the dock attached. Currently running Cromi-X 5.4, and I have tried hunds 3.4.4, and _that 8 and 9 kernels.
It appears to behave as following: The tablet enters deep sleep with low battery drain (0.3% per hr with wifi off), and after a while (have seen it happen after a range of 1 - 5 hours) it starts draining quickly as asusdec_wake wakes the tablet up. It only occurs when the tablet is docked, it can occur at both high charge levels and when the dock is empty (mine always drains to 0%). It does not seem to matter whether wifi is on or off. I monitor the battery with better battery stats.
It's a real pity, since I have to turn the tablet off whenever I want to keep the dock attached.
Is anyone else experiencing this drain? Any suggestions for fixes?
Also: obligatory first post thanks-for-making-my-tablet-great to @sbdags, @_that and all the other contributors to Cromi :good:
rkha said:
It appears to behave as following: The tablet enters deep sleep with low battery drain (0.3% per hr with wifi off), and after a while (have seen it happen after a range of 1 - 5 hours) it starts draining quickly as asusdec_wake wakes the tablet up.
Click to expand...
Click to collapse
How do you know that it first enters deep sleep and that it's woken up later?
asusdec_wake is a wake lock which only keeps the tablet awake, so the question is what causes the wake up and keeps the wake lock?
_that said:
How do you know that it first enters deep sleep and that it's woken up later?
Click to expand...
Click to collapse
It might be a strong assumption, but it's based on the battery drain patterns I've seen. I've tried to monitor this a bit the last few days. Usually the battery drain is as expected during sleep for a while (whenever I check during this period, the asusdec_wake has not been active and the entire period the tablet has been in deep sleep), before it increases and stays high. I attach some screen shots where this can be seen. The change in slope in the battery graph is after about 7 hours. In those screen shots the deep sleep time reported by bbs was 6h24m. I'm not sure the reason for suspend_backoff, but I assume something is forcing the tablet to stay out of deep sleep. If I disconnected the tablet, there are no issues with suspend_backoff (and naturally not with asusdec_wake either).
_that said:
asusdec_wake is a wake lock which only keeps the tablet awake, so the question is what causes the wake up and keeps the wake lock?
Click to expand...
Click to collapse
Good point. Any tips on how this can be diagnosed?
rkha said:
It might be a strong assumption, but it's based on the battery drain patterns I've seen. I've tried to monitor this a bit the last few days. Usually the battery drain is as expected during sleep for a while (whenever I check during this period, the asusdec_wake has not been active and the entire period the tablet has been in deep sleep), before it increases and stays high. I attach some screen shots where this can be seen. The change in slope in the battery graph is after about 7 hours. In those screen shots the deep sleep time reported by bbs was 6h24m. I'm not sure the reason for suspend_backoff, but I assume something is forcing the tablet to stay out of deep sleep. If I disconnected the tablet, there are no issues with suspend_backoff (and naturally not with asusdec_wake either).
Good point. Any tips on how this can be diagnosed?
Click to expand...
Click to collapse
Try turning location services off completely for me in settings.
Does that help? Give it a reboot as well.
sbdags said:
Try turning location services off completely for me in settings.
Does that help? Give it a reboot as well.
Click to expand...
Click to collapse
Yes it did, thank you! 21 hours, only 3% down and asusdec_wake inactive. I will report back if things change.
Will add always turning this off when tablet screen is off to Tasker. Interesting that it caused this huge battery drain, given that gps and wifi was off anyways. Wakeups from com.google.android.gms decreased from many to nearly none when turning off location access, perhaps it is sufficient to turn of google apps location access in settings.
Thanks again!
rkha said:
Yes it did, thank you! 21 hours, only 3% down and asusdec_wake inactive. I will report back if things change.
Will add always turning this off when tablet screen is off to Tasker. Interesting that it caused this huge battery drain, given that gps and wifi was off anyways. Wakeups from com.google.android.gms decreased from many to nearly none when turning off location access, perhaps it is sufficient to turn of google apps location access in settings.
Thanks again!
Click to expand...
Click to collapse
It's Google now constantly polling for your location as far as I can tell.

Wifi will sometimes connect only when I turn the screen on

Hi, everyone.
I've noticed that, sometimes, my phone will only connect to a Wifi network after I turn the screen on, regardless of how long I've been inside the range of a particular acces point. For example, when I get home and I go to check my phone after I've been in there for a long time, I see the Wifi connecting right after turning the screen on. This isn't normal, is it? How can I fix this? I have it set to always active if that matters.
Thanks.
Most likely the phone is in deep sleep and doesn't scan for the WiFi network until you wake it. The alternative would be the phone waking itself to check, possibly "WiFi Always Scanning" would accomplish that.
bblzd said:
Most likely the phone is in deep sleep and doesn't scan for the WiFi network until you wake it. The alternative would be the phone waking itself to check, possibly "WiFi Always Scanning" would accomplish that.
Click to expand...
Click to collapse
Thank you, bblzd.
How long does it usually take for the phone to go into deep sleep? beacuse this has happened for example if I get out of the office for a while (a few minutes) and then go back in. I'll try the always scanning suggestion, but would it have a considerable impact in battery usage?
Adrianrff said:
Thank you, bblzd.
How long does it usually take for the phone to go into deep sleep? beacuse this has happened for example if I get out of the office for a while (a few minutes) and then go back in. I'll try the always scanning suggestion, but would it have a considerable impact in battery usage?
Click to expand...
Click to collapse
It should enter deep sleep as soon as the screen turns off, unless there is something using the CPU then it will stay awake or wake itself as needed.
Always scanning does use a significant amount of battery compared to if you were disabling the WiFi. However if you leave your WiFi on all the time anyways it shouldn't make any difference.
bblzd said:
It should enter deep sleep as soon as the screen turns off, unless there is something using the CPU then it will stay awake or wake itself as needed.
Always scanning does use a significant amount of battery compared to if you were disabling the WiFi. However if you leave your WiFi on all the time anyways it shouldn't make any difference.
Click to expand...
Click to collapse
Alright, I don't usually turn wifi off, so I'll try that.
Thanks again.
Didn't work, unfortunately.
Anyone else? I seem to be the only one experiencing this, can't find a single post about this online.
Any suggestions? I've tried rebooting into safe mode, turning data off, turning airplane mode on and enabling wifi, wiping cache partition, nothing helps. Still thee same behaviour.

[Q] WiFi not turning off automatically in deep sleep

Hello!
I finally received my OnePlus One and after setting it up I noticed that the phone will not turn off WiFi in sleep mode even though it's set to Never keep on WiFi during sleep. I suspect a wifi lock of some sort and I'm also noticing that after a period of time in sleep mode, wifi will periodically turn on and off for short duration.
I installed BetterBatteryStats, Wakelock detector and GSAM Battery Monitor but I can't find a clue as to what's keeping the WiFi on, or why.
Another thing I just noticed is that when charging now for the second time, the notification LEDs are not turning on while charging or when it's fully charged. It worked for the first time when I was charging it yesterday.
I am running all incremental upgrades (2 were installed when received yesterday), the device is rooted.
Could you help me find the app or setting that is keeping WiFi enabled and sometimes prevents the phone from entering deep sleep?
Thank you.
shiinkotheone said:
Hello!
I finally received my OnePlus One and after setting it up I noticed that the phone will not turn off WiFi in sleep mode even though it's set to Never keep on WiFi during sleep. I suspect a wifi lock of some sort and I'm also noticing that after a period of time in sleep mode, wifi will periodically turn on and off for short duration.
I installed BetterBatteryStats, Wakelock detector and GSAM Battery Monitor but I can't find a clue as to what's keeping the WiFi on, or why.
Another thing I just noticed is that when charging now for the second time, the notification LEDs are not turning on while charging or when it's fully charged. It worked for the first time when I was charging it yesterday.
I am running all incremental upgrades (2 were installed when received yesterday), the device is rooted.
Could you help me find the app or setting that is keeping WiFi enabled and sometimes prevents the phone from entering deep sleep?
Thank you.
Click to expand...
Click to collapse
Go into Settings>Wifi>Advanced and uncheck the "scanning always available" option.
timmaaa said:
Go into Settings>Wifi>Advanced and uncheck the "scanning always available" option.
Click to expand...
Click to collapse
Already done when I first got it. But thanks.
Does anyone have any idea on the charging light though as well ? It's enabled in the settings, everything is set up as it should be, indicator is working for other notifications but it's NOT turning on when charging or when fully charged.
EDIT: Figured that LED part out: turns out I accidentally disabled it during the quiet hours. :silly: But I still have the peristent WiFi on problem :/
So you're not getting any wakelocks show up when investigating via any of the apps you mentioned in the OP?
Transmitted via Bacon
timmaaa said:
So you're not getting any wakelocks show up when investigating via any of the apps you mentioned in the OP?
Transmitted via Bacon
Click to expand...
Click to collapse
No, nothing significant. And most of the time phone is not awake but wifi still stays on.
Are you actually experiencing bad battery life?
Transmitted via Bacon
I'm not experiencing a bad battery life, no. But I'm still interested in what's keeping the WiFi on when I explicitly set it to turn off when screen is off/phone is not awake. "Never settle", I guess.
Bump - so, is there a way to detect "wifi locks" and apps that turn it back on periodically while sleeping?

Deep Sleep not working

Yesterday i flashed twrp and rooted 930f , it was all good ,at night i let the phone charging and when i woke up, it was hot, the charger wasnt though...i opened trickster and saw deep sleeep was 0% and i was noticing the percentage dropped really fast , i checked wakelock nothing suspecius, unchecked nearby scanning, restarted , still nothing the phone doesnt want to sleep...even tried to force the deep sleep like i did on the s6 after rooting it but the commands stuck at one point ,maybe they are only for s6...please if someone figured it out how to fix it ,help me and anyone else on the community having this problem
cheers .
Do you mean Dose?
Don't think Dose works while the phone is on charge
*Detection* said:
Do you mean Dose?
Don't think Dose works while the phone is on charge
Click to expand...
Click to collapse
not doze mate i know what doze its...the phone just doesnt wants to enter deep sleep mode while screen on
Kico. St said:
not doze mate i know what doze its...the phone just doesnt wants to enter deep sleep mode while screen on
Click to expand...
Click to collapse
With the screen on? Of course it won't enter deep sleep with the screen on, screen off and no wake lock apps, it should enter deep sleep
Screen on is the phone completely awake
*Detection* said:
With the screen on? Of course it won't enter deep sleep with the screen on, screen off and no wake lock apps, it should enter deep sleep
Screen on is the phone completely awake
Click to expand...
Click to collapse
mate i know how DEEP SLEEP WORKS!
Doesn't sound like it if you think it will enter deep sleep with the screen on
*Detection* said:
Doesn't sound like it if you think it will enter deep sleep with the screen on
Click to expand...
Click to collapse
u right ,i wrote it wrong but i meant off.... anyway nevermind i fixed this problem by disabling the most of the system packages and now phone sleeps like a baby

Vivo nex powering off itself when not in use

Hi
Pretty sure the AI is powering off my phone when it sits in idle for more than 3hrs... ...which is super odd..
Only happens in the evenings though... super strange...anyone else having an issue like this? If i turn on Airplane mode it does not happen
The only time I can go without using my phone for three hours is during sleep time. When I wake up the next morning my phone is still on. How's the battery life when you turn it back on?
Seems like you have scheduled/off feature turned on. Go to Settings> More Settings > Task Timer> Scheduled On/Off and check if you have anything active there.
Xumit said:
Seems like you have scheduled/off feature turned on. Go to Settings> More Settings > Task Timer> Scheduled On/Off and check if you have anything active there.
Click to expand...
Click to collapse
Thanks

Categories

Resources