Hi guys,
Did anyone else notice this strange result after switching to ART compiler? When I check battery consumption in Settings -> Battery, Wi-Fi power seems to be always on for the whole duration of use. Even though I made sure it has been turned off as I left home for work, Wi-Fi is showing up as running since I've unplugged the phone. It's quite a consistent issue. Reverting back to Dalvik would allow Android to record correct Wi-Fi power pattern so I'm guessing this is probably associated to ART. I'm sure I can't be the only one experiencing this issue? Please someone provide a bit of insight.
I'm using completely stock, unrooted, KitKat 4.4.2.
Other than that I'm very happy with ART, not much of a speed boost considering Nexus 5 is already blazing fast, but I can definitely feel the extra snappiness when switching between apps Weirdly, with the Wi-Fi issue, battery life seems to be just about the same (or even better). By the way, I don't believe Wi-Fi is actually on, it's probably just a recording or reporting bug.
Cheers everyone! Please let the conversations flow!
I think you have the "Scanning always available" setting turned on ( Settings>WiFi>Advanced>Scanning always available).
It's a feature that lets the phone scan for WiFi networks even when you turn it off, just for location purposes. So, even if you turn it off, technically it's still on, that's why it always shows in battery stats.
It has nothing to do with ART, I'm using it and it's great.
Sent from my Nexus 5 using Tapatalk
raul90 said:
I think you have the "Scanning always available" setting turned on ( Settings>WiFi>Advanced>Scanning always available).
It's a feature that lets the phone scan for WiFi networks even when you turn it off, just for location purposes. So, even if you turn it off, technically it's still on, that's why it always shows in battery stats.
It has nothing to do with ART, I'm using it and it's great.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hi raul90, thanks for the reply! I will try disabling the feature, but I've always had the feature enabled, and battery stats reports correct power pattern when I switch back to Dalvik. The only variable is the runtime, no more.
Related
In the wifi sleep policy, it is possible to set wifi to sleep after screen off. However wifi does not sleep immediately but 15 minutes after screen off. I would like wifi to sleep earlier, say 5 minutes after screen off.
I searched around and found an app capable of doing this. But it is for samsung phones and doesn't work for defy. Does anyone know if and how it can be set manually?
Juicedefender. That is the exact app to use.
I tried Juice Defender. There are options to disable wifi based on connection existence, preset time, data flow etc, but there is no option to set the how long after screen off wifi would sleep.
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Good luck
Hmm I actually set my wifi to never turn off automatically. For instance yesterday I made a phonecall with Skype. My mobile connection is too slow for that so I switched the wifi on. During the phonecall I had the screen turned off but of course the wifi needed to stay on.
I have a widgetsoid widget on my homescreen to enable/disable the wifi. Don't like it when things go automatic and it's just as easy when you need wifi only once in a while.
AgentSmith said:
Hmm I actually set my wifi to never turn off automatically. For instance yesterday I made a phonecall with Skype. My mobile connection is too slow for that so I switched the wifi on. During the phonecall I had the screen turned off but of course the wifi needed to stay on.
I have a widgetsoid widget on my homescreen to enable/disable the wifi. Don't like it when things go automatic and it's just as easy when you need wifi only once in a while.
Click to expand...
Click to collapse
Since i changed my ROM, my wifi actually goes to sleep after 15 minutes and I don't want it to turn off.
How do you set your wifi to never turn off automatically?
naenee said:
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Good luck
Click to expand...
Click to collapse
Thanks! Unfortunately moto doesn't have the settings.db file. I tried putting the mentioned key "wifi_idle_ms" in several other files but no effect.
Edit:
Stupid me. I find the location of settings.db and it works perfectly now
For information, the location of defy's settings.db is:
/data/data/com.android.providers.settings/databases/settings.db
woonaval said:
Since i changed my ROM, my wifi actually goes to sleep after 15 minutes and I don't want it to turn off.
How do you set your wifi to never turn off automatically?
Click to expand...
Click to collapse
In the wifi settings screen, press the menu button to get the advanced options.
ABC_Universal said:
In the wifi settings screen, press the menu button to get the advanced options.
Click to expand...
Click to collapse
wow that was easy, thanks!
woonaval said:
wow that was easy, thanks!
Click to expand...
Click to collapse
Indeed!
Thanks guys; I can now listen to TuneIn radio as long as I want (or my battery allows me to).
If you intend to save battery, maybe you should consider leave "wireless policy" to "never sleep".
It might sound senseless but there are a lot of people reporting substantial battery savings with this, including me, i noticed at least +20 hours in battery life only with this little thing. Charts drawn with Battery Monitor showed the same consumption, Wireless OFF. vs Wireless policy to never sleep. And the most expensive was policy of sleep when screen turned off.
http://forum.xda-developers.com/showthread.php?t=1022390
unrafa said:
If you intend to save battery, maybe you should consider leave "wireless policy" to "never sleep".
It might sound senseless but there are a lot of people reporting substantial battery savings with this, including me, i noticed at least +20 hours in battery life only with this little thing. Charts drawn with Battery Monitor showed the same consumption, Wireless OFF. vs Wireless policy to never sleep. And the most expensive was policy of sleep when screen turned off.
http://forum.xda-developers.com/showthread.php?t=1022390
Click to expand...
Click to collapse
That's probably the case for 3g. But I'm using 2g and find 2g uses less battery than wifi in standby mode (with some background data sync).
naenee said:
Here you go, this should do what you want: http://forum.xda-developers.com/showthread.php?t=774507
Click to expand...
Click to collapse
Thanks, naenee, for the link. In case anyone is interested, I just made a simplified adaptation of RyanZA's guide, specifically for the DEFY: http://forum.xda-developers.com/showthread.php?p=22639770
I have trouble downloading large files using this ROM since when my screen turns off, WIFI is also disabled. How can I change it. I've been looking in the settings but to no avail.
Edit: Found it...you have to click menu when in the WIFI Settings, then choose advanced.
Edit2: Wifi is disabled when screen is turn off even if the Wifi sleep policy is changed to Never.
Any ideas?
then that is some kind of bug. because setting wifi sleep policy to never should behave as such.
related note, setting wifi sleep to never greatly increases batteyr life, as said thru the forums, because back on 3g the data kills your battery much faster. so allowing wifi to stay on makes a huge improvement on battery.
for example if you leave wifi on overnight, you might lose 5% total. but if it switches back to 3g overnight, you might lose 20%.
is this bug confirmed?
me too have same problem with SuperAosp (i will test with other rom....)
First and foremost let me say that I love this phone. But I am having an issue with serious battery drain that's occurring when I have WiFi on. I need to use WiFi Calling in my house,and it worked flawlessly on my previous mytouch 4g, running under the same conditions. In fact, my wife now has that phone and it works great, we actually manage to save a ton of battery with wifi calling turned on.
So when I got the Sensation I hoped for more of the same, great battery life when at home due to wifi calling. However, that is not the case, when I have wifi on, with or without wifi calling enabled, my battery drains at a rate of about +-10% an hour! And thats with out even touching it! Without wifi on, 2-4% per hour battery drain.
Speeds when I do things over wifi are blazing fast, and the signal is full bars, so I know the phone is not searching for the wifi. With wifi, and minimal use, I max out at 5-6 hours! Not sure what to do, as not using wifi is really not an option.
One other thing, coming from the mytouch 4g, a highly underrated phone imo, I do see some lag that wasnt present in the "lesser" phone. In particular, the USA Today app, for example, on the Mytouch scrolling was smooth as butter, not so much on the sensation, I also see it in the Android market when I look at my apps, same app list on both phones, mytouch scroll is smooth as can be, Sensation is very jittery.
Maybe someone has some thoughts, or is having similar issues, cause I am so jealous of all the "OMG my battery lasted 6 months" posts!
Thanks in advance!
Because the phone comes stock with the WiFi sleep policy set to never. In my opinion that's a stupid decision on HTC's part. Easy fix though. Go into Wireless settings and clock on WiFi settings. Then click the menu key and click advanced. You will see the WiFi sleep policy menu. Just change it to "Never When Plugged in" or after 15 minutes. If you change it to Never when plugged in then the WiFi will go into sleep mode when ever you turn your display off.
Ive had it set to the 15 minute setting, but I thought that the wifi calling would block wifi from sleeping. Once when looking at the battery screen, I zoomed either on wifi or wifi calling, and it said something to that effect.
mlish420 said:
Ive had it set to the 15 minute setting, but I thought that the wifi calling would block wifi from sleeping. Once when looking at the battery screen, I zoomed either on wifi or wifi calling, and it said something to that effect.
Click to expand...
Click to collapse
Sorry, I forgot you said you use WiFI calling. That might have something to do with it. I always keep mine of so it doesn't matter if my WiFi sleeps right away.
Wifi can't sleep!
I don't know if i should start a new thread but this was the closest to my problem I could find.
Basically I'm having the same WiFi battery drain issues, and I tried to do the usual Wifi Sleep 'after 15 mins' or 'Never When Plugged in' options in the advanced menu but it always reverts to just 'Never' after a few minutes.
On my power graph it shows that I have had continuous wifi on despite changing the settings. So its not just the option returning to default when i open the menu either.
I'm really confused here, is there something forcing my wifi to be on all the time?
Any help is much appreciated.
Make sure wi-fi best performance is not checked. That will drain battery faster also
Hi guy, my wifi won't turn off when my Xoom is on sleep. I have set the settings of 'keep wifi on during sleep' both to 'NEVER' and 'ONLY WHEN PLUGGED' but nothing happens. Wifi stays on and keeps draining my battery life. I am running rooted with the latest version of nightly 62 and I've been having this issue since 55. I have reinstalled, flashed, factory reset, wiped my Xoom.
Is anyone else having this issue? What should I do?
From my experience, wifi stays on for a little while longer after device sleeps. However, some apps in background may trigger wifi back on again. So I turn off wifi when i go to bed. Actually i notice wifi itself will not drain much battery, 1-2% for 10hr. It's the host apps sucking the juice.
I am not an expert though.
OK i've also checked it out and as you said wifi turns off after some time. My main problem now is that my battery life won't last more than 3-4 hours on wifi.
I have posted my battery stats with use of web browsing and watching pictures on gallery...
jimgeroul said:
My main problem now is that my battery life won't last more than 3-4 hours on wifi.
Click to expand...
Click to collapse
What do you mean "no more than 3-4 hours"? In your battery chart, you can get more than that even starting from 75% battery.
What I wanted to say is that I think my battery won't last more than 4 hours with wifi on and some serious usage.. from my stats as I can see I've been using it 5 hours but I only had screen on and browsing the web. I think there will be a huge difference if I am watching a movie or playing a game.. I don't have the time to check it now but I will post my results in some days..
According to my previous battery graph do you see any problem or something less from what your Xoom battery holds? Does this battery drain seems normal to you?
jimgeroul said:
Hi guy, my wifi won't turn off when my Xoom is on sleep. I have set the settings of 'keep wifi on during sleep' both to 'NEVER' and 'ONLY WHEN PLUGGED' but nothing happens. Wifi stays on and keeps draining my battery life. I am running rooted with the latest version of nightly 62 and I've been having this issue since 55. I have reinstalled, flashed, factory reset, wiped my Xoom.
Is anyone else having this issue? What should I do?
Click to expand...
Click to collapse
I think you'll find it will stay on for about 15 minutes. There is some setting in a system database (using a sqlite editor) that can be changed to bring this down. I doubt Wifi is what's draining your battery. Are you synching email via activesync or running other stuff in the background?
I am only using my yahoo mail from the EMail app. I don't know if it uses activesync. I have set it to check emails every 30minutes.
wifi not turning off
Edit: I found the wifi sleep option in ICS. Google sure did a great job of hiding it. See attached picture for anyone else having wifi staying on during sleep issues.
So there are three options
Keep WiFi on during sleep
1) Always
2) Only when plugged in
3) Never
What option to set if i want Wifi to turn of after some time of when phone sleeps. Previously i had set the option to 15 minutes but that option is not available in ICS and i m having a hard time understanding how these options work on my sensation.
Can anyone explain what each of these options do ?
lazers378 said:
So there are three options
Keep WiFi on during sleep
1) Always
2) Only when plugged in
3) Never
What option to set if i want Wifi to turn of after some time of when phone sleeps. Previously i had set the option to 15 minutes but that option is not available in ICS and i m having a hard time understanding how these options work on my sensation.
Can anyone explain what each of these options do ?
Click to expand...
Click to collapse
My guess:
1) Always: WIFI always on no matter awake or asleep
2) Only when plugged in: WIFI always on only when plugged to power
3) Never: WIFI will be off if asleep (my current setting)
That was it
invidious07 said:
Edit: I found the wifi sleep option in ICS. Google sure did a great job of hiding it. See attached picture for anyone else having wifi staying on during sleep issues.
Click to expand...
Click to collapse
Thanks, I had not seen the option to turn wifi off during sleep.
--Doug
Bear in mind that (irritatingly) applications can seemingly change this setting.
cspiby said:
Bear in mind that (irritatingly) applications can seemingly change this setting.
Click to expand...
Click to collapse
For an app to change wifi sleep policy, it needs the WRITE_SETTINGS permission.
Can someone please help me figure out what's keeping my phone awake. As you can see my screen is only on very little but my phone is turning on quite a bit. This happens a lot unless I'm connected to wifibfor an extended amount of time.
krolla03 said:
Can someone please help me figure out what's keeping my phone awake. As you can see my screen is only on very little but my phone is turning on quite a bit. This happens a lot unless I'm connected to wifibfor an extended amount of time.
Click to expand...
Click to collapse
Probably Google Now and hotword detection. Also do you have WiFi "Scanning always available" on?
I have a related problem and didnt want to open another post. Not sure, maybe its better to do that? Dont want to steal topic.
Also, im sorry but i cannot provide battery tesing app results since im not allowed to root it...and as far as i know root is need to detect wakelocks on kitkat.
But i can provide an error report. Maybe that helps the pros. This happens on a fresh Nexus 5, without any apps besides the preinstalled gApps.
But not constantly, it didnt happen the last 2 days before. Every time it happens it is after a longer period of use. For example if i dont use it a lot and manage to come 2 days with the battery cycle and then charge the mobile, it happens after charging. But it never happened yet when i use device a lot and charge it more frequently. But that can be a coincidence too, dont let you irritate by that now. 4.4.4 Android. But sure is that both times, the only 2 times, it happened right after pull out the charger.
This is pic and error report:
Occurence 1
Occurence 2
https://drive.google.com/file/d/0Bw2HIVhZzrqQdnZ6UG4xYkxUY0E/edit?usp=sharing
Bugreport
https://drive.google.com/file/d/0Bw2HIVhZzrqQR1lId1lwNy0xOVk/edit?usp=sharing
Should i turn off the "keep WiFi on during sleep"
krolla03 said:
Should i turn off the "keep WiFi on during sleep"
Click to expand...
Click to collapse
Depends on what you want to use when screen is off. It just means that wifi is alwayys on. If not, if your phone goes into standby mode the 3G connection takes over. If you have no special data rate you can let wifi on. Your active time is pretty normal for a phone. If auto-sync is on and google now and all that, maybe facebook or whatsapp or even more. Newsapps that push all that does this.
What i would more worry about is your signal. Its very low and probably uses alot of battery. If i recheck your pic i would probably really better let Wifi on if your at home at least, so your 3G connection doesnt always have to work so much. Of course all this is only if you want to have internet...if you know you wont use it anyway, turn it off.
Until its not like me screen above i would not worry too much.
I have google now turned off it was doing way to many wakelocks. I do have hotword on but if I'm correct it only listens when the screen is on. I'm having an issue when the screen is off the phone still keep a waking up.
by the looks of it, its your apps and setup most likely. but its fairly normal, not that many wakeups/wakelocks as many others have. wakelocks are how our phones work, generally they are normal and expected. system apps/processes and user apps create them. only when the process thats associated with the wakeocks get stuck or run amuck, is when they are bad. and yours arent stuck, nor amuck.
simms22 said:
by the looks of it, its your apps and setup most likely. but its fairly normal, not that many wakeups/wakelocks as many others have. wakelocks are how our phones work, generally they are normal and expected. system apps/processes and user apps create them. only when the process thats associated with the wakeocks get stuck or run amuck, is when they are bad. and yours arent stuck, nor amuck.
Click to expand...
Click to collapse
Yeah I don't have many wakelocls but my phone is still awake 20% and the battery menu shows that the phone is waking up quite abit
krolla03 said:
Can someone please help me figure out what's keeping my phone awake. As you can see my screen is only on very little but my phone is turning on quite a bit. This happens a lot unless I'm connected to wifibfor an extended amount of time.
Click to expand...
Click to collapse
Low signal data, Google Now location based cards and Battery Saver or High accuracy mode. This combination gives me the same awake lines as seen here.
Technically having the WiFi on (or "always scanning") should help so it's not solely reliant on the weak data signal, but it doesn't seem to.
bblzd said:
Low signal data, Google Now location based cards and Battery Saver or High accuracy mode. This combination gives me the same awake lines as seen here.
Technically having the WiFi on (or "always scanning") should help so it's not solely reliant on the weak data signal, but it doesn't seem to.
Click to expand...
Click to collapse
I have google now turned off
krolla03 said:
Yeah I don't have many wakelocls but my phone is still awake 20% and the battery menu shows that the phone is waking up quite abit
Click to expand...
Click to collapse
being awake 20% of the time is not much. if you have apps that get notifications, check locations, or are just designed to occasionally check stuff, those are the one thatll cause most the wakelocks.
krolla03 said:
I have google now turned off
Click to expand...
Click to collapse
Guess it's just the WiFi locations in general. When on WiFi it'll rarely wake the phone only data. Google Search then shows more wake time so I figured it'd be Gnow.
krolla03 said:
I have google now turned off
Click to expand...
Click to collapse
See a comparison I did here, both with Battery Saver mode on. When using data the phone wakes constantly in its attempt to resolve location based information. In theory, having the WiFi chip enabled should help but it doesn't seem to do much.