Excessive Battery Drain in Airplane Mode - Android Q&A, Help & Troubleshooting

I opened this thread in the Infuse section and got very little feedback probably due to lack of activity.
My Infuse 4G is always on Airplane Mode with Wifi turned on. I use it as a secondary device and like an iPod Touch/Media Player. However, even if Airplane Mode is on, the number one drainer of battery is Cell Standby at like 40%. Also, the phone never enters deep sleep and Android OS constantly keeps the device awake. As a result, from a 100%, the phone is dead within 8 hours. There has got to be some sort of fix for this. I'm running the latest Beanstalk 4.4.285.
P.S. I have entered AppOpps and denied the permissions to wake up and stay awake to the following apps: Google Search, Google Play Services and Android System.

Related

[Q] BetterBatteryStats reports 'gpsd-interface' killing battery on Galaxy Player 5.0

Hi there,
I've had my Galaxy Player 5.0 for over a month now, and it's been exhibiting a weird battery drain problem. I have everything set up to drain as little battery as possible when the device is sleeping. I've got auto-sync off, Juice Defender Plus to automatically disable Wi-Fi... it's working beautifully most of the time. I can go for days without the battery draining at all when I'm not using it. But then it inevitably hits a point where I turn it on and lo, like half the battery charge is gone. I check BetterBatteryStats often to monitor this problem, and it usually shows about the same awake time as screen on time, which is what you'd expect. When the problem kicks in however, the device shows hours and hours of extra awake time.
Two new kernel wakelock entries appear at the top:
gpsd-interface
GPS
Those account for pretty much all the extra awake time. I can break these wakelocks by turning on the GPS, starting Google Maps, letting it read my location, closing Google Maps and finally turning off GPS again. I never use Google Maps or GPS the rest of the time, but these wakelocks keep coming back every few days. I've searched everywhere for any mention of "gpsd-interface" and I found nothing.
Any idea how I might be able to fix this?
Thanks, Nir

Android and battery

I love Android.
I think the customization is great, and since v4 it's smoother and feels more responsive.
There are LOTS of apps and it's better than iOS.
But i'm sick of the battery issues.
I've always loved trying new features, ROMs, apps, hacks and whatever.
I now have SGS3 and it's my third android device, and i've installed ROMs dozens of times, even on my friends' devices.
One thing that always kept me alert is the battery life - the maximum I can get from my battery is around 30 hours with my usage - 1/5-2 hours of screen, ~45 minutes talk, lots of standby.
But every now and then, my girlfriend, my dad, my aunt or my friend ask me 'why does my battery drain so fast?'
Sometimes its google maps.
Sometimes its mediaserver/media scanner
Sometimes - and only I can see it cause they are not familiar with tools like BBS, it's gsf (Google Services Framework).
The point is, when you have an Android device, you need to check the battery stats every now and then to make sure nothing is unusually heavy on the battery.
I am currently experimenting with ParanoidAndroid and AOKP, which are faster and more responsive than omega/stock.
Yesterday i went to sleep (6 hours) with 25% battery (after it lasted 15 hours) and I turned off the data connection and the wireless connection.
I woke up after 6 hours (lucky..) and I saw my phone if off. after I connected it to the charger and turned it on I saw mediaserver decided to wake up in the middle of the night, after It almost did nothing during the day, and worked for 5.5 hours until the battery died!
Today I unplugged my phone and in 1 hour of standby 10% of the battery were gone, I checked what happened using BBS and saw gsf again (that GTALK_SYNC whatever wakelock) was draining battery, after I thought I fixed it yesterday when I disabled app data and browser sync in the google account sync options). I rebooted and now it seems ok again, the phone is back to ~70-80-% sleep.
I want to emphasize that I don't like all the stupid battery tips that tell me to castrate my phone:
turn off wifi when it's not needed, turn down the brightness, lower the screen timeout, disable sync (wtf? but its a smart phone, I WANT push notifications!) and that sort of things.
I KNOW I can get >24hours of battery without disabling the basic features of my phone.
And the draining battery processes that I mentioned earlier can suddenly appear even in a stock ROM, so I don't think it's PA or AOKP's fault.
What I want is that google will finally build a supervisor entity that will check what causes an unusual battery drain, check if it makes sense, and disable that cause!
It's absurd that google maps application comes with default 'enable location reporting' that constantly drains your battery and for what?? google maps doesn't run in the foreground, why the hell will I want that background location reporting draining my battery? and if so, why do you put this option enabled BY DEFAULT? The average user doesn't know this sort of stuff, and get only 10 hours of battery out of a device that should ideally provide ~30 hours!!!
Just wanted to let it out of my system...
And to get useful battery tips if any...

