What keeps WiFi on at night? - Nexus 7 (2013) Q&A

On latest Android M updates, but this has been happening forever since upgrading to M. Some nights my N7 is well behaved, while other nights it chews through battery. From looking at BBS it seems that something keeps WiFi on all the time those nights, even though the WiFi advanced settings say that WiFi should be on only when plugged in. BBS doesn't show anything else interesting.
So, how can I find out what's preventing WiFi from sleeping? Android M bug? Some app?
And more importantly ... what can I do about it? The N7 used to have great battery life, now it's terrible (could be Android M or it could be that the battery is 3 yrs old and no longer performing as it should, though it doesn't happen all the time, so I suspect it's a software issue).

Same here. Fully charged Nexus is empty after a night. All due to WiFi. Suddenly.

I ended up installing this app to fix it:
https://play.google.com/store/apps/details?id=com.asksven.betterwifionoff&hl=en
It's old and doesn't work well with multiple users on the same device, but it works well enough to fix the battery problems. My N7 sleeps like a baby now and battery drain overnight is barely noticeable. FWIW, I tried Greenify first but didn't really help. In fact Greenify has a problem if you enable aggressive doze mode where there's a constant wakelock which makes battery drain even worse.
I'm sure the same could be automated using Tasker, MacroDroid, Automagic or any other automation app but didn't feel like messing with them even though I own Tasker. Better Wifi on/off was the quick and easy way out. We are not getting any more updates for Android on N7 so I know it will work until the tablet dies completely.

Related

Wifi Battery Drain

