[Q] Phone suddenly stops sleeping (exactly at midnight!) ?! - Desire General

Hi,
posted this over at the Cyanogenmod forum already, but xda-audience is probably bigger making it more likely to find help ;-)
--
I am new to CM (came from Modaco ;-) and i would be extremly happy with CM 6.1 if i would not have one very stange issue:
My Phone suddenly stops sleeping exactly at midnight.
It all started when i found that it looses a huge amount of battery over night - it was one of the first days i used CM when i noticed this. As i am experienced with android i immediately checked my up/awake stats and found it was not sleeping properly. As the basic advice for this is always to find the "bad" app that is preventing sleep i treid something and finally thought the issue was gone. The phone was behaving properly the whole day.
Then i got the same issue the next night again !?
To finally sort this is ou, i installed juiceplotter and saw that ...
...the phone behaves fine until midnight - then it stops sleeping and drains huge amount of battery !!
When i start using the phone in the morning again - it seems to behave ok again (sometimes i rebooted - but i think just starting to use the screen again helps as well - not finally sure about this)
So the usual steps to check every single app via uninstalling (which i have all used with MCR-Rom without any problems) would take a while with my 70+ apps as i would always have to wait until midnight passes to see if i found the right one.
Any idea how to find the reason (app) that stops my phone from sleeping after midnight ? Mist be some app that also triggers something at midnight ?
Or any other idea what this could be ? (if not a 3´rd party app)
I checked logcat but could not find anything abvious.
Would really keep staying with CM and not nandroid back to MCR.
Thx
Marcus

It could be an app that is trying to sync at the start of the new day, thus starting exactly at midnight.
In the *#*#4636#*#* menu in battery history select the first drop down menu to "partial wake usage" and see if you can find which process is consuming the most resources in sleep mode.
It is likely that it's a third party app, but you can check that by booting in safe mode and leaving the phone over night to see if it happens again.
If as you say just by starting to use the phone the slowness disappers, it may be an app that is only working when the phone is idle (e.g. some maintenance app, antivirus, etc.).

Thx for the tips.
I checked most of them already ;-)
I found that "E-Mail" was 2nd in the "partial wake" list.
I configured an exchange-account there but set the sync interval to "never".
Nevertheless it is shown (only) with some 20 mins. (for ~6 hours standby) in the partial-wake-list - I found that suspicious.
After some googling today i found this:
http://code.google.com/p/android/issues/detail?id=9307
(this thread says that there is a bug (confirmed by google) that can prevent sleep with exchange-account set to sync never)
I tried to experiment today a little bit (also with setting the clock to 23:55 and wait a while for "midnight" to pass ;-) with different settings and found that "push"-setting shows better results (hard to tell with only ~30 mins. of stats each time). And now i tried with manual sync set to 1 hour (max) and see if that makes any difference.
I´ll dig a little deeper and post results.
In the meantime any tips or comments are warmly welcome. ;-)
Marcus
EDIT: If that "Exchange-bug" should be the reason - i just wonder why midnight seems to be a trigger - but who knows what went wrong deep in the code ;-)

confirmed:
It really WAS the Email-Client configured for Exchange.
No with setting it to "Push" everything is working fine .. when setting the sync to "never" Email start to keep wake-locks !
So everybody with a poor batt-performance should probably check this (if using Exchange) and use "push" until Google has fixed this bug (see above).
Marcus

Related

Android system - partial wake lock - one solution found