Device is always awake and WiFi is always on

Hi,
I'm having battery issues with OPX again, first it was a faulty battery, but now it looks like the there's something wrong with the settings. The device loses about a third of it's battery overnight, but when I look at the stats I can see that WiFi is always on and the device is always awake!
I have installed naptime as well and told it to ignore sensors (not that it matters as the device is not moving overnight) and to sleep even if connected to a charger etc. No matter what I try the device is always awake.
Is there a way to find out what is keeping it awake?
When I look at usage since last full charge there's nothing unusual there, just regular apps and single digit percentage numbers.
Thanks for your help!
System version?
I'm on Android Marshmallow, using Resurrection Remix ROM.
I'm not quite sure how to use the wakelock blocker, but I just installed Wakelock detector and it shows TripAdvisor as #1 on the list. I have it blocked in notifications, but I can't find anything related to TripAdvisor in wakelock blocker.
Is there any way to prevent apps from keeping the system awake, or should I just unintall TripAdvisor completely?
Not sure if I'm on the right track, but something is keeping the system awake and I need to find out what
OS3 with google back up turned off I get zero drain. Maybe 2-3℅ max over night. Also turned off automatic updates playstore. With just those two things off dont see drain anymore might just be lucky.
Well I think I'm back on normal drain. I uninstalled TripAdvisor, not using it except when I'm on holidays. I disabled the option to keep WiFi on even during sleep.
I used wakeblocker to block all weather/facebook entries, and I have two gmail accounts, one which is use a lot and one which I don't - so I blocked all wakelocks from syncing the account I don't use often.
Battery history confirms device is now correctly going to sleep and turning off WiFi. Automatic updates are still on.
I probably blocked too much, but I don't care anymore, I have 30% more battery every morning and that's good enough for me
crótach said:
Hi,
I'm having battery issues with OPX again, first it was a faulty battery, but now it looks like the there's something wrong with the settings. The device loses about a third of it's battery overnight, but when I look at the stats I can see that WiFi is always on and the device is always awake!
I have installed naptime as well and told it to ignore sensors (not that it matters as the device is not moving overnight) and to sleep even if connected to a charger etc. No matter what I try the device is always awake.
Is there a way to find out what is keeping it awake?
When I look at usage since last full charge there's nothing unusual there, just regular apps and single digit percentage numbers.
Thanks for your help!
Click to expand...
Click to collapse
Which ROM and recovery do you use?

Screen off vs standby

