LineageOS: Battery drain with active Google location history - LineageOS Questions & Answers

Hello,
I have installed the latest version of LineageOS and Open GApps on my LG G3s. (jagnm)
But now I have a battery issue. In the battery statistics the first entry is IDLE, with round abound 20% in 24 hours.
After some testing and checking i found the problem. The processor is always in the 300 MHz mode and not in deep sleep mode, when the screen is off. (Checked with the app CPU Spy)
I think the source of the problem is the Google location history. When i disable this function, the processor uses the deep sleep mode when the screen is off.
Does anyone else have this problem, or does someone know how to fix this?

I have a somewhat similar issue with my Mi 4W (cancro), after flashing the recent Lineage OS build battery drains to 0% overnight, guess someone resolve this issue in the upcoming builds

from cm to lineage i look my stats are too bad :/ device jagnm and i say this. only 16-23hr 1 day. on old cm 2-3 day internet 3g network.
really too many options lose on new nugart but get fm working i try the cpu spy app and post the results
ok Thanks boy if google localitation services on = no deep Sleep on Jagnm device

Related

[Q] Why won't my phone goto sleep?

I think my phone is suffering from the Android OS keep awake bug. I just charged my phone to 100%, rebooted, opened and closed the camera app and left it alone for about an hour and a half. I am down to 92% batter life remaining. This seems excessive. The Android OS app shows a keep awake time of exactly 93 minutes which is also exactly the same as the up time.
I don't quite understand BetterBatteryStats just yet, but BetterBatteryStats shows "gps-lock" as 1h27m4s under Kernel Wakelocks since charged. Nothing else comes close. The highest Partial Wakelock is ActivityManager-Launch with 12s. Under Other Awake is 93 minutes and Screen on is 2 minutes. BetterBatteryStats is the first item under Process the surfaceflinger and com.android.phone.
Before rebooting I had set my GPS settings to (and they remained this way after reboot)
-Google's Location Service : Unchecked
-GPS satellites : Checked
-Location & Google search : Unchecked
Other stats:
-Verizon LTE
-bigxie IML74K Build 2
-franco.Kernel #12 (hotplug enabled, 350k low, 120k high)
-No widgets
-No other apps were opened
-Gmail is set to sync. I haven't run or configured Google+ (don't use it). Gmail/Calendar/Contacts should be the only things syncing, no facebook sync.
I had similar issues before flashing the kernel and rom.
How can I get this thing to go to sleep? I don't think this should be consuming so much battery life while idle.
you have a "bad app" that is preventing the phone from deep sleeping.
get cpu spy from the market to verify how long your phone is staying in each state
do you have any notifications in the notification bar?
No notifications were received in the last 90 minutes (forever alone yes). I just installed CPUSpy. This says 00:01:25 was spent in 1200Mhz, 01:39:52 in 350mhz and 0:00:0 in Deep Sleep.
How can I find what app is preventing deep sleep? The only apps listed in the battery app are Android OS, Screen, Phone Idle, Cell standby and Android System.
Wouldn't this bad app show up in BetterBatteryStats under Process?
lethologica said:
No notifications were received in the last 90 minutes (forever alone yes). I just installed CPUSpy. This says 00:01:25 was spent in 1200Mhz, 01:39:52 in 350mhz and 0:00:0 in Deep Sleep.
How can I find what app is preventing deep sleep? The only apps listed in the battery app are Android OS, Screen, Phone Idle, Cell standby and Android System.
Wouldn't this bad app show up in BetterBatteryStats under Process?
Click to expand...
Click to collapse
I don't use BetterBatteryStats so I wouldn't know.
I personally set my CPU speeds from 700-1200MHz (as indicated by Franco and others... setting it to ~300 is bad because it makes the phone use more power to catch up)
How many apps do you have? can you use AppBrain or something to provide me a list of what apps you use?
I just took a list at my CPU Spy...
0:09:51 1200Mhz
920 MHz... 0:01:35
700MHz: 0:09:49
Deep Sleep: 3:21:43
82%... 3h 50m 35s on battery
Android OS 28%
Screen 24%
Google Voice 14%
Phone idle 14%
Android system 7%
Cell standby 3%
Nova Launcher 3%
Wi-Fi 2%
Beautiful Widgets 2%
Market 2%
700-1200MHz. Conservative Governor. Hotplug off
I did try 700 with earlier versions (I think 8 & 9) and was also getting poor battery performance during idle. I wish there was an easier way to determine what app is preventing deep sleep, however it would almost certainly have to be a system app as I did not run any app when I started this test.
lethologica said:
I did try 700 with earlier versions (I think 8 & 9) and was also getting poor battery performance during idle. I wish there was an easier way to determine what app is preventing deep sleep, however it would almost certainly have to be a system app as I did not run any app when I started this test.
Click to expand...
Click to collapse
It doesn't have to be a system app. A app can be started as the moment as Android OS is started.
Not all apps are listed in that battery monitor. I can tell you that for sure. Definitely something is wrong with your phone setup.
The best way to debug it (in my opinion) would be to backup all of your apps and reflash the ROM from scratch. Flash bigxie's ROM (or try another ROM if you choose to) and Franco's Kernel.... install CPU Spy and leave the phone off for like 5-10 minutes. See if it deep sleeps.
Edit: Try this https://market.android.com/details?...251bGwsMSwxLDEsIm5leHRhcHAuc3lzdGVtcGFuZWwiXQ this should help you figure out what app it is.
Thanks for the tip. I am going to recharge and test again with all GPS settings disabled to rule the GPS out. Seeing the gps-lock as the top process in Kernel Waitlocks makes me wonder. I will give SystemPanelLite a try after this test.
lethologica said:
Thanks for the tip. I am going to recharge and test again with all GPS settings disabled to rule the GPS out. Seeing the gps-lock as the top process in Kernel Waitlocks makes me wonder. I will give SystemPanelLite a try after this test.
Click to expand...
Click to collapse
You did update to the latest Google Maps right? it contained fixes for the battery. Maps is a huge drain if it runs in the background. I always leave my GPS deactivated even though it's activated ondemand. I just don't trust it.
Ahh hah! It has only been 20 minutes, but the GPS is the culprit. I did the same charge, reboot, camera cycle. Then I walked away. Checked CPUSpy and sure enough there was 18 minutes of deep sleep time out of a 20 minutes up time. Google Maps is up to date by the way.
Now the funny thing is, the GPS isn't all that great even when it was keeping my phone awake. Last night I checked the GPS after I got out of the subway (public transit, not sandwiches), for a second it still thought I was in the location prior to taking the subway. It took close to ten seconds to get within 500 meters of my location, and after that it was unable to pinpoint my exact location. The phone has been able to pinpoint my exact location in the past though.
So now, how can I determine if this is a software bug or a hardware bug? If it is software then no big deal, I can hold out. If it is hardware then I need to revert to factory, unroot, etc.
lethologica said:
Ahh hah! It has only been 20 minutes, but the GPS is the culprit. I did the same charge, reboot, camera cycle. Then I walked away. Checked CPUSpy and sure enough there was 18 minutes of deep sleep time out of a 20 minutes up time. Google Maps is up to date by the way.
Now the funny thing is, the GPS isn't all that great even when it was keeping my phone awake. Last night I checked the GPS after I got out of the subway (public transit, not sandwiches), for a second it still thought I was in the location prior to taking the subway. It took close to ten seconds to get within 500 meters of my location, and after that it was unable to pinpoint my exact location. The phone has been able to pinpoint my exact location in the past though.
So now, how can I determine if this is a software bug or a hardware bug? If it is software then no big deal, I can hold out. If it is hardware then I need to revert to factory, unroot, etc.
Click to expand...
Click to collapse
It's probably software. Something is keeping the GPS on. Either by a app or ROM. Most likely app.
If you're not using gps with google location services, it will take a while to lock.
Also, you have an app that is requesting GPS constantly while the phone is sleeping.. That is all.
joshnichols189 said:
Also, you have an app that is requesting GPS constantly while the phone is sleeping.. That is all.
Click to expand...
Click to collapse
Any idea on how to figure out what that app is?
I'm not sure how to find an app that is constantly requesting GPS, but I know the app Watchdog will help find an app that is running in the background consuming processor cycles.. you might want to try that but I have no idea if it will work.
holy ****! thank you! I've been trying to figure out what was causing my phone to not deep sleep for a week! I uninstalled google maps and it worked! now I'd like to figure out how to have both deep sleep and google maps installed...
did you tuck your phone in?
I had that problem with a Rom and turning on and off the Bluetooth would fix the problem.
Sent from my GalaxyNexus using Tapatalk
imail724 said:
holy ****! thank you! I've been trying to figure out what was causing my phone to not deep sleep for a week! I uninstalled google maps and it worked! now I'd like to figure out how to have both deep sleep and google maps installed...
Click to expand...
Click to collapse
Try disabling GPS when you're not using it. Worked for me.
i tried to freeze the google maps, but still getting the GPS wakelock.
from the other thread, some one mentioned about facebook.
i freeze facebook in titanium backup. looks like the GPS time is not increasing.
are you guys having this issue installed facebook app?
the other thread:
http://forum.xda-developers.com/showthread.php?t=1419087&page=3

