Wakelock & 128Mhz - EVO 4G Q&A, Help & Troubleshooting

I don't fully understand what wakelock is, I know it has to do with CPU at minimal usage while screen is off, but that's it.
Alongside that I know some kernels can reach 128MHz, but I've found they only scale to 245Mhz by default.
Could we discuss wakelock issues and scaling, maybe get a better understanding for all?

I'm still looking for feedback, my phone has has 100% awake time lately.
Using spare parts, the numbers just don't compute...partial locks are far less than the system uptime.

You can read a fair amount about wakelocks here: http://geekfor.me/news/facebook-1-3-wakelock/
I'm not saying that facebook is your issue but that's an article I wrote a few months ago when the new facebook update wasn't releasing a wakelock. That has been fixed since then though.
This chart should answer a few of your questions:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There are also several screen shots at the bottom that show the commands you can run from ddms (dalvik debug monitor... it's part of the android sdk) to see any current wake locks that are in place on the phone.
FYI your phone will not sleep when it's plugged in, so you can't compare awake and sleep time when you have it plugged in. It also will not sleep after very first boot until you wake it up and then put it to sleep again. If you are having wake time issues then you should start uninstalling applications until it starts sleeping. Or the faster way would be to just do a data wipe and start over and slowly re-install your applications, paying attention to when it stops sleeping.
I know this is brief but I just wanted to give you a place to start looking.
As for 128mhz vs 245mhz... 245 is the lowest the phone can go by default. I honestly don't keep up with the kernel stuff a whole lot but if there is a kernel that is capable of going down to 128mhz then you would need to use an app such as setcpu to allow it to scale that low. In my experience in the past I have had issues on my phone when going below 245mhz. The phone would automatically drop to 19mhz and basically come to a hault. However like I said I haven't done anything dealing with custom kernels in months so I'm sure I'm behind on new changes.

Extremely helpful, thank you so much.
As much as I have many more questions, you've set me in the right direction.
So far I've found after wimax is shut off I get a connection error sourcing from wimax repeatedly.
Still looking into this.

Related

Phone waking up a lot overnight. How do I track down the culprit?

My phone is waking up quite a bit overnight while I'm sleeping. How do I find out what app or process is waking the phone up and keeping it awake?
In the attached screen shot, the phone was sitting, screen off, for about 8 or more hours but as you can see there are non trivial stretches of awake time.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For reference, I have gmail, google calendar, and google contacts set to sync; was signed into google talk; have an exchange server set to sync email and calendar once an hour; and beautiful widgets set to sync weather once an hour. All that said, those stretches if awake time seem longer than it would take to pull email or weather. Maybe I'm wrong on that though?
Thanks in advance for any help.
If you really, really want to be systematic about tracking down what is draining your battery or keeping the phone awake then I would go back to nearly an out-of-the-box state. Uninstall all your apps (if you're really hardcore then do a factory reset). See how it handles overnight unplugged in that pristine state. Then install your essential stuff that you listed in your post - exchange, gmail, calendar and see how that goes during night two. Night by night add just a few apps and watch for changes. That is just about the only way to definitively track down what configuration or app or combination of apps is causing you problems.
Try BetterBatteryStats - http://forum.xda-developers.com/showthread.php?t=1179809
serj69 said:
Try BetterBatteryStats - http://forum.xda-developers.com/showthread.php?t=1179809
Click to expand...
Click to collapse
Seconded. Once running, that app will show a detailed list of what apps are causing wakelocks, and from there you can try to eliminate the one that's misbehaving.
I had a same "problem" tryed of course BetterBatteryStats but all the wake at night was caused by cernel proceses kworker/u:0...4 i have no idea what cause it. But recentley i installed Imoseyon's kernel 10 exp1 and now i have no such wake up's.
Hop it will help You, of course if there no real app causing troubles.

Wakelock, better battery help

So I feel like since I rooted my phone and installed nova my batter drains more...and I'm really new to all this stuff and I don't understand what any of this means:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
is this good or bad... It says it's awake 88% and only 12% deep sleep. If someone explains to me I'll be thank full
WendyB87 said:
So I feel like since I rooted my phone and installed nova my batter drains more...and I'm really new to all this stuff and I don't understand what any of this means:
View attachment 2871684View attachment 2871685View attachment 2871686 is this good or bad... It says it's awake 88% and only 12% deep sleep. If someone explains to me I'll be thank full
Click to expand...
Click to collapse
That's not normal. Whatever wakelock is keeping it awake is not captured in your WLD screenshot. Track it down in better battery stats instead, using "partial wakelocks"
Thank you...that's what I thought... I don't know what happened...so I went into partial wakelocks and everything looks like low %... But kernel wakelocks there was a lot of high percentages...
First thing that sticks out is drop box. It shouldnt be running for that long. Did you turn on auto backup? This will cause huge drains. If turned on turn it off. Also check in service running for 21 minutes... Turn off your gps. This is Google now constantly running and locating you to try and provide you with what it thinks is useful cards (weather, traffic, food in your area) I only then on my gps when I'm gonna use navigation. Otherwise all apps with gps access will start to run and kill your battery. Also I suggest greenify. It'll help a lot with things like Facebook, Twitter, Google search, ect. Wakelocks. Also removing or freezing bloatware helps tremendously with battery drain. And last carrier iq. Something that always runs in the background. Google search it or read up in the battery threads here on XDA. They talk about it a lot and how to try and stop it. Also this thread
http://forum.xda-developers.com/showthread.php?t=2816353
although for the SGS5 it can be applied to our device as well
Sent from my LG-D850 using XDA Premium 4 mobile app
also your font looks distorted, i would return the phone! ?

Massive wakelock from multiple apps (*alarm*)

Hey there, I wanted to show a new kind of battery drain that is happening to my 5X since two weeks every now and then (about 3 or 4 days).
(Nexus 5X with the latest PureNexus 6.0.1 on ElementalX kernel with HawkTail settings)
Apparently at some point, applications like Play Services, MoneyLover, Whatsapp, Tasker, App Google, Weather Timeline, Office Suite, Phone, Google Opnion Rewards, Zooper Widget start keeping alive the device with wakelocks called *alarm* or wake:[service for sync of the app] draining in an insane manner the battery (the first processor of the LITTLE chip is always at max speed).
The really odd thing is this Bluetooth graph in BetterBatteryStats:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Apparently, even if it's off, the bluetooth keep switching on and off. But the thing is that in every wakelock app I cannot find anything anormal related to the bluetooth (of course, it's off) which led me to think that maybe the graph is measuring something else.
Someone could say that it's fault of some app or even of the Play Services, but I tested even with every Google sync service disabled and nothing changed: the drain continued.
Looks like something the cause is really something system-wide because it's causing A LOT of apps misbehaving in this peculiar way.
I tried using the Battey Historian Tool, but I didn't manage to extrapolate useful information. The misbehaviour seems to stop after a reboot and after it recharged completely. Even disabling wifi and data gave no effect.
Here some screenshots of stats:
In summary, I could really use an hand in diagnosing what the hell is happening here because I am not understanding anything and I saw my fair share of wakelock problems, but nothing like this one. I'd like to undestand something before trying a factory reset.

Big battery drain overnight and low deep sleep (problematic kernel wakelocks)

So i flashed Butterfly kernel successfully, and i immediately installed kernel manager and cpu spy to measure cpu states, and betterbaterystats in addition to that, after close measurements i saw that it spent roughly 60% of time in 652 freq and only 40% in deep sleep, which accounted for 15-18% battery loss overnight with wifi and mobile data off. Betterbaterystats show that only small portion of screen off state (30%) is spent in deep sleep, rest is spent in "screen off awake" state with portions in doze states. I am confused and beg your help on how to fix that. Obviously these kernel wakelocks are preventing deep sleep from happening. I am talking about dozen of wakelock that fired off 20k times in couple of hours. I really like this kernel, its just that i have serious problem with screen off battery consumption.
I factory retested the device last night and left it to stay overnight. As you can see from the accu battery stats off screen battery drain was around 10% that is 1.3% per hour. And I already ruled out user apps because I have bare minimum of them installed on the phone. I have magisk with only xposed framework and Sonymusic4magisk modules installed. I am currently on stock ROM 8.1 Oreo version 9.6.11.0 and am using butt kernel for 8.1 normal and undervolted version 4.9.x.20150123.
Tried stock kernel, oreo normal, undervolted, overclocked, no magisk, factory reset, clean flash, but dozen of ipc wakelocks and timerfd wakelock still persist and actively disrupt deep sleep.
I tried to block them using MTweaks Boeffla block option, but they are blocked first 5-10 mins after boot, and after that they persist. This issue is present in both dragonheart and CAF kernel.
Im providing detailed logs and screenshots, so please help anyway you can, I would be super grateful.
Betterbatterystats log
https://ufile.io/2tttlxjf
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
https://i.imgur.com/DqGPeIc.png[IMG]
[IMG]https://i.imgur.com/BLkl5ii.png[IMG]
[IMG]https://i.imgur.com/zs7c3J0.png[IMG]
[IMG]https://i.imgur.com/UWSSYO8.png

Screen using power when turned off

I've got all gestures and everything else I can think of off, I even disabled "Prevent accidental touches" yet it's still draining the battery fairly considerably
Any ideas?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It's one of them sweet new features Samsung added, just enjoy it and stop whinging.
....m
If your phone is rooted, check your deep sleep time in a kernel manager like mtweaks or ex. If it doesn't go into deep sleep, there's probably a app preventing it. You can probably find it under the battery usage in your settings. If you can't find it try DS battery saver, if that resolves your issue, it's probably an app keeping your phone awake. It also could be the AoD thats keeping it awake, I only know about this problem in custom roms, and I don't encounter it on my phone on OneUI, but this could be an issue aswell.
Ugulp said:
Do you have an SD Card in your Galaxy?
When you have one, than take it out.
Click to expand...
Click to collapse
Even if it fixed it, I use my sdcard every day for my media default save location but thanks
Bumo Gaming said:
If your phone is rooted, check your deep sleep time in a kernel manager like mtweaks or ex. If it doesn't go into deep sleep, there's probably a app preventing it. You can probably find it under the battery usage in your settings. If you can't find it try DS battery saver, if that resolves your issue, it's probably an app keeping your phone awake. It also could be the AoD thats keeping it awake, I only know about this problem in custom roms, and I don't encounter it on my phone on OneUI, but this could be an issue aswell.
Click to expand...
Click to collapse
Not rooted unfortunately, shame they limited access to app usage, I mean even Android battery status has more info
Deep sleep seeems to work, battery drain in the morning is fine, this is through the day
Bit of an update for anyone wanting to see actual app stats, "Accubatttery" still works fine
https://play.google.com/store/apps/details?id=com.digibites.accubattery&hl=en_GB

Categories

Resources