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
Related
Spent untold hours trying to figure this battery drain issue out ...
Before Froyo (stock T-Mobile) update, would lose about 5% battery overnight. No widgets running, but Exchange e-mail, bloat freezer to turn off some stock apps, but no undervolting or other tricks.
After the Froyo update, would lose 20% battery overnight, and an hour phone conversation would take down 30% of my battery. Tried undervolting, checked battery users (only report is phone standby), and even installed Cyanogen (same exact battery consumption).
Could it be the T-Mobile radio eating my battery? Saw other anecdotal evidence of this issue in other posts, but nothing clear and definitely no real solutions.
Try 'USB Debugging - ON', switch sometimes 3g/2g/auto, reset battery stats,
Take a look at software - Power Tutor, Wathcdog, and so on.
I have 6-4% per night with wifi off, and 3g on.
Barebones 1.5.1 ROM (177 sbf)
Here is my usage graph, 2h per 1% at night
{
"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"
}
Good points
Thanks for the suggestions. I did reset the battery stats already, that didn't help either. Trying out Juice Defender now ... maybe something connecting too frequently (even though Android power settings set to night time saver).
Even with ...
Juice Defender running with agressive settings (airplane mode between midnight and six AM) still lost 20% power overnight.
Graph shows losing 10% between midnight and 1AM and 10% between six and seven AM. Hmmm. Thoughts?
Get a bugreport from your phone, all the info you can find is there. Just be aware it may contain your private info (messages, phone numbers, etc) if you post the file online.
Look at the kernel log, and the battery logs. You may find some clue there.
Guys, I have no idea what is IRQ as shown in the screenshot below. It seems that the usage is fairly high once I flashed Faux 7m kernel compared to stock kernel and hence drain my battery faster, this is in accordance to the CPU usage shown in the notification bar for viperX 2.1.0 ROM that the CPU runs very often using faux 7m kernel.
{
"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"
}
I could barely last for 3hrs OST with very minimum usage compared to 4hrs OST in stock kernel.
Anyone pros here can explain this ? Thanks a lot appreciate your help
May I ask:What software you've use to monitor the CPU usage of each application?
That image shown above I use Elixir 2.
I do use other apps too, including system tuner pro to monitor the usage, the main CPU usage bar is high, but it does not match with the process running, for eg : the main CPU usage shows 40% but sum of all the CPU usage by all the processes is not 40% but much more lower (10%).
I also use betterbattery stat but no problem in wakelock, it's perfectly normal.
Only elixir 2 app manage to find out it is IRQ keeps running.
How ?
whompah said:
That image shown above I use Elixir 2.
I do use other apps too, including system tuner pro to monitor the usage, the main CPU usage bar is high, but it does not match with the process running, for eg : the main CPU usage shows 40% but sum of all the CPU usage by all the processes is not 40% but much more lower (10%).
I also use betterbattery stat but no problem in wakelock, it's perfectly normal.
Only elixir 2 app manage to find out it is IRQ keeps running.
How ?
Click to expand...
Click to collapse
Thank you, I've installed this software too, but Mine's as same as yours, IQR keeps running, hope this wont affect the battery life!
Does anyone else know?
My Galaxy S III battery drains very fast, sometimes as much as 10% in 30 minutes (running 4.4.2). The battery is fine (I did the spin test), so I'm pretty sure it's a CPU-related issue, especially since the battery temperature is always around 110 deg F. The Android System process uses up more battery percent than my screen, so I did a full reset, ran DU Battery Saver, disabled LTE/sync/wifi, and uninstalled over 100 bloaty system apps through rooting. Still, even with a fresh install and all the other adjustments, the Android System is sucking down the battery juice like it was before.
I've been doing tons of research on this issue and haven't been able to find a solution. When going into the show CPU usage through developer options, the top line (with all the numbers) is often showing a long red line (even after doing a full reset on the phone).
Any suggestions would be greatly appreciated. Thanks.
Not CPU related. It's an app hats continuously running in the background. Try Wakelock Detector to find the culprit.
{
"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"
}
My ROM: WICKED X
bilgerryan said:
Not CPU related. It's an app hats continuously running in the background. Try Wakelock Detector to find the culprit.
Click to expand...
Click to collapse
You mean a system app running through the Android System process?
vorsprungtechnik said:
You mean a system app running through the Android System process?
Click to expand...
Click to collapse
Yes. It would have to be.
My ROM: WICKED X
bilgerryan said:
Yes. It would have to be.
Click to expand...
Click to collapse
According to Wakelock Detector, here's the top culprits from the kernel wakelock menu (after ~5 hours):
PowerManagerService.Display (~43 min, x53)
main (~43 min, x53)
PowerManagerService.WakeLocks (~26 min, x1428)
bam_dmux_wakelock (~20 min, x797)
Thanks for your help so far. Where do I go from here?
I don't think I have yet seen this phone in deep sleep... I even got a deep sleep battery app that turns off the radios and is supposed to put it in deep sleep but I don't think it's actually going to sleep. From what my cpu manager tells me that it's spending a lot of time at 300 mhz, but shouldn't I see deep sleep as one of the cpu frequencies?
I'm used to my android devices sitting around for hours and not losing much battery because of deep sleep, and I am wondering why this phone doesn't seem to actually sleep.
Which app? "Deep Sleep Battery Saver"? Just for fun, what's your percentage in "Settings" ➜ "Battery & Storage" ➜ "View battery usage" ➜ "Phone idle"?
Can't say much about it, because we know nothing about your overall config... but you're right, it should be below 300 MHz for deep sleep.
ofc. it's not allowed to sleep because it has to send data to the AWS servers. ^^
After about 9 hours it's listed 7 hours on phone idle, or 4% of the battery. In that 9 hours about half of my battery has been consumed.
And yes it was deep sleep battery saver, not all that impressed with it really. I have been testing other settings and configuration apps and disabling system apps, re-enable some as well at the first hint of an undesired effect.
Last year I had an android with a bad battery that I could get almost 2 days of sparse use out of but it only a few hours of normal use. So I have expectations that when I'm not using my phone it won't go dead so quickly
That's a massive leak. My device loses 2% charge in ~ 12 hours. Has it always been that much or since you went on a "removing spree"?
If you haven't experimented with an app like this in the past, try using GSam Battery Monitor (or similar) to get an in depth view.
You can install it next time the device is fully charged, so it can monitor things objectively.
Tap on "App Usage" and then from the drop down menu on the top right "View Kernel Wakelocks", maybe you'll find some clues there.
You should be able to narrow it down to see which app(s) / service(s) is / are sucking tha sweet juice. You know I've dealt with similar battery behavior but I "enforced" it on purpose by deleting crucial apps. ^^
edit: Installed "Kernel Adiutor" again and restartet the phone, let's see which CPU frequencies I get during deep sleep.
edit: Stats from 5+ hours...
{
"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"
}
edit: Stats from 12+ hours with some internet browsing...
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