[Q]Android OS

Last night, around 2am, I unplugged my phone from the charger before i went to sleep (it had WiFi on) and now when I woke up and checked it at 1:30pm the next day, I had 35% battery left! WHAT!? checked battery stats and Android OS ate up 51%! with phone idle at 12%
anyone have any idea what's going on? I have everything except WiFi turned off, GPS, Location Services, Auto-Sync, Auto-Backup, everything. I also underclocked everything via cpu master and trickster mod. I greenified facebook, viber, skype and any other app that could potentially wake my phone from deep sleep.
I checked trickster mod, deep sleep was at around 5hrs with 162mhz at around 7hrs. don't have any screenies of those since I rebooted my device right after I plugged in the charger (helps with displaying correct percentage)
I've attached a screenshot. I've never seen that kind of downar plunge in my battery stats. ever. this is the first time it's ever happened.
I'll install wakelock detector and give it a few hours. I know my phone drains around 1%/hr while idle, maybe even less.
EDIT: I already started when I took the second screenshot. I forgot to take a screenshot of the rest of my battery stats. so don't mind the time and the difference in battery percentage.
that's kernel problem. I meet that problem before, while I'm using AK-kernel with Vanir ROM. Kernel make screen always on to increase respond for S2W and Double Tap to Wake, but also cause this problem. In Android 4.4.2 also have this issues ( Nexus 4 and Nexus 5 is an example, you can search Google for this ).
You can install Better Battery Stats to check wakelock issues, but you can't do nothing, unless you have to changed to another kernel
BIBUBO BCJ said:
that's kernel problem. I meet that problem before, while I'm using AK-kernel with Vanir ROM. Kernel make screen always on to increase respond for S2W and Double Tap to Wake, but also cause this problem. In Android 4.4.2 also have this issues ( Nexus 4 and Nexus 5 is an example, you can search Google for this ).
You can install Better Battery Stats to check wakelock issues, but you can't do nothing, unless you have to changed to another kernel
Click to expand...
Click to collapse
don't have S2W and knock on enabled on my kernel. I also tried those and their battery drain is nothing compared to this!
I've charged my device and now it's showing Google Search as the culprit. now looking for a solution.
vangeodee said:
don't have S2W and knock on enabled on my kernel. I also tried those and their battery drain is nothing compared to this!
I've charged my device and now it's showing Google Search as the culprit. now looking for a solution.
Click to expand...
Click to collapse
what's your kernel ?
BIBUBO BCJ said:
what's your kernel ?
Click to expand...
Click to collapse
Solid Kernel + Stock 4.1.2 with a few xposed modules. I've solved the problem. Had to completely turn off Google Now and blocked wakelocks from Google Play Services.
I'll give this 3 hours and see if it goes back to the 1%-1hr idle drain. Battery stats seems to have improved, I'll post my post-fix battery stats in around 5 hours just to check if the problem comes back.
aaaaaaaaaaand it's back. This time it's not Android OS but Google Play Services that's eating the battery up. I now get 2%/hr with this new problem.
I checked trickster mod and my phone is not entering deep sleep. checked wakelock detector and it showed GCMSEND as keeping the phone awake. (1h 52m out of 2h)
Anyone know a fix for this? I've currently filtered it in Wakelock Terminator and I'll see how it goes from there.
UPDATE:
22 mins in and phone is in Deep Sleep 84% of the time. filtered GCMSEND and added 2 lines to build.prop that supposedly improves deep sleep.
ro.ril.disable.power.collapse=1
pm.sleep_mode=1
Source: http://forum.xda-developers.com/showpost.php?p=46301722&postcount=2
Will leave it overnight to see if it stays this way.
yeah, noway to fix it because it was an issues of kernel.
If GCMSEND always running, you can downlod app called Disable Services, and Open it to disable some service in Google Play Store and another system app. Try it and will see if it's working.

