android.Wakelock keeping S8 awake - Samsung Galaxy S8 Questions and Answers

After I rooted the phone to see why it was getting lousy deep sleep numbers the cause seems to be a wakelock by the name of "android.Wakelock" cant find any info on it online and I am confused as hell how to stop it or that even if i should

Related

[Q] Deep sleep investigation app ?

Hi,
i tryed to investigate what app/process is always waking my phone from deep sleep.
is there may an app out there wich can do that ?
as u see in the screenshot theres something triggering like every minute ... while screen is off.
i can exclude my sync settings (exchange mail, gmail, facebook, greader, weather)
as i tryed disabling them all and no change
also checked logcat, but theres alot happening ...
thanks ahead
last time in sgs1, i use to be able to do that with Spare Parts. Under battery history, you can select to see which apps were keeping the cpu awake. But it doesnt work in sgs2 and seems to have ceased development.
Someone else wrote Spare Parts+, but the same battery history functions says something about incompatible rom.
CPU Spy does exactly what you want.
prodygee said:
CPU Spy does exactly what you want.
Click to expand...
Click to collapse
huh, i use cpu spy here, but cant find an option wich apps causing no deep sleep ...
all i see which modes been active and how long, like 40 min deep sleep, 5 min 200 mhz, ...
may a hint where to look ?
thanks ahead
someone has posted "battery history for gingerbread" you can use that to check partial wake usage - OR id suggest looking at logcat. ignore everything that scrolls at the beginning logcat will show only a few lines every minute or so - you should be able to find out whats happening there.
ok, after a long search what this could be i finally found it (1 day marathon installing ...)
its the latitude in maps wich is causing this ...
bad thing is, doesnt change when only turning it off, have to kill process and clear
data in app to solve the 1 min wakeup ... then maps is working normal and no more
wakeup´s from deep sleep, the reason why i didnt figured before ...
i hope google will fix this one day or give a choice how often it syncs ...
just in case someone is interested.
alturismo said:
ok, after a long search what this could be i finally found it (1 day marathon installing ...)
its the latitude in maps wich is causing this ...
bad thing is, doesnt change when only turning it off, have to kill process and clear
data in app to solve the 1 min wakeup ... then maps is working normal and no more
wakeup´s from deep sleep, the reason why i didnt figured before ...
i hope google will fix this one day or give a choice how often it syncs ...
just in case someone is interested.
Click to expand...
Click to collapse
Thanks for creating the thread.
How did you check that Latitude was awaking the device? By what app?
Everything was going fine for me till yesterday night it started to Awake again while screen is off. Believe me it really pisses me off. It's a disgrace of Android OS, ehh.
Here, why the underlined Reds are there? (Nothing is set to Auto Sync, No Widgets, No push-pull Email)!!!
I tried to see what's running and awaking the device and used these software's, SeeCPU, CPU Spy, 3G Watchdog, but none of them shows anything.
i know its a pain
also tested system panel, quick system info (logcat), ...
at the end i made an trial and error, installed one by one, started, rebooted, checked.
after each setting change same procedure ... after almost a whole day i activated
latitude and checked in there ... voila, only way to get rid of afterwards is clear data
on googlemaps app and turn latitude off ...
sorry that i cant help u further, but i gave up on all kinda apps checking ...
It's a PITA. I so hate it. Well I also will try to get rid of this damn Latitude stuff and see what happens further and post back.
Regards.
PS- Well how do you turn this latitude off? I can only Sign Out of it!
Try BetterBatteryStats.
I have similar battery graph like you, alturismo, but with the difference that it's not consistent 1min wake always, but certainy most of the time. Also tried different tools to find that out, but the only thing I figured is that maps are trigered by certain app_84 and app_68, but didn't found out what apps these are.
Nevertheless, I never checked to Latitude and the odd thing is that I have a high % usage on maps and Sygic (navigation) even though I haven't used them for weeks. So I'll try to clear data on maps now, thanks for the hint.
Update: I was indeed checked into Latitude. Seems that it was automatially set up after registering the google account. :S
dont forget to clear data in app settings from maps, otherwise the wakeups keep ...
then u can use maps normally again
Strange .. I simply sign off latitude (well it's a bit hidden option, but it is there) .. and latitude is KO. Also when I am on latitude, maps shows in apps in battery stats.

[Q] What is keeping my phone awake (BBS screens)?

Hi,
I've noticed that my phone hardly sleeps these days and it's very annoying.
I used BetterBatteryStats to get an idea why, but I'm still miffed about it.
I enclose screencaps and ask for your wisdom in debugging this

[Q] need help or advice on deep sleep problem

Hey guys,
i am on latest CM9 quarx build..but my phone is not going into deep sleep atall
it says 0% deep sleep in CPUspy...tat has become a headache..i was on epi CM(..there also it had come problem..then installed latest quarx build..then it was going into deep sleep unto few hrs ago..now it says 0% deep sleep.
I cant few detailed battery drinking info on ICS unlike GB..
Any help would be appreciated name of the app..or advice..or any kind of help will do..
Thank you
Try editing your build.prop and adding
Code:
ro.ril.disable.power.collapse=1
Don't know if this will help , but in the event that it doesn't , try ending processes before locking the phone , or use some system analyzer to see what app is stopping deep sleep
Herpderp Adreno + Tegra.
thanks but i did a full data wipe and reinstalled everything from scratch..later restored apps with the help of titanium backup
its pain in the ass to do everything from scratch...anyways if still i face this problem then will report back..anyways could anyone suggest me some apps which can findout which app or process is the culprit?
Try this one:
http://forum.xda-developers.com/showthread.php?t=1179809
I had the same problem on CM7 120126.2206, and it turned out that Google Maps was the culprit. However, I discovered that Google Maps doesn't prevent the phone from going into deep sleep when the GPS is disabled. Try disabling GPS whenever you're not using it, and see if that helps.
Edit: after further testing, it seems that Google Maps may not have been the culprit after all, or I may have more than one problem with deep sleep. Occasionally the phone gets locked out of deep sleep even when GPS is turned off; yesterday it failed to enter deep sleep even while the phone was untouched for 4 hours. The "BetterBatteryStats" app indicated listed "wifi_wake" under Kernel Wakelocks as the primary culprit. Disabling then re-enabling wifi solved the problem, at least temporarily.

Need to restart every few days or phone wont enter deep sleep?

Like the title says, my phone stops going into deep sleep about 3 days after a reboot. I need to reboot the phone for it to go to deep sleep again. Would anyone know what might be causing this?
Japultra said:
Like the title says, my phone stops going into deep sleep about 3 days after a reboot. I need to reboot the phone for it to go to deep sleep again. Would anyone know what might be causing this?
Click to expand...
Click to collapse
In my opinion, that's not a bad thing. It's better to restart any device with an OS on it at least once a day or two maximum.
A computer device that stays on for days is similar to a human not getting sleep. Things slow down and become fragmented. VRAM, Page File, etc start getting cluttered.
I'm not surprised your phone won't enter deep sleep after three days of being on. After that much use, you'd have used various apps and services causing wakelocks.
That's what I experience, at least.
FiddleGoose said:
In my opinion, that's not a bad thing. It's better to restart any device with an OS on it at least once a day or two maximum.
A computer device that stays on for days is similar to a human not getting sleep. Things slow down and become fragmented. VRAM, Page File, etc start getting cluttered.
I'm not surprised your phone won't enter deep sleep after three days of being on. After that much use, you'd have used various apps and services causing wakelocks.
That's what I experience, at least.
Click to expand...
Click to collapse
My S6 didn't do this though. I could go for a couple weeks without restarting it and it would still enter deep sleep.
I had a similar problem. For me it wasn't every three days, but usually 24-36 hours. But same issue, suddenly wouldn't go into deep sleep and a restart would fix it.
I found my issue to be gas buddy app and it trying to poll locations via bluetooth. Google it, there are lots of threads on it, but basically due to bad programming it would just jam on.
I figured this out as i could get my phone to go into deep sleep by turning off bluetooth, so that might be a quick easy test for you.
Also remember my in case (and unfortunately for a lot of other people) it was the gas buddy app. but others have reported the same issue with other apps.
i don't know if android's implementation on bluetooth location is busted, or the way the apps are using it.

Notifications wonky after Pie update

Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change.
If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.
Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.
You could try to whitelist those apps on Battery Optimization
I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window
If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Click to expand...
Click to collapse
https://developer.android.com/training/monitoring-device-state/doze-standby
I think white listing the app prevents this behaviour
It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that!
I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.
Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI:
Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization.
Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see.
I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds.
Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Tepig said:
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Click to expand...
Click to collapse
Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.

Categories

Resources