Hi guys
I have a LTE Note II and have had this battery drain on standby where wifi will absolutely destroy my battery. This has been going on for months and months and I'm just not sure if Samsung are ever going to resolve this and it is quite the pain in the arse.
I've done many tweaks to my phone, and all location services are off. Also, I've set it as a static IP, but nothing seems to help. I think this is related to the wlan_rx_wake wakelock? I get the impression my phone is responding to the wifi and getting woken up constantly.
Does anyone else experience this and do you have any suggestions?
P.S. please don't mention my apps causing it. It definitely is not. I know my way around Android and also, my Nexus 4 with the same setup (but location + google now turned ON) absolutely annihilates my Note II battery life on standby. This is clearly a Samsung problem that they have ignored for the best part of a whole year, and it seems to be related to wifi.
Any help would be greatly appreciated.
Thanks
Do u have some figures about this battery drain to be able to compare with my phone?
It could be a bad modem/connection. What is your configuration?
Primokorn said:
Do u have some figures about this battery drain to be able to compare with my phone?
It could be a bad modem/connection. What is your configuration?
Click to expand...
Click to collapse
No exact figures but I have been observing it for months now and it hasn't been the case with any other phone I use. With wifi on, it'll drain around 20% overnight. With Wifi off, it'll drain 5 or so %. With Wifi on on every other phone I own/owned, it will barely drain at all overnight.
Type *#0011#
Check wifi setting
Sent from my GT-N7100 using xda app-developers app
This is what I got when I entered that it
After *#0011# go to menu and select wifi in order to see if power safe mode is on.
Yeah it is on
Is that bad?
Sent from my Nexus 4 using Tapatalk 4
That's not bad, it improves battery usage. I don't recognize your problem. Does the phone go into deep sleep with wifi on? Which rom do you use?
Hielko said:
That's not bad, it improves battery usage. I don't recognize your problem. Does the phone go into deep sleep with wifi on? Which rom do you use?
Click to expand...
Click to collapse
Stock ROM. And yeah, but it is constantly being woken up.
Sorry for the bump, but this hasn't changed.
I'm not sure if this is to do with just the N7105, but it is something that just won't go away. I'm now finding I lose between 20 and 30% overnight (around 7 hours) with wifi on, or about 10% with data on. With these both turned off but the phone radio still being on, it only drops about 2% in the same time. This was tested with bluetooth/gps and sync turned off.
I don't really have the time to write up everything that I have tried, but suffice to say I have tweaked the phone a lot over the past few months trying to sort this out, but nothing works.
Here is a quick summary of the stuff I have done.
Firstly, I have to run a stock rom and kernel because there is an app I need that will not work on custom roms/kernels. It also doesn't work on root but I have found a procedure to toggle unroot/root when need be and it works fine. Therefore I'm stuck on 4.1.2 as I want to be rooted but I cannot use any custom rom or kernels.
I have tried factory wiping the phone/installing later versions of 4.1.2, etc etc and the same problems still exists with a freshly wiped phone and no apps installed. This problem also doesn't happen with my Nexus 4 or any other phone I have owned with the same setup, so I am very certain it is not due to a misbehaving app.
I have frozen a lot of bloat with titanium backup, I have hibernated a hell of a lot of stuff with greenify (including system app where there are no perceivable negative consequences)
I have added a few tweaks to the build.prop such as to disable fast dormancy and a few other supposed power saving ones which are meant to help with the msm_hsic wakelock.
There are many other things such as setting a static IP, and also tweaking with my router based on some advise I found on these forums. Nothing much has helped.
Location services and google now are off, and I'm not using the Samsung bloatware apps.
I use betterbatterystats and the partial wakelocks are fine. Very low infact.
However, IMO it is two "kernal wakelocks" which are causing me the problem.
wlan_rx_wake - in regards to the wifi
mdm_hsic_pm0 - in regards to the data
These are by no means outrageously high. My estimation is perhaps 10 mins wake up time and around 2000 "expire time" (whatever that means) every 3 hours or so. However, these two are always the highest kernel wakelock depending on if i'm using wifi (wlan_rx_wake) or data (mdm_hsic_pm0). My phone is also not being kept awake too long too in general.. at a guess around 3 hours awake time for every 2 hours screen on time for every 15-20 hours.
I can't remember if these kernel wakelocks were super duper high in the past, and the fixes I tried actually lowered them, but I still notice this massive Idle drain when on data or wifi (just over 1% per hour - or 2-3% per hour respectively).
In regards to the Wifi.. I suspect that packets are being sent from my router which are constantly waking up my phone. Unfortunately, I haven't been able to solve this problem with any of the router-side fixes I've tried.
This leads me to suspect that the wifi and data radio of the N7105 is power hungry, or I've had a faulty unit since day one. I keep hearing about this stellar battery life for this phone but, for me, the best I've ever got is around 20 hours. This may sound good but the problem is it is 20 hours with 6 hours screen on time, or 20 hours with 2 hours screen on time. This doesn't seem to make a difference where I should be getting two days when I only have 2 hours screen on time.
Any help would be greatly appreciated, and any experiances of others with the N7105 may help find out if it indeed is more power hungry. I'd also like to add that my network does not support 4G yet so this is all on 3G and NOT LTE.
Thank you, and sorry for such a long post.
fade2black101 said:
Hi guys
I have a LTE Note II and have had this battery drain on standby where wifi will absolutely destroy my battery. This has been going on for months and months and I'm just not sure if Samsung are ever going to resolve this and it is quite the pain in the arse.
I've done many tweaks to my phone, and all location services are off. Also, I've set it as a static IP, but nothing seems to help. I think this is related to the wlan_rx_wake wakelock? I get the impression my phone is responding to the wifi and getting woken up constantly.
Does anyone else experience this and do you have any suggestions?
P.S. please don't mention my apps causing it. It definitely is not. I know my way around Android and also, my Nexus 4 with the same setup (but location + google now turned ON) absolutely annihilates my Note II battery life on standby. This is clearly a Samsung problem that they have ignored for the best part of a whole year, and it seems to be related to wifi.
Any help would be greatly appreciated.
Thanks
Click to expand...
Click to collapse
I ain't expert...
but, I would suggest like this :
Go to wifi, press menu and then Advanced (advanced setting of the wifi).
uncheck/untick "Scanning always available"
"Keep wifi on during sleep" = set to Never.
uncheck / untick "auto network switch btwen wifi network and mobile networks"
all these helps me to minimize the usage of wifi during night times (when I sleep). Anyway, device also need to have a deepsleep
Hope can help you as well.
Sent from the corner of this rounded earth.

Strange battery usage behaviour

