Enormous battery drain caused by *alarm* - G2 Q&A, Help & Troubleshooting

Hi guys!
I'm on newest (5.5.1) version of resurrection rom for d802. Everything works fine except battery lifetime which in best case scenario is bad. Problem is probably caused by *alarm* wakelock which seems to prevent phone from entering deep sleep and it keeps phone around 1.0-1.2 GHz on offscreen. Morever it affects multiple apps, even those I haven't ran even once. I tried wiping all data and system, clean flashing multiple ROMs and even going going back to stock JB and then again following flashing instructions for resurrection ROM, same happens on BlissPop ROM and slimsaber.
Any help would be greatly appreciated, it really does make phone almost unusable.

Related

com.android.systemui causing battery drain

Hi,
I'm starting this thread because I experience a battery drain and it doesn't make sense.
I was on different cm11 rom and at one point I start to have a high percentage of battery used by com.android.systemui.
Since then it's always there even after a full wipe, wipe the caches, changing the rom or the kernel.
It's frustrating so I'm hoping that someone can help me.
You can see the evolution on the pictures attach.
ollden said:
Hi,
I'm starting this thread because I experience a battery drain and it doesn't make sense.
I was on different cm11 rom and at one point I start to have a high percentage of battery used by com.android.systemui.
Since then it's always there even after a full wipe, wipe the caches, changing the rom or the kernel.
It's frustrating so I'm hoping that someone can help me.
You can see the evolution on the pictures attach.
Click to expand...
Click to collapse
I hope that I can help with this result. yesterday night, I installed TWRP recovery instead of Philz and reflash the rom.
I solved my problem because com.android.systemui is back to a normal use and the battery didn't lose any percentage over the night.

[Q] Wifi-Wakelock

Hello!
I've made everything possible, to reset my phone, i flashed a newly fresh Stock ROM with ODIN and deleted everything on my intern SD-Card. So actually it should be clean and fresh.
But my Wifi-Module still doesn't let my phone sleep. It wakelocks the whole phone to 95%!
I use Wakelock Detector, to see what's happend and I can see that wlan_rx_wake and wlan_wd_wake are the problem. When I shut wifi off, everything works fine and my battery doesn't drain so fast.
Can I replace the Wi-Fi-Module? Or do you know any solution?
Thanks,
Jan

[Q] KitKat to Lollipop - the phone is unusable (huge battery drain and sys errors)

Hi everyone,
Until recently I've been using a KitKat based ROM and I was pretty OK with how my NOTE 3 SM-9005 was performing. However, a few days ago I decided to try a Lollipop based ROM and the problems started. I had similar problems with 3 different ROMs with great reviews. My battery went, for example, from 100% to 15% in ONE HOUR while streaming from YouTube. It never did that before. Also, It sometimes gives a "system stopped responding" error or something like that (it's like the equivalent of explorer.exe crashing on Windows) and after a few seconds it starts working again. Other system apps crash as well every now and then and sometimes the phone just decides to restart by itself.
I initially used Philz recovery and after the initial errors I switched to TWRP and started from scratch. I completely wiped my system internal space before flashing and, of course, I wiped dalvik cache and cache before and after flashing the ROM. I only used recommended gapps. Also, I did not restore any system apps. I started from scratch after the installation and the problem is the same.
To be more exact, I tries flashing so far the following ROMS, experiencing more or less the same problems on each:
temasek's UNOFFICIAL CM12.1
AryaMod V5.4 TW Lollipop Official BOB6
BlissPop 3.5 Unofficial
I also tried the Dirty Unicorns v9.4 ROM from the Original Android Development section but this one went on a reboot loop initially after the first restart so it never really even installed.
At this point I believe I might have done something that I should't have, but it seems strange because this is not the first time I am flashing a new ROM and I never had problems in the past. Also, my NOTE 3 SM-9500 did not have any problem on my previous KitKat ROM. Did I miss something? Should I have used another kernel? If I understood correctly, the ROMs come with a recommended kernel already. If this is not the problem, what could it be? Should I have done any additional thing before flashing a Lolipop ROM after using a KitKat ROM?
I now installed an app for trying to find out what exactly drains my battery but this is not the only problem. The system itself is really unstable.
I would really appreciate some help, suggestions, or opinions. I really don't know what else should I be doing at this point.
Thanks a lot!
Apparently is the media server eating all that battery (currently 68%).
I will format the SD card hoping this fixes the issue.....but could this have something to do with the system error and, sometimes, restarts?
Well I really don't know what to say! A lot of people report battery problems on 5.0 just because they didn't wipe the phone while coming from KK! But you did, so that's no go. Battery life on LP is much better than KK for me, at least 20% better if not more. And I didn't face any system crashing issues either! Don't really know what's going on with you mate.
Someone suggested that maybe I shoud update the bootloader and modem to a Lollipop version but I really couldn't find any info on how to do that.
Formatting the SD card just slightly reduced the battery drain. The phone is still discharging like crazy. Any suggestion on how to update the bootloader and modem?
Thank you.