I have my phone running 99.6% of the time in spare parts and it shows android system as the culprit holding a partial wakelock.
so my question is, how do i fix this? i've tried a factory reset three times, am updated to 1.21 ota and have slowly started to reintegrate apps but it always starts again and always after a different app.
i'm getting pretty frustrated anyone got any ideas?
UPDATE In my case it was network time abusing wireless location service that was causing the problem and hence the reason a factory reset didnt solve it, i switched off network time and voila!
just to clarify, no live wallpapers, and phone is in airplane mode to avoid any data usage drainig the battery.
i have got beautiful widgets homescreen small clock and pure cal widget installed at the moment but even when i uninstall them it doesnt fix it, also im running launcher pro 0.4.2 but also had the problem when i reverted to sense.
and i have read every other thread here about battery life that i could find but no-one seems to have this problemo
anyone with any advice on why my phone wont sleep?
A long shot, but go in to Mobile Settings and untick Enable always-on mobile data.
Philosoma said:
A long shot, but go in to Mobile Settings and untick Enable always-on mobile data.
Click to expand...
Click to collapse
ok cool, giving that i try now but i had been leaving it in airplane mode to try and take the vagaries of data out of the equation.
this started about a week ago and i really noticed it when i was in a 6 hour long meeting and my battery basically draines 60% even though the phone was in airplane mode
ok tried that but with my phone just factory reset, airplane mode and no apps installed other than spare parts it's showing running 94.1 % of the time and all of it is android system.
that cant be right
i have restored data, maybe i shouldnt restore data either but that just seems plain crazy
Re: Android system - partial wake lock
What exact foreground and background processes/services do you have running when this is happening, any idea?
Apps like System Panel can show you them and some useful other details. That is certainly too high.
-------------------------------------
- Sent via my HTC Desire -
th3 said:
What exact foreground and background processes/services do you have running when this is happening, any idea?
Apps like System Panel can show you them and some useful other details. That is certainly too high.
-------------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
ok right now there is
com.android.syncml.service
sense
market
messages
people
rss reader
syncml provider
sys panel
touch input
updater
and then a load of inactive cached applications
do you see anything unusual there?
ok so i downloaded system app and killed all apps except excluded and sytem apps and my running usage has gone down, now thats no suprise in and of itself but now i need to see if it stays down.
i've just checked again and the percentage is still going down, so it's either an inactive app which i didnt list ( is that even possible if its inactive) or one of the items i listed above.
has anyone got any thoughts.
What do the logs say upon going to standby? (Use aLogcat to watch/save system log).
I had same problem I tried the turning off network always on to off, didn't change anything. the thing that worked for me was turning off my flickr account!? For some reason it kept my calendar awake so keeping system from sleeping, don't ask me why as I can't figure it out, though since doing this I'm now getting up to 2 days of average use from the battery. Also I've done the usual of reducing the different accounts sync timings etc.
Have you typed *#*#4636#*#* into the phone key pad to look at what is happening? This can give valuable info on what's draining the battery.
Jazd71 said:
I had same problem I tried the turning off network always on to off, didn't change anything. the thing that worked for me was turning off my flickr account!? For some reason it kept my calendar awake so keeping system from sleeping, don't ask me why as I can't figure it out, though since doing this I'm now getting up to 2 days of average use from the battery. Also I've done the usual of reducing the different accounts sync timings etc.
Have you typed *#*#4636#*#* into the phone key pad to look at what is happening? This can give valuable info on what's draining the battery.
Click to expand...
Click to collapse
I have the same problem as OP since the latest update. The *#*#4636#*#* code is not helping in this case. The partial wake lock is displayed as Android System - which doesn't tell me anything.
I read something about the Calendar issues but I am unable to stop the calendar in running processes.
How did you solve your problem?
ferus said:
I have the same problem as OP since the latest update. The *#*#4636#*#* code is not helping in this case. The partial wake lock is displayed as Android System - which doesn't tell me anything.
I read something about the Calendar issues but I am unable to stop the calendar in running processes.
How did you solve your problem?
Click to expand...
Click to collapse
Ok i seem to have had some luck since last night though i'm not sure of the exact reason.
i did as th3 said and downloaded system monitor and then killed all background active and inactive tasks and that seems to have solved the problem. I have no idea why that would be the case though and i am watching it carefully to see if it stays fixed.
i dont have a flickr account setup
djet said:
What do the logs say upon going to standby? (Use aLogcat to watch/save system log).
Click to expand...
Click to collapse
Djet, I installed alogcat and have found all references to wakelock, rather than post the entire log
D/PowerManagerService( 77): wakelock: PARTIAL_WAKE_LOCK 'NetworkLocation Check Location' activated (minState=0)
D/PowerManagerService( 77): wakelock: PARTIAL_WAKE_LOCK 'NetworkLocation Check Location' activated (minState=0)
D/PowerManagerService( 77): wakelock: PARTIAL_WAKE_LOCK 'keyguardWakeAndHandOff' activated (minState=0)
D/PowerManagerService( 77): wakelock: FULL_WAKE_LOCK 'keyguard'ACQUIRE_CAUSES_WAKEUP activated (minState=3)
there are also some entries in red like this one
E/vold ( 53): Unable to lookup media '/devices/platform/msm_sdcc.1/mmc_host/mmc0/mmc0:0001'
and a load of errors to do with global search etc but this is all pretty much gobbledegook to me, what am i looking for?
thanks
ok so based on that log i have switched of the use wireless networks to find my location (not gps i hardly ever use that anyway) and now the running % is dropping fast.
i will keep you posted as to whether it keeps coming down or not.
it is going to be an enormous bummer if i cant use wireless location, thats one of a smartphones greatest powers, why would this suddenly start happening now ( started about a week before the ota update) and continues even when i factory reset.
kinkade said:
ok so based on that log i have switched of the use wireless networks to find my location (not gps i hardly ever use that anyway) and now the running % is dropping fast.
i will keep you posted as to whether it keeps coming down or not.
it is going to be an enormous bummer if i cant use wireless location, thats one of a smartphones greatest powers, why would this suddenly start happening now ( started about a week before the ota update) and continues even when i factory reset.
Click to expand...
Click to collapse
I suppose it's not the feature itself guilty but the applications using it. I had the same issue with battery running out because of Location service wake locks. It turned out one of the Locale app plugins was abusing this service. Having it uninstalled battery run became normal.
djet said:
I suppose it's not the feature itself guilty but the applications using it. I had the same issue with battery running out because of Location service wake locks. It turned out one of the Locale app plugins was abusing this service. Having it uninstalled battery run became normal.
Click to expand...
Click to collapse
Yes i know what you mean, how did you go about diagnosing that? also i have done several factory resets and it still happens
Re: Android system - partial wake lock
There are a many app settings that drain battery and the stock setup is nothing I am fond of. Location/locale was one of them for me, calendar, network time and widget/app syncs being the others. A non-stock app causing such problems was NetCounter.
Calendar was fixed by killing it and restarting it. It's a known bug for many.
If many widgets are running sync very often, then you can imagine battery draining fast.
-------------------------------------
- Sent via my HTC Desire -
th3 said:
There are a many app settings that drain battery and the stock setup is nothing I am fond of. Location/locale was one of them for me, calendar, network time and widget/app syncs being the others. A non-stock app causing such problems was NetCounter.
Calendar was fixed by killing it and restarting it. It's a known bug for many.
If many widgets are running sync very often, then you can imagine battery draining fast.
-------------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
th3 you are legend, it was network time, i switched that off and all is now well in the world. cheers dude
Good find. I had the thing off anyway, but it is good to know.

[Q] Battery Drain in Airplane Mode, and even otherwise - Andromadus Mimicry