Since i'm playing with amplify and power nap on my asus ze551ml (lollipop 5.0 with boret's kernel), i faced the following:
When the screen is off, the device doesn't go to sleep mode, or at least i think so.
I'm doing my testing with telegram; i said to amplify to limit his alarms to 1 every 10 minutes, and it is working fine undernight (BBS confirms that)
Now i'm even trying Power Nap, which is supposed to completely stop Telegram (and others).
Anyway, if i put the screen off, and then send a message to my telegram account, the phone still receives it almost instantly (3 seconds delay).
This clearly means that telegram is still active and kicking, it is not using any wakelock, it is alive all the time.
But, i repeat, it works overnight (Better battery stats confirms that amplify is limiting his alarms).
Another strange thing, is that i've configured com.asus.powersave to disable wifi as soon as the device enters sleep state, but when i wakeup my phone in the morning and see the BBS statistics from "screen off" to "screen on", it shows that wifi has been active for more than 18 minutes, so here's the question:
Is there a time/timeout to wait after one tunr off the screen for the phone to enter in standby/sleep mode?
And if yes, is that time configurable?
Thanks.
I made a test that confirmed what BBS said; i turned the screen off and start to ping my android wifi ip.
After about 18 minutes (that's the time BBS said wifi was active after the whole night), it stopped responding to pings and telegram of course wasn't workling anymore.
Is it possible to change that timeout to something lower?

Standby drain

When you sleep, does your phone sleep, or does it stay up all night and crunch 1s and 0s? Rate this thread to express how you deem the speed at which the Google Pixel 4's battery drains under standby conditions. A higher rating indicates that when the phone is not in use, the battery drains minimally.
Then, drop a comment if you have anything to add!
Really good standby drain for me. Around 0.7-1. %
The standby.. Everytime is different.
Sometimes i get 10% overnight. Sometimes 6%. Sometimes 7-8%. And last night 2% (for 7h).
Wifi always on, motion sense on, AOD off, adaptive battery on, phone flat on display
DSF said:
The standby.. Everytime is different.
Sometimes i get 10% overnight. Sometimes 6%. Sometimes 7-8%. And last night 2% (for 7h).
Wifi always on, motion sense on, AOD off, adaptive battery on, phone flat on display
Click to expand...
Click to collapse
turn off adaptive battery and your standby time will be closer to the post before you
jalado said:
turn off adaptive battery and your standby time will be closer to the post before you
Click to expand...
Click to collapse
Tried one night. It was about 8% for 8h..
And last night it drained 5% in 9h, with adaptive battery on
DSF said:
Tried one night. It was about 8% for 8h..
And last night it drained 5% in 9h, with adaptive battery on
Click to expand...
Click to collapse
this is with 60hz.. check to see if wifi scanning is on. even if you turn it off and you use an app that asks you to turn location on like Google maps. if you hit yes it will automatically turn wifi scanning back on. I also turn off auto sync and sync things manually when I choose too.
Thanks for the reply.
How is going in prolonged standby? I've observed that when commuting it drains more battery. Even if i am using location history that's a bit too much, because most of the time i am not moving. I am just placing the phone on my desk.
jalado said:
check to see if wifi scanning is on. even if you turn it off and you use an app that asks you to turn location on like Google maps.
Click to expand...
Click to collapse
Turning the wifi and Bluetooth scanning off are among the first things I do when i setup a device.
I need auto sync.
I've just turned off "mobile data always on" from developer options and will see if it helps or not.
DSF said:
Thanks for the reply.
How is going in prolonged standby? I've observed that when commuting it drains more battery. Even if i am using location history that's a bit too much, because most of the time i am not moving. I am just placing the phone on my desk.
Turning the wifi and Bluetooth scanning off are among the first things I do when i setup a device.
I need auto sync.
I've just turned off "mobile data always on" from developer options and will see if it helps or not.
Click to expand...
Click to collapse
having location history on shouldn't affect the battery, it's just storing history.
it'll turn back on though if an app requests for location and you press yes. for ex. use Google maps and it'll probably ask for location to be turned on even if you have location on already. if you press yes it'll turn on wifi scanning.
I do the same. turning off mobile data always on should help.
the standby drain usually comes from play services, but it could also be an app that was downloaded. from my experience, it's usually play services.. yeah if you need autosync then it is what it is. because even if your phone is face down it's still going to use your cpu. it's probably better for you to turn adaptive battery on, but you should limit/restrict your apps manually, instead of letting it notify you when it thinks an app is running too much in the background. I know a pixel 3 user that was using adaptive battery with 30 apps restricted and it was working for him. I never restricted apps manually when I had adaptive battery on. that could be the reason adaptive battery never worked for me. my play services would be higher than 5%, sometimes even 15%-20% with it on. now I rarely go over 4%
these pics are from my 3. it also depends on your reception, there aren't any battery saving tips for that , except to put it in airplane mode.
one more thing is to calibrate your battery. I understand that li-ion batteries don't have memory like nickel. but I think it something to do with the OS storing the battery capacity or something.
charge your phone to 100, drain it till it turns off. plug it in and charge it to 100. unplug turn it on and repeat the steps 1 more time. this helps especially on big updates.
the battery becomes more efficient and consistent. when I updated to 10 from pie my battery would drain quickly to like 50% and then below that it would slow down.
I am roaming right now and connected to a WiFi network with dual band on the same SSID. It's frustrating how much the battery drains when idling!
7% loss in less than 2h completely idle..
From 95% to 88% in 1h40 of standby!
I have no access to the router to force it on a band, it keeps switching from 2.4ghz to 5ghz.
If i turn off wifi and leave mobile data on, then Google Play services is on top of the draining list.
I am starting to hate all these Android inconsistencies..
DSF said:
I am roaming right now and connected to a WiFi network with dual band on the same SSID. It's frustrating how much the battery drains when idling!
7% loss in less than 2h completely idle..
From 95% to 88% in 1h40 of standby!
I have no access to the router to force it on a band, it keeps switching from 2.4ghz to 5ghz.
If i turn off wifi and leave mobile data on, then Google Play services is on top of the draining list.
I am starting to hate all these Android inconsistencies..
Click to expand...
Click to collapse
turn off your auto sync. it updates every 15 mind and keeps your phone from dozing. just manually sync it. it literally takes 6 clicks.
jalado said:
turn off your auto sync. it updates every 15 mind and keeps your phone from dozing. just manually sync it. it literally takes 6 clicks.
Click to expand...
Click to collapse
Man, it has literally nothing to do with auto sync.
I have battery issues both when using the phone and while standby.
The phone is getting annoying warm. That doesn't happen when i am home. Now i am using a different wifi connection.
Now home (different router, different SSID for each band) the wifi consumption seems normal and the phone doesn't heat anymore while using. That's so pity when you have no control to wireless router and you get into this situation! This seems to be related to Android, since i had the drain also on OnePlus 5.
Made a little test, when not in "doze mode" it consumes 2% each hour.
And overnight somewhere between 4-8% (random !?) for ~8h.
All standby times, no background tasks
Wifi & Bluetooth scanning off, motion sense off, idle screen (AOD) off, wifi on, location on, always on data off, Bluetooth on, tap to wake on, lift to wake on, now playing on, assistant voice match off
My battery drain reduced to 3% overnight (8+ hours sleep), with motion sense completely OFF
@jalado do you have any issue with Google play services or phone idle consuming a lot of battery?
I've attached a screenshot with battery usages.
I've already cleared Google play services data + cache yesterday (+ a reboot after about 30mins) before charging.
DSF said:
@jalado do you have any issue with Google play services or phone idle consuming a lot of battery?
I've attached a screenshot with battery usages.
I've already cleared Google play services data + cache yesterday (+ a reboot after about 30mins) before charging.
Click to expand...
Click to collapse
no, my idle drain at night is like 1-2% over 6-8 hours. I don't have auto sync on though, so my phone stays asleep. your play services seems good for auto sync being on. mine's around 3% a day, if that.
I will try to turn off auto sync overnight and see then.
I got 6% drain for ~8h overnight.
Btw, when home with wifi on i have no issues with Google play services battery drain. But when commuting and with data usage (being on mobile data about 2h of the time) the drain is high!
I have to test more and see if it's because location history, Google fit or mobile data. Or all..
So I've turned off auto sync overnight.
It drained 6% (70% -> 64%)... So for me the same drain :/.
Another thing that i am disappointed of is the Google Play Services when on mobile data (on idle/standby). I am on LTE with good coverage.
Use this
https://r.tapatalk.com/shareLink/to...9&share_fid=3793&share_type=t&link_source=app
[APP][2.2+][05 Oct. - V2.4] BetterBatteryStats
That's what i am planing to do for weeks.

Categories

Resources