Android System Battery Draining

Hi all
I'm kinda frustrated and this is my story.
I have Edge + for less than an month (this is my firs Samsung device). I feel pretty familiar with the rooting and other installation, so after I got this device I installed PhilZ Recovery and the Arter kernel.
The device was kinda laggy and after I've tried to restart the device it stock on FRP lock and I flashed the original firmware and decided to let it chance. After that no matter what I did including reflashing
the original firmware, Android System keeps draining the battery, in one night it lose 30% with doing nothing (I guess it is some deep sleep bug). It's like CPU works half of the time while the device is turned on
(with or without Screen is ON).
My question is why actually this happen? Is it common issue with the original firmware? What can I do?
All advises will be welcomed.
Thanks!
stas-ta said:
Hi all
I'm kinda frustrated and this is my story.
I have Edge + for less than an month (this is my firs Samsung device). I feel pretty familiar with the rooting and other installation, so after I got this device I installed PhilZ Recovery and the Arter kernel.
The device was kinda laggy and after I've tried to restart the device it stock on FRP lock and I flashed the original firmware and decided to let it chance. After that no matter what I did including reflashing
the original firmware, Android System keeps draining the battery, in one night it lose 30% with doing nothing (I guess it is some deep sleep bug).
My question is why actually this happen? Is it common issue with the original firmware? What can I do?
All advises will be welcomed.
Thanks!
Click to expand...
Click to collapse
I would suggest finding the stock firmware and kernel and re flashing both clean. I have the Edge+ international version and I also rooted and flashed the Arter kernel... But i do not have deep sleep issues. I will loose probably 2-3% battery over night with sync and Wi-Fi off.
Sent from my SM-G928F using Tapatalk
Speedster_1 said:
I would suggest finding the stock firmware and kernel and re flashing both clean. I have the Edge+ international version and I also rooted and flashed the Arter kernel... But i do not have deep sleep issues. I will loose probably 2-3% battery over night with sync and Wi-Fi off.
Sent from my SM-G928F using Tapatalk
Click to expand...
Click to collapse
That exactly what I did I flashed (even a few times) the original kernel and ROM via Odin but the issue is still there.
2-3% per night it's nothing comparing to my 30% So I guess you don't have any deep sleep issue
stas-ta said:
That exactly what I did I flashed (even a few times) the original kernel and ROM via Odin but the issue is still there.
2-3% per night it's nothing comparing to my 30% So I guess you don't have any deep sleep issue
Click to expand...
Click to collapse
True but my G3 used to sleep for 8 to 10 hrs straight with 0% drain.... But oh well.
Sent from my SM-G928F using Tapatalk
Speedster_1 said:
True but my G3 used to sleep for 8 to 10 hrs straight with 0% drain.... But oh well.
Sent from my SM-G928F using Tapatalk
Click to expand...
Click to collapse
Hey. Yeah G3 is the best in deep sleep case. no drainage for a day for 6 days just %1,, but too much drainage while using tho
I'm not sure if my problem is the same as yours. But my phone was facing the same battery issue on stock firmware. I turn off everything, even with flight mode on, the battery drain was like 30-40% overnight.
After I installed gsam battery monitor, I found out that the android system was the main culprit. The android system drain amount was like 7-10 times to kernel (android os), and the apps also showed that my phone was kept awake all the time. No matter what firmware I used, the problem still persists. Fortunately, the problem was then solved when I installed arter97 kernel, or any kernels other than the stock one.
fenrir_ac said:
I'm not sure if my problem is the same as yours. But my phone was facing the same battery issue on stock firmware. I turn off everything, even with flight mode on, the battery drain was like 30-40% overnight.
After I installed gsam battery monitor, I found out that the android system was the main culprit. The android system drain amount was like 7-10 times to kernel (android os), and the apps also showed that my phone was kept awake all the time. No matter what firmware I used, the problem still persists. Fortunately, the problem was then solved when I installed arter97 kernel, or any kernels other than the stock one.
Click to expand...
Click to collapse
Yea, this is the exact my problem. Eventually I flashed Arter97 kernel and seems like the issue actually disappeared.
Thanks!
I have the same problem. No deep sleep on stock rom ! Any help ?
Thnks a lot
L