LG Optimus G Pro CM12(5.0.2) AND BLISSPOP(5.1.1) Battery Drain (msm_hsic_host). Why?!

Hello All
I recently flashed the CM12 release of Lollipop on my rooted LG Optimus G Pro E980.
Everything works fine. However, the battery drain due to msm_hsic_host is confusing to say the least.
This is supposed to be mobile network related, and I have read forums where people say that this goes away when the mobile network is shut. However, for me, I am at home and only using WiFi. The mobile data is OFF.
I went to sleep for about 8 hours and I woke up to find msm_hsic_host had using about 80% and the phone was only in deep sleep for less than 1% of the time.
The phone NEVER goes into deep sleep. Deep sleep contribution is only about 1% ! Why is this happening?
Also, NOTE that the CPU Frequency stays at 384 MHz for 90% of the time! In the picture, it shows as 69% because it was taken a few minutes after a reboot. What does this mean?
Battery Kernel wakeock screenshot: http://postimg.org/image/k6s0gl5s7/
Battery System Monitor screenshot: http://postimg.org/image/tq1pa1taf/
I have already hibernated Facebook, Skype, and another networking app. I am just lost. Why is the msm_hsic_host wakelock ON about 80% of the time?
Have you tried to disable google location services by setting it to GPS only? Disabling all sync? Also, try another CM build, or BlissPop.
xermit said:
Have you tried to disable google location services by setting it to GPS only? Disabling all sync? Also, try another CM build, or BlissPop.
Click to expand...
Click to collapse
Hi, Location Services was off. I turned off Sync and after 4.5 hours, msm_hsic_host is still at 87%.
My mobile data is off.
How to solve this?
To future readers;
I went back to my STOCK ROM on LG Optimus G Pro (LG E980 - Android 4.4.2) just to test this and the most remarkable thing happened.
The phone is mostly on Deep Sleep and msm_hsic_host is in 1%.
Therefore, I can conclude that the battery drain is a serious issue in CM12 (Android 5.0.2) ROM. Could some developers please take a look at this issue?
Here is the proof
Kernel Wakelock: http://postimg.org/image/e954b9kt5/
System Monitor: http://postimg.org/image/cstlt4hw9/
I am about to try Blisspop ROM 5.1 for LG E980 next to see if this issue persists.
I installed Blisspop 3.6 now (Android 5.1.1) - However, following the exact same steps for installing BetterBatteryStats v 2.1 - it just wont't work.
It says, successfully installed as System App. Please reboot.
After reboot, the app says, "This is a companion app to BetterBatteryStats. It was copied to /system and stays there to grant permissions that can only be granted to system apps. This app has no functionality at all. You may need to reinstall BBS to get access to the app."
I even uninstalled and reinstalled using the recovery ZIP.
Has anyone tested BetterBatteryStats ob BLISSPOP 3.6? Please help.
Regards
Have you installed mad Mack's modem? Battery drain is a major issue for lp5.0.2, reason why Google releases 5.1.1 to fix the battery drain problem. However, 5.1.1 is may be only slightly improves the battery life. If you can get your service to deep sleep, then at least you can conserve some juice and keep it cool. Otherwise your phone is going to stay hot most of the time.
hawkwind212 said:
Have you installed mad Mack's modem? Battery drain is a major issue for lp5.0.2, reason why Google releases 5.1.1 to fix the battery drain problem. However, 5.1.1 is may be only slightly improves the battery life. If you can get your service to deep sleep, then at least you can conserve some juice and keep it cool. Otherwise your phone is going to stay hot most of the time.
Click to expand...
Click to collapse
I have installed 5.1.1 with BLISSPOP 3.6. However, still the phone only gets to deep sleep 2% of the time. In my stock ROM (4.4.2), the deep sleep was on 80% of the time. I don't know why this is happening. This is very bad.
Could you please point me to "mad Mack's modem"? Which one to flash? Where is the link? Should this be done after installing Lollipop?
Even worse now BetterBatteryStats apk does not install on 5.1.1 Blisspop.
Regards
Unresolved
To future readers;
I finally managed to install Better Battery Stats and unsurprisingly, msm_hsic_host still dominates. 70%.
System deep sleep is about 2% of the time.
Does anyone know how to fix this?
zetret said:
I have installed 5.1.1 with BLISSPOP 3.6. However, still the phone only gets to deep sleep 2% of the time. In my stock ROM (4.4.2), the deep sleep was on 80% of the time. I don't know why this is happening. This is very bad.
Could you please point me to "mad Mack's modem"? Which one to flash? Where is the link? Should this be done after installing Lollipop?
Even worse now BetterBatteryStats apk does not install on 5.1.1 Blisspop.
Regards
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2854320
Check out page 1, it has some interesting tips on how to make your device go into the deep sleep. The link to madmack's modem is also in there. But before you begin, is your device e980? That modern is only intended for e980. So if you have something else, don't flash it.
hawkwind212 said:
http://forum.xda-developers.com/showthread.php?t=2854320
Check out page 1, it has some interesting tips on how to make your device go into the deep sleep. The link to madmack's modem is also in there. But before you begin, is your device e980? That modern is only intended for e980. So if you have something else, don't flash it.
Click to expand...
Click to collapse
I've done everything there. The modem in that thread is for CM10.2 and CM11 and the whole post is from 2014. Do you think it's normal to expect that to be compatible with the latest Blisspop ROM?
It works with cm12.x as well, I have seen many other cm12.x people use it as proof. Read the blisspop thread if you need verification. Though I have been told that it's optional on cm12 if your device can get deep sleep without it. As for me, it made my phone got that deep sleep I needed when I was using bp3.6.