Hey all,
I have a rooted Desire Z, that's almost 2 years old. I had been using the Virtuous Sense ROM for the most part and had been quite happy with it. Recently, I figured it was time I switched to ICS. So I flashed the Andromadus Mimicry ROM and have been loving it ever since. My only gripe with it is the battery life. I have been meaning to test it out extensively before I could bother the DEV with my nooby queries, but haven't had the time to do so.
When I check Settings > Battery, the screen always seems to be using up most of the %. I have searched through the forums and have done the following, in addition to a few steps that I could think on my own -
Re-calibrated Battery Stats
Clear cache & devklik cache fortnightly
Brightness - Set to 20% (No Auto)
Set to dim after 30 seconds
No render effects (ROM specific I think)
Animations are On.
No Bloatware Installed (Facebook, Twitter, Chrome, etc)
Sync is Auto (I need this)
Froze Google Maps and few other unnecessary background apps that I rarely use with Titanium (using Watchdog to monitor what was eating up CPU)
Disabled Google Backup
Wifi is always Off (I have to depend on 3G for my connectivity needs)
No Battery Saving Apps or Auto Kill Task Managers installed.
News & Facebook widgets set to manual update.
V6 SuperCharger with stock Services.jar.
CPU clock runs @ 245 Mhz on idle, which is most of the time.
GPS is always Off
Google's Location Service (Wifi & mobile network) is On.
Coming to the point, last night the phone was fully charged to 100%. I decided to turn Airplane mode On before I went to sleep to figure the drain in the absence of networks. Woke up to find 78%. That's 2.2% per hour. I checked Better Battery Stats and it seems the phone was awake for the whole ~10 hours. The culprit seems to be GPSLocationProvider. Note that the GPS is Off ; so this has to be the Google's Location Service (Wifi & mobile network)? Disabling this would be inconvenient because it's needed for Weather, and a few other things.
I'm attaching the screens, because I'm pretty new to this and would like to see what people who know more than me have to say about this. A drain of 22% in Airplane mode isn't normal and is crazy, right? Or perhaps,it's time to get a new battery?
PS: The battery has drained a further 20% since the time I took the screenshots, while I was typing this. I merely used the phone for a few messages and to check my mail. (see second-to-last vs last screen)
Radio - 12.56.60.25_26.10.04.03. Signal Strength is usually ~ -89dBm. I have noticed people claiming that the .19 radio is quite battery-friendly but I live in India, so I had to go with the WWE radio that seemed the latest. I didn't think it'd work here. Perhaps I'm wrong?
Any insights offered would be greatly appreciated.
It's an app calling the location services api. Try disabling Facebook and/or whatsapp and see if that helps. I'm unfamiliar with either of those apps, but I've heard nothing but bad things about the Facebook app, so that would be the first one I'd remove to see if it helps.
This goes without saying but of course make sure you've done a full wipe of /data since coming from your old rom. Hope that helps. I'm currently sitting at 12 days since my vision has been unplugged in airplane mode (radio off, wifi off, etc).
Sent from my SAMSUNG-SGH-I747 using xda premium
GPSLocationProvider - Reboot to Fix.
Thanks for your input, blk_jack. I did do a full wipe before migrating. As suggested in your ROM's OP, I don't use the Facebook app. The Facebook entry seen in the screenshot belongs to the Facebook Messenger app, which might partly be the cause. Upon further searching, I found that many people have been complaining about this issue on many different flavors of ROMs (ICS / JB) and hardware (HTC, Samsung, LG). Let me elaborate.
Searching for 'GPSLocationProvider' brings a ton of threads about this issue. I will post here whatever I could gather from these posts, for the benefit of others who face this.
Some people get this wakelock if they use GPS for anything and then turn it off. For example, if you turn on GPS, use a map application for a short while, close the map application and turn off GPS, the wakelock is born. Even if you kill any active map services, it will still be there and ends up draining your battery.
It seems to be chiefly caused by apps that use Location such as Google Maps, Facebook, Facebook Messenger, etc. Turning off all location services is advisable.
In some cases, the GPS does not turn back on until the phone is rebooted but that is not the case in this ROM. GPS works when turned On.
To get rid of the wakelock caused by GPSLocationProvider, rebooting seems to be the only working option as of now.
There is a step-by-step instruction guide (written by Karpfenhai) in the [APP]BetterBatteryStats thread OP, that deals with configuring autostarts, which apparently fixes this issue. I'm yet to try it, so I can't comment if it works or not.
I wish I'd been smarter and searched for 'GPSLocationProvider' instead, before creating this thread. Thanks for your time, anyway.
Screen Off Widget/Shortcut on Desktop?
@blk_jack
If I may use this opportunity to ask you something else related to your ROM.. I just found out that I don't have 10 posts yet, so I can't post it in the ROM thread.
Is it possible to create a widget/shortcut on the desktop to turn off the screen, perhaps by using the Launcher Activity options? I am currently using the one that's there in the Notification Drawer (Power Widget), pulling it down each time to turn the screen off is a tad inconvenient. The desktop Power Widget doesn't seem to have the Screen Off option. Is this possible at all without having to use an external app?
Yep, I have a nova launcher gesture set to run the root app killscreen.apk (search google).
You could add that app to your home screen too.
Sent from my SAMSUNG-SGH-I747 using xda premium

PLEASE help me troubleshoot my ridiculous battery drain!