Workaround for stock ROM

I've been using Stock ROM since now and it lags way too much for me, my friends on Stock facing same issues, idk which custom ROM to go to as there's just so many ROMs with different bugs in them. Athene is my daily driver i don't wanna lose it by installing a crappy ROM. Please help.
P.S. I'm just a noob in flashing. Please someone send a link for first time installing of custom ROM. Thanks.
mayank.bhola1 said:
I've been using Stock ROM since now and it lags way too much for me, my friends on Stock facing same issues, idk which custom ROM to go to as there's just so many ROMs with different bugs in them. Athene is my daily driver i don't wanna lose it by installing a crappy ROM. Please help.
P.S. I'm just a noob in flashing. Please someone send a link for first time installing of custom ROM. Thanks.
Click to expand...
Click to collapse
LineageOS is a very stable and well-supported ROM with OTA updates as well.
As for installing a custom ROM maybe try reading the forum.
Try lineage or resurrection remix. They are the most stable. Till early this month I was using rr now shifted to lineage os
mayank.bhola1 said:
I've been using Stock ROM since now and it lags way too much for me, my friends on Stock facing same issues, idk which custom ROM to go to as there's just so many ROMs with different bugs in them. Athene is my daily driver i don't wanna lose it by installing a crappy ROM. Please help.
P.S. I'm just a noob in flashing. Please someone send a link for first time installing of custom ROM. Thanks.
Click to expand...
Click to collapse
Before flashing anything, have you tried the usual troubleshooting steps of wipe your cache and Dalvik in your recovery? Or if that didn't work, a factory reset (which may wipe your apps and app data)? You could also look into reflashing the stock ROM (e.g https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369) but before trying any of this, make sure your data is backed up.
I'm using InvictaOS (unofficial lineage based ROM) https://forum.xda-developers.com/moto-g4-plus/development/xt16xx-cyanogenmod-14-1-alpha-t3492274 as my daily driver and it's been very stable, of course my usage will be different to yours, so your experience may vary. However, I get good battery life, watch YouTube at 1080p, calls are of good quality and the patched Moto camera works, as well as the system being smooth and responsive.
As with flashing any custom ROM, be aware that you'll have to unlock your bootloader from Motorola, which will void your warranty and also erase your data. Relocking your bootloader will not restore your warranty if you need to visit a service centre. Also, switching to a custom ROM will also result in device wipes so ensure you have a good backup before starting.
echo92 said:
Before flashing anything, have you tried the usual troubleshooting steps of wipe your cache and Dalvik in your recovery? Or if that didn't work, a factory reset (which may wipe your apps and app data)? You could also look into reflashing the stock ROM (e.g https://forum.xda-developers.com/mo...o-g4-plus-xt1640-43-athene-npj25-93-t3549369) but before trying any of this, make sure your data is backed up.
I'm using InvictaOS (unofficial lineage based ROM) https://forum.xda-developers.com/moto-g4-plus/development/xt16xx-cyanogenmod-14-1-alpha-t3492274 as my daily driver and it's been very stable, of course my usage will be different to yours, so your experience may vary. However, I get good battery life, watch YouTube at 1080p, calls are of good quality and the patched Moto camera works, as well as the system being smooth and responsive.
As with flashing any custom ROM, be aware that you'll have to unlock your bootloader from Motorola, which will void your warranty and also erase your data. Relocking your bootloader will not restore your warranty if you need to visit a service centre. Also, switching to a custom ROM will also result in device wipes so ensure you have a good backup before starting.
Click to expand...
Click to collapse
Yes i wipe cache like once a week and have tried factory reset, but no luck . Stock Nougat still lags, my usage is mostly same as yours, calls and YouTube and texting. The only thing that bothers me is warranty. Thanks for replying.
mayank.bhola1 said:
Yes i wipe cache like once a week and have tried factory reset, but no luck . Stock Nougat still lags, my usage is mostly same as yours, calls and YouTube and texting. The only thing that bothers me is warranty. Thanks for replying.
Click to expand...
Click to collapse
That's fair enough, losing warranty is definitely a consideration. Re flashing the stock ROM as mentioned above shouldn't affect your warranty and may resolve issues with your system (which is possible if your problems are persisting after a factory wipe). What build of nougat are you on (under settings>about phone)?
Invicta os
mayank.bhola1 said:
I've been using Stock ROM since now and it lags way too much for me, my friends on Stock facing same issues, idk which custom ROM to go to as there's just so many ROMs with different bugs in them. Athene is my daily driver i don't wanna lose it by installing a crappy ROM. Please help.
P.S. I'm just a noob in flashing. Please someone send a link for first time installing of custom ROM. Thanks.
Click to expand...
Click to collapse
If you are searching for best custom rom try invictaos rom.
I am using invictaos from past 3 months and only one word I can say for this rom, it is just awesome rom,everything working superb in this rom,better battery 5 hours SOT,very smooth and finally no bug so go and try it.
echo92 said:
That's fair enough, losing warranty is definitely a consideration. Re flashing the stock ROM as mentioned above shouldn't affect your warranty and may resolve issues with your system (which is possible if your problems are persisting after a factory wipe). What build of nougat are you on (under settings>about phone)?
Click to expand...
Click to collapse
It's NPJ25.93-14, I'm waiting for the March Security Patch update, as other people are claiming better battery backup and to see if lag problem sorts out, if it won't hit my phone in 1 week or so then I'll move to one of your mentioned ROMs
I tried Unlocking Bootloader, entered the hex code in Motorola's website and it says my Bootloader can't be unlocked. I bought it from Amazon India (Retail package, no contract of any kind). Help me please.
mayank.bhola1 said:
I tried Unlocking Bootloader, entered the hex code in Motorola's website and it says my Bootloader can't be unlocked. I bought it from Amazon India (Retail package, no contract of any kind). Help me please.
Click to expand...
Click to collapse
Well, maybe that is for the best of your luck! I advise you to go to a service center and complain to them. Why? Because Motorola is BI*** and you are better off keeping your warranty stuck up their faces before trying anything else.
One more thing: when you are a noob, flashing a stock rom is not as safe as it sounds, you might end up without a sim slot or lose some other functionality.
Stick to your warranty and fight back the tedious way.
MK+2017 said:
Well, maybe that is for the best of your luck! I advise you to go to a service center and complain to them. Why? Because Motorola is BI*** and you are better off keeping your warranty stuck up their faces before trying anything else.
One more thing: when you are a noob, flashing a stock rom is not as safe as it sounds, you might end up without a sim slot or lose some other functionality.
Stick to your warranty and fight back the tedious way.
Click to expand...
Click to collapse
Ok I found that the hex code i was writing on, I cut off a string (low key my mistake) i unlocked bootloader, installed TWRP and now on lineage OS 14.1. It's working great, just a little worried for battery life but it's smooth af.
mayank.bhola1 said:
Ok I found that the hex code i was writing on, I cut off a string (low key my mistake) i unlocked bootloader, installed TWRP and now on lineage OS 14.1. It's working great, just a little worried for battery life but it's smooth af.
Click to expand...
Click to collapse
Great, I'm on Lineage OS, too
A generic battery saver: disable adaptive brightness and lower brightness only to the level you need. A full charge that way - with me using both WiFi and LTE - lasts a little more than 48 hours.
One last thing: please do a full backup from TWRP. Select all partitions you see available. Copy the resulting backup folder from SDCard to PC in a safe location. Do not modify further unless you really really can't breathe without it.
echo92 said:
Before flashing anything, have you tried the usual troubleshooting steps of wipe your cache and Dalvik in your recovery? Or if that didn't work, a factory reset (which may wipe your apps and app data)? You could also look into reflashing the stock ROM (e.g https://forum.xda-developers.com/mo...o-g4-plus-xt1640-43-athene-npj25-93-t3549369) but before trying any of this, make sure your data is backed up.
I'm using InvictaOS (unofficial lineage based ROM) https://forum.xda-developers.com/moto-g4-plus/development/xt16xx-cyanogenmod-14-1-alpha-t3492274 as my daily driver and it's been very stable, of course my usage will be different to yours, so your experience may vary. However, I get good battery life, watch YouTube at 1080p, calls are of good quality and the patched Moto camera works, as well as the system being smooth and responsive.
As with flashing any custom ROM, be aware that you'll have to unlock your bootloader from Motorola, which will void your warranty and also erase your data. Relocking your bootloader will not restore your warranty if you need to visit a service centre. Also, switching to a custom ROM will also result in device wipes so ensure you have a good backup before starting.
Click to expand...
Click to collapse
How much screen on time you get?? I am using Resurrection Remix. It gives me about 3-3.5 hours of sreen on time.
sanjaybaidya said:
How much screen on time you get?? I am using Resurrection Remix. It gives me about 3-3.5 hours of sreen on time.
Click to expand...
Click to collapse
With my usage pattern, I get typically 4-4.5 hours.
This includes:
Calls, texts, and brief Whatsapp usage
Browsing XDA, reddit, instagram
Youtube over 4G/LTE at 1080p (with a slightly weak mobile signal), which is my main usage.
This is with ambient display set to 100 ms wakeup, and 2 sec on time. General brightness at about 25 %. EX Kernel manager used to set maximum number of big cores to 2, I/O manager set to zen with 256 kB readahead buffer.
Of course, your experience may vary, though I've always had good battery life with Invicta.
echo92 said:
With my usage pattern, I get typically 4-4.5 hours.
This includes:
Calls, texts, and brief Whatsapp usage
Browsing XDA, reddit, instagram
Youtube over 4G/LTE at 1080p (with a slightly weak mobile signal), which is my main usage.
This is with ambient display set to 100 ms wakeup, and 2 sec on time. General brightness at about 25 %. EX Kernel manager used to set maximum number of big cores to 2, I/O manager set to zen with 256 kB readahead buffer.
Of course, your experience may vary, though I've always had good battery life with Invicta.
Click to expand...
Click to collapse
Did you underclock your processor??
sanjaybaidya said:
Did you underclock your processor??
Click to expand...
Click to collapse
Nope, stock core speeds (think the big cores run up to 1651 Mhz, little cores at 1200 Mhz), just capped the maximum number of big cores to 2. Besides, the interactive governor will likely pick the speeds appropriate for the task, I imagine. In fact, I recall having good battery life even with the stock kernel settings and all cores available, just with these settings my device runs cooler in my experience. Again, the beauty of EX Kernel Manager and the Invicta kernel (alongside many other kernels and managers) is that you can try and tweak a lot of options, many of which will be subjective and vary depending on your usage
echo92 said:
With my usage pattern, I get typically 4-4.5 hours.
This includes:
Calls, texts, and brief Whatsapp usage
Browsing XDA, reddit, instagram
Youtube over 4G/LTE at 1080p (with a slightly weak mobile signal), which is my main usage.
This is with ambient display set to 100 ms wakeup, and 2 sec on time. General brightness at about 25 %. EX Kernel manager used to set maximum number of big cores to 2, I/O manager set to zen with 256 kB readahead buffer.
Of course, your experience may vary, though I've always had good battery life with Invicta.
Click to expand...
Click to collapse
Wow... my usage is nearly the same and on nearly every ROM I get about 5.5-6.5 hours of SoT. Whether it be LOS, Invicta, GZR Tipsy (slim based), AOSP-CAF, or even MM ROMs (which are even friendlier on battery).
I disable any memory killers, location, bluetooth, set zen/512kb, disable all big cores, default adaptive brightness, and my usage is reddit/Instagram/Chrome/Telegram. This is over a 2 day period too.

Categories

Resources