I have a strange issue with my 32G WiFi FLO that I was hoping the knowledgeable members of XDA could help me diagnose.
Since I got it at launch, it's been sucking the battery dry. But not consistently. I have no idea what or why, but here's what I know so far:
All details are with auto sync OFF. WiFi OFF on sleep, location services ON (but cannot use WiFi)
Not unlocked or rooted (stock)
- From boot, and for the first 20-40 hours after that, battery usage on standby averages out to around 0.13% per hour.
- After that, and for no reason I can discern, battery usage jumps to an average of 0.84% per hour, and keeps draining like this usually until I reboot or need to charge
- Stock battery app shows no apps draining, BBS shows no apps draining stuff or excessive wakelocks and indicates the tablet is spending most of its time in deep sleep.
- Life with screen usage seems to be around 7+ hours either way, so this is as expected.
- Sent to ASUS to diagnose & repair, received with note that front camera unit replaced and OS reloaded.
- Issue is still occurring after "repair"
- apps running at the time are usually Android Keyboard, Android Services, Settings. Sometimes Play Store, Currents (even though I don't use it and have never launched it), Google Play Services as well. These are the only apps that run regardless of state of battery drain.
Can anyone think of any reason this is occurring, or where else I can go to check for more info? I'd prefer to stay stock/unrooted.
I'm looking to send it back for RMA *again*, but I'd rather tell them where to look than try and trust that they'll know where to look to fix it this time.
Guess no-one else has this issue or any ideas on where to look for this, since there are no replies

Battery Life - Idle drain?

I was wondering if anybody else had this issue or had any suggestions.
Battery life is normally great on the tablet, except every once and a while it gets stuck awake overnight. There doesn't seem to be a 3rd party app that is holding it awake, as Android system and OS is what's using most of the battery.
As you can see in the screenshot, Doze works fine and barely any better is drained, I used it briefly, came home from work and half the battery had been drained.
Thanks for the help
Not sure if it's normal but mine does the same.
Sent from my Nexus 6 using Tapatalk
I've seen a 30ish % drain sitting overnight a couple of times over the past 2 weeks. Can't seem to find a rhyme or reason for it.
I can't imagine it being "normal" since, with Wifi set to off while sleeping that the device should drain that much.
It's odd and happens randomly, I'm on the same page as you bluestang.
It happened to me once, at night it wastes a 15% battery.
I changed in wifi advance options to not maintain WiFi always awake, only in charge.
sabisavi said:
It happened to me once, at night it wastes a 15% battery.
I changed in wifi advance options to not maintain WiFi always awake, only in charge.
Click to expand...
Click to collapse
That's the setup I have though - so I get no notifications or anything when it's not on. Yet something is still keeping the device up.
I have *exactly* the same problem with an all new device, and with nothing but a game installed on it. After a reboot, if I let the Pixel C right there for a night, then it only drains ~3/4%.
Then I play the only game I have for 5 minutes, and let the device again for a night => it now wastes a 20% battery!
No idea what's going on... "Android OS" appears first in the list of app, but this does not help me so much to find what is actually happening...
The issue still appears even after a full reset of the system (I'v tried, without success).
sylar12 said:
I have *exactly* the same problem with an all new device, and with nothing but a game installed on it. After a reboot, if I let the Pixel C right there for a night, then it only drains ~3/4%.
Then I play the only game I have for 5 minutes, and let the device again for a night => it now wastes a 20% battery!
No idea what's going on... "Android OS" appears first in the list of app, but this does not help me so much to find what is actually happening...
The issue still appears even after a full reset of the system (I'v tried, without success).
Click to expand...
Click to collapse
Exactly. If I reboot the device and let it sit, doze works fine, the second I open an app, use it and put the tablet down, something hangs and keeps it awake. Always Android OS that is keeping it awake as well...
I have this issue too. Are you guys on xceed Kernel?
Whats really interesting even better battery stats Shows no culprit.
I'm on the stock-just-reset-again last version of the system.
Freak07 said:
I have this issue too. Are you guys on xceed Kernel?
Whats really interesting even better battery stats Shows no culprit.
Click to expand...
Click to collapse
I'm on stock - not even rooted
I'm on stock MM here as well.
Also, not sure if it a coincidence or not, but I changed this and haven't seen overnight battery drops anymore. In Settings>Location I changed the Mode from High accuracy to Battery saving. Since the Pixel C doesn't have GPS device, then why use it.
Like I said, not sure if it a coincidence, but battery life has been great overnight since.
bluestang said:
I'm on stock MM here as well.
Also, not sure if it a coincidence or not, but I changed this and haven't seen overnight battery drops anymore. In Settings>Location I changed the Mode from High accuracy to Battery saving. Since the Pixel C doesn't have GPS device, then why use it.
Like I said, not sure if it a coincidence, but battery life has been great overnight since.
Click to expand...
Click to collapse
So last night, I rebooted before I went to sleep, but overnight the battery drained from 85% down to 57% in about 8 hours.
I decided to check my location settings as per your post and found it was set to high accuracy, so I changed it to "Battery Saving".
I did nothing else(no reboot) until I checked my battery now about 3 hours later, it has only dropped by a further 2%.
Looking at "Battery Monitor Widget Pro" history statistics, it is clear to see that overnight the battery was draining considerably more.
It takes readings every 10 minutes and was showing between 450 and 275 mA being used every 10 minutes overnight.
Since I changed the location settings, most of the time it is 15mA with occasional jumps up to a max of 297mA.
Although this could not be classed as conclusive proof, it does seem to have had an effect, I will keep monitoring it to see how it goes.
Yep, I change that setting on the 19th or 20th and haven't seen any major drains overnight.
I think I may have found a winner with that little tweak
So far so good for me too. I don't know if it is related to the GPS settings, but no more inconsistent major drains so far.
if location services is on it can drain a good deal
Just to add that I had exactly the same issue on stock 7.1.2, tablet was staying awake and draining. Reduced location precision and now only a 2% drain during an 8 hour sleep which is a massive improvement.

qcom_rx_wakelock on University WiFi Causing Android OS/Kernel Battery Drain

When I got my OP3 I noticed that my battery wasn't quite as good as some had been reporting and that there was a lot of drain going on while the phone was off. After a while I started to notice that I was having bad wakelocks only when I was on any WiFi network on campus. When I went home for Thanksgiving, this battery drain was completely eliminated and I was easily getting 6+ hours of SOT which is almost double what I was getting. Once I came back to school, the battery drain came back. I did some research and everything seemed to point to the qcom_rx_wakelock which seems to be an issue on many school/work networks. I ran Wakelock Detector while on WiFi and this confirmed that qcom_rx_wakelock is the cause of the drain.
I am on version 3.2.8 and completely stock and I would like to keep it that way. This wakelock is an issue on the network's end and from the sound of things there aren't really any software fixes that I could do. I've read that most battery saving fixes such as using Amplify or flashing a different kernel don't help anyways. Does anyone have any ideas on how I could stop this? Are there any changes to the network that the school could make to alleviate this issue? I doubt they would listen but it's worth a try. Or are there any other things I could try?
Also, I should mention that I tried the simple fix of turning off the setting "Keep WiFi on During Sleep" which prevented me from reconnecting to the WiFi even when I turned the phone back on. The only way I could reconnect to the network was rebooting my device.
same with me.
i open qq in background. if i connect to the college wifi, screen off wake time is up to 50%;if i connect to my router,it's about 12%.. BTW,i use betterbatterystates to see my wake time.
Flash Franco Kernal, it has this WiFi wake lock fix.
cstrock said:
When I got my OP3 I noticed that my battery wasn't quite as good as some had been reporting and that there was a lot of drain going on while the phone was off. After a while I started to notice that I was having bad wakelocks only when I was on any WiFi network on campus. When I went home for Thanksgiving, this battery drain was completely eliminated and I was easily getting 6+ hours of SOT which is almost double what I was getting. Once I came back to school, the battery drain came back. I did some research and everything seemed to point to the qcom_rx_wakelock which seems to be an issue on many school/work networks. I ran Wakelock Detector while on WiFi and this confirmed that qcom_rx_wakelock is the cause of the drain.
I am on version 3.2.8 and completely stock and I would like to keep it that way. This wakelock is an issue on the network's end and from the sound of things there aren't really any software fixes that I could do. I've read that most battery saving fixes such as using Amplify or flashing a different kernel don't help anyways. Does anyone have any ideas on how I could stop this? Are there any changes to the network that the school could make to alleviate this issue? I doubt they would listen but it's worth a try. Or are there any other things I could try?
Also, I should mention that I tried the simple fix of turning off the setting "Keep WiFi on During Sleep" which prevented me from reconnecting to the WiFi even when I turned the phone back on. The only way I could reconnect to the network was rebooting my device.
Click to expand...
Click to collapse
I was on stock... switched to FreedomOS 1.7 (3.2.8) with ElementalX kernel. No WiFi darins.
cstrock said:
When I got my OP3 I noticed that my battery wasn't quite as good as some had been reporting and that there was a lot of drain going on while the phone was off. After a while I started to notice that I was having bad wakelocks only when I was on any WiFi network on campus. When I went home for Thanksgiving, this battery drain was completely eliminated and I was easily getting 6+ hours of SOT which is almost double what I was getting. Once I came back to school, the battery drain came back. I did some research and everything seemed to point to the qcom_rx_wakelock which seems to be an issue on many school/work networks. I ran Wakelock Detector while on WiFi and this confirmed that qcom_rx_wakelock is the cause of the drain.
I am on version 3.2.8 and completely stock and I would like to keep it that way. This wakelock is an issue on the network's end and from the sound of things there aren't really any software fixes that I could do. I've read that most battery saving fixes such as using Amplify or flashing a different kernel don't help anyways. Does anyone have any ideas on how I could stop this? Are there any changes to the network that the school could make to alleviate this issue? I doubt they would listen but it's worth a try. Or are there any other things I could try?
Also, I should mention that I tried the simple fix of turning off the setting "Keep WiFi on During Sleep" which prevented me from reconnecting to the WiFi even when I turned the phone back on. The only way I could reconnect to the network was rebooting my device.
Click to expand...
Click to collapse
I'm having the same problem but what's new for me is that I'm connecting to the same router from last week I'm facing this issue on any ROM but IDK how can this happen bc my router are same as before it used to work fine before.
I guess it a hardware fault?

Can someone please tell me what's causing my battery drain?

I even broke my phone with App Ops trying to figure it out, disabling wake permissions for most apps which caused FC's and even reboots. I have since restored all permissions but I still get FC's whenever I leave an app or switch out of it. Not sure if it's really crashing, but I get a FC message every time. So much so that Substratum turned off its theming for Files because it "crashed" after every screenshot was successfully uploaded to this post. Btw I just removed CrossBreed Lite and it seems to have helped. So far no reboots doing the same stuff that caused reboots! Not sure why it caused problems though. I used it for a few days with no issues.
Anyway, back to my battery woes. 30-40% kernel system usage. Why is this happening? Even Snapchat which is abusing wake locks is nothing compared to kernel system.
I'm running the latest build of AIM 8.1 with EX Kernel. I have just visited the other thread about tweaking governer values to optimize battery life so I'll report back with results although I doubt that's relevant to my battery drain.
I've Googled quite a bit on the subject and it seems that each case is different. Usually caused by a certain bug, although a lot of people say it's "normal" which I strongly disagree with.
Update: optimizing the CPU has definitely made an improvement, but the kernel battery drain still exists.
Could it really be pick up to wake and wifi search behind the drain? Isn't this phone supposed to have a sensor hub that allegedly allows for all sensors to constantly be on while using minimal power? I never noticed this drain on any other phone with both of these features on.
Anyway, I disabled pick up to wake and I'll start trying to remember to turn off wifi when not in use.
I think you're trying too hard and running a bunch of stuff. The kernal usage looks about right. I wouldn't run Gsam and BBS at the same time. They can fight each other. What makes you think there's a problem? Nothing jumps out at me.
Sent from my [device_name] using XDA-Developers Legacy app
I also can't see anything out of the ordinary, except this one picture where it shows the phone being active while dozing. I don't know how to understand that because I don't use that app, maybe I'm reading it wrong. What does Android's built-in battery monitor show? Is it dozing properly while screen is off? What is your average SOT? Is your mobile signal strong? I'm also using AIM 8.1+EX combination with satisfying results. Is your radio up to date?
maybe Wakelock Detektor or Greenify can help you.
And if you currently have things crashing all the time, start with a factory reset. Much easier to diagnose the cause when the apps aren't doing random stuff.

Categories

Resources