Battery Fast Drain

Hello,I am using Zenfone 2 16GB, 4GB ram . My battery life is bad every 3 minute %1 drain fastly ...
I can see screen time maximum 4 hour or maybe a little more for 4 hour.Screen Light %0 wifi is closed and everything is closed no working program no working bluetooth or nfc etc..I tried everthing for better battery life but ı cant solve this problem ı bought my phone one mounth ago and ı see everyday android is is using %45-50 battery.I never opened auto screen lighter or 4g or ntc. But drain,fastly every 3 minute %1 drain.my firmware is 2.20.40.58 and how can solve this problem can you help me please
To help improve battery life
1. Please ensure to turn off 'Wifi Scanning always available.'
2. Please also see the following information showing 8 ways to extend the ZenFone 2 battery Life. http://www.asus.com/us/support/FAQ/1012981/
3. If still no improvement then recommend performing a hardware reset including cache wipe partition and try steps 1 & 3 again. http://www.asus.com/us/support/FAQ/1011956/
Sincerely,
ASUS_USA
[email protected]
None of those ASUS official 8 ways do solve the root cause of the battery drain issue.
So far I find most interesting way that may really double your battery life is to activate the "Intel Deep Sleep Mode"
Please check at the link (sorry too new to post a link)
-quote Post on 2015/8/11 01:16 | View KLChi's posts -
Hi
I still dare to activate my Zenfone2 deep sleep mode following the process.
Guess what happened? I have no problem with my proximity sensor nor any issue with ZenMotion after 1 week tests.
And the battery saving effect of this deep sleep mode is working like a champ.
I have not yet calculated scientifically but the deep sleep mode at least *doubled* my battery life, which means before activating deep sleep mode I need to recharge every day of even 1/2 day. Now my Zenfone2 could work without charging for more than 1 day or even 2 days under normal use.
Now I have removed all apps related to battery saving like amplify, greenify, battery doctors, etc.
and I don't even need to close any app in startup management and the deep sleep still works and extend my battery life up to 2 days recharging cycle under my normal usage.
Although I find a side(not bad) effect so far is that the file transfer will be "deep slept" (i.e. backup progress stopped at the % where your screen turns off) and it seems the moving activity in the background is deactivated when screen off. But this is not a issue to me as I expect all apps and activities that out of my focus should not keep draining my battery. I can achieve this by stopping unkown/unecessary wakelocks through "xplosed + amplify" but I don't need them anymore as deep sleep mode seems does the same for me.
One thing really does matter to me is that will all notification still works? My test so far shows that by activating the deep sleep mode will not disable any wifi nor 4G signal nor any notification that the apps should normally give you alarms/warnings, especially wake up alarms.
I'd like to really really thank you for your advise.
I think this "intel deep sleep mode" is really a total soultion to the Zenfone 2 battery drain issue and worth a try, at least for me so far.
I don't know if this process also may apply to non-intel cpu android phones which also have the andorid os battery draining bugs.
--
can you tell me the steps to enable deep spleep mode?
I am a noob bro :angel: but the following tweaks will certainly help u.
I use auto start manager to manage almost all except a few apps like whatsapp and truecaller etc.
Disable wifi scanning and wifi network notification in wifi advanced settings. Our phone's brightness is too much even on the lowest setting so keep it around 25-30% for lower battery drain from display.
Watch out for wakelocks, read the battery graph. I prevented truecaller and playstore from waking up device.
Turn off gps when not using.
Disable asus built in bloatware and certain google apps that u don't use e.g. i dont use google plus, talkback, hangouts and even chrome since these run in background and drain battery.
Google app is also a big culprit. I personally don't use google app and disabling it will make a big difference.
Then use data usage in mobile manager for further tweaks. Avoid 4g/3g when idle.
Mine is a 2gb z00a and i get a decent backup of around 1.5 days with normal usage with calling whatsapp browsing. Intel processor is a battery vamp and this fact can't be changed.
And not to forget after every ota update perform a cache wipe to get rid of conflicting data from previous firmware.
And this intel deep sleep mode is new to me..will also try it.
<deleted>