Before I begin, let me state that I have already factory reset countless times and reflashed my firmware at least 3 times in the past week. Neither of these have helped me at all, so PLEASE do not suggest this. I've been trying to solve this problem for a week or two and everyone has suggested this to me and of course I've already done it, so it hasn't helped me at all.
PHONE: E980
FIRMWARE: Stock 4.4.2 E98020g
BASEBAND: APQ8064/MDM9x15M
SYMPTOMS:
-Battery draining ridiculously fast (appx 10%/hr, but before my last reflash, it was draining 50%/2hrs!)
-Phone only lasts about 5hours.
-Android OS is consuming about 80-90% of battery, followed by Screen at around 10%
-Phone is constantly warm
-Phone rarely enters Deep Sleep (it stays awake 95% of the time).
TESTS DONE:
-As I said, I factory reset numerous times with the same exact problem
-I reflashed my firmware 3x, with same problems
-I usually keep auto-sync on, but the issue occurs whether it is on or not.
-There is supposably a Kitkat 4.4.2 (in general) issue where the camera will consume a ton of CPU resources and get stuck that way. I haven't used my camera much, but do use Smart Stay, so I disabled this. No positive result.
-Disabled the Google Now "OK Google" hotword detection. This helped reduce the drain, but didn't solve it. Drain went from like 15%/hr to 10%/hr.
-Took battery out of phone for 10 minutes and placed back in. Seemed to help at first, but after about an hour or so, it returned.
-"Recalibrated" the battery numerous times. This was done by draining the battery until the phone shut itself off. Then I charged the phone to 100% while the phone was still off. Once the phone read as having 100% charge, I let it charge for another 1 hour. Then I unplugged the phone and booted it up. Again, this appeared to help at first, but after a while, the phone began to drain rapidly again.
NARROWING THE ROOT PROBLEM:
-Both WakeLock Detector and BetterBatteryStats show "wlan_wake" and "wlan_wd_wake" as being the largest wakelocks.
-As previously mentioned, "Android OS" is consuming a huge amount of battery
-Problem only seems to happen when wifi is on, whether it is connected to an SSID or not.
OTHER:
I have narrowed the issue down to wifi but I can't seem to figure it out any more than this.
Both of the "wlan_" wakelocks are caused by wifi being on and I need wifi on whenever possible because I can't afford a huge data plan. My current one is 2GB/mo and it is shared between 3 people.
I noticed today that my phone drained 10% within 1 hour after taking the phone off the charger, and I was connected to my home wifi. I then went to work, but still had wifi turned on on my phone. At work, I was only connected to mobile data (but the phone was just sitting in my pocket). The battery drained another 15% within an 1hr 30min, and the phone was warm in my pocket (very uncomfortable!). I then turned wifi off completely, and the battery drain completely disappeared!!! The battery life was amazing in fact!
PICTURES:
I've provided some screenshots with notes. Please take a look at them.
I'm going to manually make the problem happen again and will upload new pictures afterwards. They will be of WLD and BBS. Any current info I have is tainted since I turned wifi off and the problem temporarily turned off too. I want to get only screenshots of what is going on when the problem is happening.
EDIT: BTW, the problem occurs whether my mods are installed or not (the mods used to remove the icons in statusbar, AdAway, etc)..
The issue seems to be pureply related to wifi and nothing else.
IDEAS:
Could adding a wifi supplement scan interval to the build.prop solve this problem?
Is Wifi bugged in this firmware? (This never happened on Jelly Bean!!!!)
Is maybe the "Battery Saving for Wifi" feature bugged?
Would maybe flashing the Jelly bean modem (e98010p) solve this issue (since it didn't happen on Jelly Bean)? If so, does anyone have a flashable version of this? <- I just did some research and it seems that the baseband (AKA modem) is the same in Kitkat as it was in Jelly Bean. Weird....
These pictures were taken shortly after making my first post. I already had wifi turned off, so I turned it back on and after a few minutes, the battery began to plummet. I went from roughly 77% to 66% in just an hour!!!!
Just to make sure that it is clear, I have both BBS and WLD set to start recording data after the phone has been unplugged from the charger. So to restart the data collection, I simply plugged the phone into my charger for a few seconds and then removed it. THEN I turned wifi on. The data seen in the pictures should only have occurred between the time when I unplugged the phone and the time I took the pictures.
EDIT: Also just to make sure it's clear: All the data shown in the System picture is actually since I unplugged the phone this morning. I only posted these pictures to show any changes from the similar ones posted earlier.
PLEASE! Can anyone help me solve this!?
Or is this a major Kitkat bug!? (or ATT bug, or modem bug, etc etc).
After a full week of this problem, I think I just made another breakthrough. Unfortunately, I think it IS one of my Xposed modules, which is weird because I didn't think any of them would have a need to constantly connect to the internet.
All I know is that I just completely uninstalled the Xposed Framework and the phone started to sleep like a baby... with wifi on!
Now I just need to pinpoint the module, which I can do myself.
MODS CAN CLOSE THIS THREAD.
Sorry I created it and (mostly) solved my own problem. This happens to me a lot. I have a problem, can't figure it out, ask for help, then solve it myself. :/
spexwood said:
MODS CAN CLOSE THIS THREAD.
Sorry I created it and (mostly) solved my own problem. This happens to me a lot. I have a problem, can't figure it out, ask for help, then solve it myself. :/
Click to expand...
Click to collapse
Please do not be sorry for this thread :good:
Someone else may have a similar issue so we will just leave it as it is
Glad your issue is fixed
Toledo_JAB said:
Please do not be sorry for this thread :good:
Someone else may have a similar issue so we will just leave it as it is
Glad your issue is fixed
Click to expand...
Click to collapse
In this case, I need to be more specific about my solution then.
The problem seems to be caused by the module, Xposed Torch. It's still usable, but you need to tap the overflow (3-dot) icon and disable ads (it's free to do this). The module requires internet access permissions, which I was not aware of, and it constantly connects to the internet to stream the ads. This in turn causes the wifi to constantly receive data (thus the wlan_wd_wake and wlan_wake). When wifi is on, but not connected to a network, I think it forces wifi to constantly scan in order to find a connection so that it can get that ad data. I'm not sure why it doesn't just use mobile data though... unless it does and it's just more power efficient.
So far, I have disabled the ads via module settings and the phone is now sleeping like it should.
So if anyone else is having wlan_wake wakelocks of any kind, especially followed by wlan_wd_wake or wlan_rx_wake, then this means that something on your phone is constantly accessing the internet via wifi. FIrst turn off auto-sync, and if this doesn't help, then you need to uninstall apps until the problem ceases.
My phone is currently icy cold in my hand and I've never been so happy to feel it like this!
Problem came back today. I've basically uninstalled every app now and the battery is still draining whenever wifi is turned on.
Under Better Battery Stats, there is a process (?) called dhc_dpc that's been running the entire time my phone has had wifi on. There are also the wlan_wakes too. (NOTE: IIm backing up my phone right now, so these names are coming from memory).
According to this thread (different phone and unknown Android version, but similar problem), the wifi driver may be bugged. They recommend doing a reinstall, but I've done this many times now and it doesn't seem to help:
http://forum.xda-developers.com/galaxy-s2/help/dhddpc-t1246190
EDIT: I think I've found the culprit and while it is definitely wifi-related, it's NOT an app. It's the actual Android system constantly pinging the internet. According to my research, it's constantly collecting location data by using either mobile data or wifi and will do this whether you have location services (gps) or Location Reporting enabled. This has been described as a "bug." It was introduced by Google as a cool new feature, but it's implementation was buggy.
I am currently testing a fix to resolve this issue, but want to be certain that it's fully working first.
Just an an FYI, this fix SHOULD help anyone running Android 4.4.2 and experiencing high battery drain caused by Android OS. Even better, the fix does not require root, so anyone can do it!
have you try a full factory reset using lg driver to bring full stock rom back and not just a factory wipe from the phone
3617 said:
have you try a full factory reset using lg driver to bring full stock rom back and not just a factory wipe from the phone
Click to expand...
Click to collapse
Not to be rude, but the first sentence of my first post says I did this several times.
I had those ridiculous battery drains on both stock ROMs with xposed, but never found a direct connection with it.. So first, (if you already haven't), try to disable xposed completely and try again. LG's stock ROM doesn't like that kind of modifications. Also, one of the biggest problems I had with Kit Kat was Location services, so you should check them too.
If that doesn't help, check your apps and download stats, maybe there is something downloading or trying to download stuff.
zamajalo said:
I had those ridiculous battery drains on both stock ROMs with xposed, but never found a direct connection with it.. So first, (if you already haven't), try to disable xposed completely and try again. LG's stock ROM doesn't like that kind of modifications. Also, one of the biggest problems I had with Kit Kat was Location services, so you should check them too.
If that doesn't help, check your apps and download stats, maybe there is something downloading or trying to download stuff.
Click to expand...
Click to collapse
It's definitely Xposed related I think.
I've disabled Xposed during some testing a day or two ago and yeah, battery definitely improved.
The only modules I have installed are:
App Settings
Enable BatteryStats Permission (just to allow me to track this issue. I installed this after problems had already begun)
Greenify (all Xposed settings checked)
YouTube AdAway
I have also been using G2 TweaksBox up until last night. I only used it to declutter my status bar and to enable the advanced reboot menu. (I hate all the icons in the status bar!!!). Last night I disabled G2 TB and battery life improved dramatically!
I can't explain why G2 TB would cause battery drain, but I did notice it doing something odd yesterday. I have the lockscreen off sound enabled in the system settings, so I hear the sound whenever I lock the screen. Well, I turned my phone on yesterday for some reason when in my car. I then turned the screen off, heard the lock sound, and started driving. 15 minutes (NOT seconds!) into my drive, I randomly heard my phone make the locking sound, but the screen was not turned on!! I wonder if G2 TB delays my lock somehow.
I switched to GravityBox[KK] today since so many people claim that it works perfectly on their OGP, and so far, battery drain is MUUUUUCH better than with G2 TB activated, but it still may not be as good as pure stock. I need more time to figure it out though. This morning, my battery dropped 5% in 40 minutes while connected to my home wifi. I then left my house for a few hours, but left wifi turned on on my phone (it's hard for me to remember to switch it off and on all the time!). The battery seemed to be pretty stable after that, but I can't explain the weird 5% drop, but I did receive 2 missed calls and a text during that time too. Should I lose 5% just from getting a text and having my phone ring?
It's now night time and I'm at 75% battery. This past week, I would be at about 10% by now or even DEAD, so I'm happy as heck right now.
I would LOVE to be able to keep using GB, but I now just need to figure out if it too is draining battery, or if everything is stable. I'm going to continue comparing stock VS GB tonight and tomorrow. I'll live with stock if needed, but I'm just very OCD about the statusbar clutter.
In GB, I only disabled some icons, centered the clock, enabled advanced reboot menu, and enabled the lockscreen torch.
Try with GB and post results, it looks like it doesn't drain that much... Unfortunately for me, I had problems with every xposed module ever tried, so I simply gave up and now I'm using another rom. I think that LG's ROM is problematic, especially if you use a lot of SystemUI customisations, like GravityBox does.
Are wakelocks from orginal post still active?
G2 Tweaks aren't even compatible with our phone (as much I understood), never managed to do anything with them. I assume that G2's SystemUI is too different from OGP's, so that may be one of the problem sources.
With my normal usage (1-2 hours of music, 2-3 hours of internet - wifi or mobile, K9 sync, viber, sometimes games, ~60 SMS and few longer calls per day), battery was holding up to 35, sometimes 45 hours. With xposed, barely a day, if I turn mobile data and sync off. I usually have a dilemma about putting it to a charger before sleep, there is alway around 60-50% of battery at the end of the day.
zamajalo said:
Try with GB and post results, it looks like it doesn't drain that much... Unfortunately for me, I had problems with every xposed module ever tried, so I simply gave up and now I'm using another rom. I think that LG's ROM is problematic, especially if you use a lot of SystemUI customisations, like GravityBox does.
Are wakelocks from orginal post still active?
G2 Tweaks aren't even compatible with our phone (as much I understood), never managed to do anything with them. I assume that G2's SystemUI is too different from OGP's, so that may be one of the problem sources.
With my normal usage (1-2 hours of music, 2-3 hours of internet - wifi or mobile, K9 sync, viber, sometimes games, ~60 SMS and few longer calls per day), battery was holding up to 35, sometimes 45 hours. With xposed, barely a day, if I turn mobile data and sync off. I usually have a dilemma about putting it to a charger before sleep, there is alway around 60-50% of battery at the end of the day.
Click to expand...
Click to collapse
OK, so I just got home from work and today I not only had GravityBox disabled, but I also had the ENTIRE Xposed Framework uninstalled.
My battery is now at 30% and I was only gone for 7 hours!!!!!!!!!!!!!!!!!! This is ridiculous!!!!!!!!!
*sigh* <- frustrated with this whole situation
Yes, the wakelocks are still active.
The top two Kernel Wakelocks are "wlan_wd_wake" (46.3%) and "wlan_wake" (46.2%) in that order. The next in line is "PowerManagerService.Wakelocks" (8.0%) and then "msm_hsic_host" (6.1%). This was since my last reboot, which was about 2 hours ago (I had to rebooted after removing an app that I thought was the culprit... apparently it wasn't).
Again, I keep Auto Sync on, but disablign it seems to not help in this matter at all.
I also keep wifi on. When at work, it isn't connected to a network, but I often forget to disable wifi when I leave the house, or I come home and forget to enable it and end up sucking my data plan dry. Nonetheless, I also did this while on Jelly Bean and had no issues whatsoever.
My phone is only staying in deep sleep less than 10% of the time and the time when it is awake, the CPU is running at full 1.7GHz! This is causing the phone to get warm in my pocket. It doesn't hurt, but it's enough to make things uncomfortable.
According to the battery stats (in system settings), Android OS is consuming 83% of the battery.
The biggest network drainers are "Google Play Services" (33.3%), something simply called "0" (14.8%), and a weather app. I had the weather app open manually not too long ago though, so that explains that one, but the other two I can't. I have no clue what "0" is and I have not opened Play at all today.
It's something to do with wifi itself I think, and maybe not a specific app accessing wifi. (?)
I turned wifi completely off about an hour ago and the battery drain has been stable. It's been like this for days too. If I turn off wifi, the drain is "normal." If wifi is on and connected, drain is higher than with wifi off, but barely. If wifi is on and not connected, the battery level plummets like a rock in a pond.
OH! One thing I just thought about and should mention:
Before I discovered that G2 TweaksBox was causing serious drain, I was on another battery-related thread in the OGP forum. Someone told me to delete the "libiq_client.so" file from System/lib. He assured me this would give me excellent battery life (which apparently it did not). So I did. Normally, I just rename system files so I can restore them if needed, but I guess I accidentally deleted this one.
Could this be causing the drain, and if so, can someone upload a copy of libiq_client.so so I can try it on my phone (after setting it's permissions correctly)?
Um, that's not good.
Check wireless settings, and disable "Scanning always available" if enabled.
You don't have a nand backup, do you? I have E988 variant so maybe my file isn't good, I don't know if there are big differences between them. I can upload it if you want.
It is possible that Google Services are messing things up since they are between top processes... have you tried clearing their cache/data? Also, if you have a custom recovery, clear cache/dalvik cache, maybe it helps. Also, if High precision location is enabled, try disabling it if you don't need that service, I had some problems with that in combination with weather widgets.
What partial wakelocks are active?
zamajalo said:
Um, that's not good.
Check wireless settings, and disable "Scanning always available" if enabled.
You don't have a nand backup, do you? I have E988 variant so maybe my file isn't good, I don't know if there are big differences between them. I can upload it if you want.
It is possible that Google Services are messing things up since they are between top processes... have you tried clearing their cache/data? Also, if you have a custom recovery, clear cache/dalvik cache, maybe it helps. Also, if High precision location is enabled, try disabling it if you don't need that service, I had some problems with that in combination with weather widgets.
What partial wakelocks are active?
Click to expand...
Click to collapse
"Scanning always available" has been disabled since day 1
The only nand backup I have is after I already deleted the file :/
I did try clearing Google Service's cahce/data at one point and I think it helped for a few hours. It may have been a placebo effect though. I also di the recovery cache wipe and dalvik wipe with same results.
I don't keep location on at all since I don't use it. It's always off, but at one point, I did enable it to select the battery mode and then turned it off again. I did this mainly so that if and when I do use location, it would always use Battery and not High Precision.
I'm currently backing up my rom, so all partial wakelocks were cleared for now. Sorry.
I'm trying to reflash the stock rom real quick and grab the libiq_client.so file, then restore the backup and insert the file back into system. Unfortunately, I may not be able to tell if it solves the problem until sometime tomorrow.
EDIT: BTW, the only reason why I won't just start all over again on the reflash is because 1) I want to figure out what's causing this problem so it won't happen again, and 2) I don't have the time to spend hours setting my phone up again
EDIT2: Oh and every time I reflashed my ROM, the first things I did was rename/delete that library file and installed G2 Tweaksbox. And every time I had horible battery drain, so i'm really hoping it's due to the lack of this library file.
spexwood said:
"Scanning always available" has been disabled since day 1
I'm trying to reflash the stock rom real quick and grab the libiq_client.so file, then restore the backup and insert the file back into system. Unfortunately, I may not be able to tell if it solves the problem until sometime tomorrow.
EDIT: BTW, the only reason why I won't just start all over again on the reflash is because 1) I want to figure out what's causing this problem so it won't happen again, and 2) I don't have the time to spend hours setting my phone up again
EDIT2: Oh and every time I reflashed my ROM, the first things I did was rename/delete that library file and installed G2 Tweaksbox. And every time I had horible battery drain, so i'm really hoping it's due to the lack of this library file.
Click to expand...
Click to collapse
Try it. I can upload file from my backup if you're willing to experiment with that, to save you from all that flashing.
Also, if you edited your build.prop and changed pm.sleep_mode and ro.ril.disable.power.collapse, undo that. It only disabled deep sleep state for me (had similar problems few days ago when flashed a new rom, mmc1_detect, suspend_backoff and some other weird things, so I even tried that)
Have you tried using another roms?
zamajalo said:
Try it. I can upload file from my backup if you're willing to experiment with that, to save you from all that flashing.
Also, if you edited your build.prop and changed pm.sleep_mode and ro.ril.disable.power.collapse, undo that. It only disabled deep sleep state for me (had similar problems few days ago when flashed a new rom, mmc1_detect, suspend_backoff and some other weird things, so I even tried that)
Have you tried using another roms?
Click to expand...
Click to collapse
It's OK, I'll get the file from the flashing. I know it'll be a pain, but this may be safer just in case there is some sort of difference between the E988 and E980 versions. I doubt there would be, but better safe than sorry I guess.
I did add those settings to my build.prop as a test, but I was smart there and backed up my stock build.prop first and ended up restoring it a few hours later. It was causing my screen to not always turn on when I pressed the power button.
I have not tried any other ROMs. I prefer to stick to stock ROMs (or modified versions of stock... basically anything stock-based and not CyanogenMod or AOSP). I had bad experiences with AOSP-based ROMs on my old phone.
If I tried a stock-based ROM though, it must have everything working though. I mean everything: calls, texts, LTE, bluetooth, speaker phone, etc etc.
EDIT: OH MY GOSH!!!!!!
I just found where the libiq_client file went. I moved it to my internal storage.
Well, good to know I wasn't totally stupid and knew not to completely delete the file! Unfortunately I was still dumb enough to misplace it....
spexwood said:
EDIT: OH MY GOSH!!!!!!
I just found where the libiq_client file went. I moved it to my internal storage.
Well, good to know I wasn't totally stupid and knew not to completely delete the file! Unfortunately I was still dumb enough to misplace it....
Click to expand...
Click to collapse
Better to misplace than to delete it, trust me
Post results.
zamajalo said:
Better to misplace than to delete it, trust me
Post results.
Click to expand...
Click to collapse
I can see that as being true LOL
I'll need some time to test this, but I'll definitely post results ASAP.
spexwood said:
I can see that as being true LOL
I'll need some time to test this, but I'll definitely post results ASAP.
Click to expand...
Click to collapse
Libiq.so enables carrier IQ, its removal should only help battery drain, not cause it.
Just to ask, have you tried adjuating wifi scan interval? You can try as well the xposed module, "wifi deep sleep". Helped minimize my wifi related drain

Battery drain

Hello.
I've bought a G4 in March and only 20 days ago I've started to notice a odd and big battery drain. Android tells me it's "Android SO" consumption. What once drained like up to 5%, now drains more than screen. 20 days ago, battery lasted like 34h. With same usage now, turned 12h.
I've uninstalled the apps I've installed meanwhile, used it in battery eco mode and even on airplane mode, without any luck.
4-5 days ago I've installed Wake Lock Detector (no root, but with the right permissions) and Better Battery Stats. From what I understand from the reports, they don't blame any specific app but show thousands of wakelocks on Android SO. I believe sometimes it can be normal (for instance, when I run with GPS and music). Anyway, maybe the issue lies here.
What I find really odd is that those 2 apps say that the phone is awake more than 90% of the time. Like 1h of deep sleep only per full battery.
I could understand if someone says that it's the battery that had a great use already, but not only has 7 months of use, but also the phone behaviour changed (Android SO was never so high before, at least constantly).
Thanks in advance for any advice!
JoaoAfonso said:
Hello.
I've bought a G4 in March and only 20 days ago I've started to notice a odd and big battery drain. Android tells me it's "Android SO" consumption. What once drained like up to 5%, now drains more than screen. 20 days ago, battery lasted like 34h. With same usage now, turned 12h.
I've uninstalled the apps I've installed meanwhile, used it in battery eco mode and even on airplane mode, without any luck.
4-5 days ago I've installed Wake Lock Detector (no root, but with the right permissions) and Better Battery Stats. From what I understand from the reports, they don't blame any specific app but show thousands of wakelocks on Android SO. I believe sometimes it can be normal (for instance, when I run with GPS and music). Anyway, maybe the issue lies here.
What I find really odd is that those 2 apps say that the phone is awake more than 90% of the time. Like 1h of deep sleep only per full battery.
I could understand if someone says that it's the battery that had a great use already, but not only has 7 months of use, but also the phone behaviour changed (Android SO was never so high before, at least constantly).
Thanks in advance for any advice!
Click to expand...
Click to collapse
Suggest you check out and install the apps recommended apps on ✭[GUIDE][26-07-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭ at https://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Read the OP thoroughly for each app discussed. The wakelock situation can be helped a good deal with Amplify and Greenify in particular - the paid versions - but I would also install AppOppsXposed - all require Xposed which requires root in order to be installed and I would also check out Power Nap to see if any incremental improvement.
You may a also want to run a malware scan ...
Thanks for the info. I checked it earlier, but most of those apps only run in root phones. I'm waiting for official Nougat in G4, mostly because haven't saw yet a Nougat image for this device without any problems, like camera not working, or such. I wouldn't mind to pay for apps that could work on this, but I want to avoid rooting. I guess I rather put Android 7, that has a bigger chance to even solve this problem, than root at this time.
Haven't said earlier but did a factory reset yesterday and device kept the behavior... I believe a hard reset would reduce almost to 0 the eventual malware problem.
No obvious alternatives for not rooted phones? Haven't this happened to someone else and been solved?
Thanks!
I had the same problem a few weeks ago...i was loosing ~30% of the battery at night with no wifi/data/gps etc. I tried everything...factory resets, different roms, greenfy & those kind of apps but the phone would not sleep. The last thing i tried was a factory reset and after i logged into my gmail account i set the phone as a new device...so no restoring apps and backups from my gmail account. Now everything is ok, my phone sleeps like a baby. I've read somewhere that it might be related with the syncing & backups....i don't really know, but you can give it a try.
uzadragos said:
I had the same problem a few weeks ago...i was loosing ~30% of the battery at night with no wifi/data/gps etc. I tried everything...factory resets, different roms, greenfy & those kind of apps but the phone would not sleep. The last thing i tried was a factory reset and after i logged into my gmail account i set the phone as a new device...so no restoring apps and backups from my gmail account. Now everything is ok, my phone sleeps like a baby. I've read somewhere that it might be related with the syncing & backups....i don't really know, but you can give it a try.
Click to expand...
Click to collapse
Haven't tried that yet. I'll try to remove and add the device again, to avoid the pain of a new hard reset.
To have a reference, it was good to know an average percentage of other G4 deep sleep. If everyone has around 90%... maybe it's not a problem at all. The "sleep like a baby" is which percentage? Also, there are plenty babies that wake up hourly crying for a period of time...
Thanks for the tip!
JoaoAfonso said:
Haven't tried that yet. I'll try to remove and add the device again, to avoid the pain of a new hard reset.
To have a reference, it was good to know an average percentage of other G4 deep sleep. If everyone has around 90%... maybe it's not a problem at all. The "sleep like a baby" is which percentage? Also, there are plenty babies that wake up hourly crying for a period of time...
Thanks for the tip!
Click to expand...
Click to collapse
My phone was awake >90% of the time(when screen was off), even in flight mode, when it had "the problem". Now things are back to normal...~2% awake when the screen is off.
Hello again.
Tried to reset a couple more times, tried to remove old phone register in my gmail account, but I wasnt successful.
How you did the
"The last thing i tried was a factory reset and after i logged into my gmail account i set the phone as a new device..."
?
Once it asks for my account, I'm not able to set it's a new device. I also did no restores... Is there a way to disconnect devices from Google account? I was only able to do so in devices I connected like one month, or more, ago, but not able to do so in the device I'm using at the moment.
One thing I did not try but that would confirm your thesis is to register device with a new account.
Anyone with an alternative?
I'm hoping LG really releases Nougat for G4 in 2017...
Today, the device returned to normality without any intervention. I can only imagine the following: since last factory reset I've disabled some apps I didn't used, like Google books, or Google music, but only yesterday I did a normal reboot (due to huge battery drain...). Eventually, some updates just took place after this reset. Anyway, even having imagined this theory, I don't believe in it. Wizardry, I bet.

My phone overheats at night

In these last 3 days I have woken up and I have seen that my phone is very hot to the touch and I have 90% or less battery
The first day I said "mmm, weird, it doesn't matter", on the second day I said "ok this seems very strange to me, if tomorrow I see what to do", but this day I got tired, I went to see the temperatures in the DevCheck app first, I'll leave you a screenshot of what I saw, so, I noticed what was running, I'll leave you with another screenshot of what I saw, and it seemed strange to me since there was nothing out of the ordinary, those apps are always there, finally I looked at the battery usage (mostly because it had 85% battery) and I'll leave you another and last screenshot of what I saw, there is nothing out of the ordinary, seeing this, I don't know what to do, the location services are off, any help?
ROM: LineageOS 17
Kernel: LineageOS default
Postdata: I haven't installed any app for about a week
Overheating is an very individual problem. I had it because I installed very many apps and a 30MB hosts file (if you don't know what a hosts file is ignore that). It could be also caused by mod incompatiblities. Your best bet is to reset your phone to factory settings and only install things you need. There is another possibility though: Your hardware is just broken.
FranGAMER321 said:
In these last 3 days I have woken up and I have seen that my phone is very hot to the touch and I have 90% or less battery
The first day I said "mmm, weird, it doesn't matter", on the second day I said "ok this seems very strange to me, if tomorrow I see what to do", but this day I got tired, I went to see the temperatures in the DevCheck app first, I'll leave you a screenshot of what I saw, so, I noticed what was running, I'll leave you with another screenshot of what I saw, and it seemed strange to me since there was nothing out of the ordinary, those apps are always there, finally I looked at the battery usage (mostly because it had 85% battery) and I'll leave you another and last screenshot of what I saw, there is nothing out of the ordinary, seeing this, I don't know what to do, the location services are off, any help?
ROM: LineageOS 17
Kernel: LineageOS default
Postdata: I haven't installed any app for about a week
Click to expand...
Click to collapse
Try booting in safe mode and see if the device get heated, if app is causing the problem see the recent updated app.
Safe boot= press power button for 3second then hold restart options. It will promote you for safe boot.

Categories

Resources