Battery drain too fast screen off

Hi guys i have my pixel 3xl and my battery is drain too fast when i dont use it in night fo exemple a left him 100% after 6hours i found him 70%
I chek if thers is an app in background and nothing i Factory reset it 3 times and same thing
Let it drain down to about 10%, and then check the battery stats to see what is high on the list. I get less than 1% an hour, and have for the longest time. Running Android 11 since beta 3, and now official.
Hi! I got exactly the same thing with my Pixel 3 and got the same issue, it seems like our device cannot deep sleep. Here is my battery usage and wake lock on EXKM (Running latest Kirisakura, screenshot attached)
Also mine, last night it was 100% then this morning, when i checked it, its already at 95%. Also i noticed that my 3xl now is draining too fast, any tips on regarding this to save or extend my battery? Thanks guys
First week(nearly) after factory reset or flashing img your google play services should drain too much battery which is normal as settings are calibrated, usage patterns adjusted, small updates installed etc.
Most battery issues are related to some rogue app, bad signal reception(it does not need to be full bar, even selected frequency by carrier or phone) or confused google play services. If it is google play then root needed to find root cause(pun intended )
For my case a full day with 1h+ gaming and whatsapp, phone and other stuff 4hrs sot and generally less than %20 percent battery at evening to start charging. You should be happy if you are near this values.
Hi! Thanks for the insight, I'll try to wait until a week and going to post an update here! Just curious because I can't find any information about the kernel wake lock that constantly occurring on my new phone
Edit 1:
So after a few days of searching, I found out the one who cause the deep sleep issue was my modified settings for the Entropy (I modify it via EXKM), after I set it back to default the Deep Sleep issue completely gone and I can stay 0.2 ~ 0.3%/hr when the phone is Deep Sleeping
I hope my issue can help you, and try to reflash it via fastboot with the latest (Android 10 / Android 11) pixel image just to make sure that there is no corrupted data

Categories

Resources