FRX03...GPS...Sleep Mode... - Touch Pro2, Tilt 2 Android Development

I searched for Sleep Mode and GPS problems, and of course since those are very common words in most posts, I was having a hard time actually finding if anyone else has my problem.
I am running the most current kernel of FRX03. I have a sprint Rhod400. This problem pre-dates the current kernel, and I am not sure how long it has gone on, because I was having a lot more issues with sleep mode back in the earlier kernels anyway, as I think all people were. I am running with sleep mode set to 1.
Whenever I start a GPS program, usually it is foursquare, when I kill all the apps including foursquare using Advanced Task Killer, the phone will not go back to sleep. I have also looked at the "running services" setting and nothing is running besides Android. It seems to me the GPS stays active even though the GPS icon and all hints that it is actually running ceases to be found. I am guessing this is causing the phone not to go back to sleep. I have not really tested it out with navigation or maps to see if it happens there also, but if my memory serves me right it does.
Any suggestions on possible fixes?

Disable GPS. It's a known bug, which has already been filed on the bugtracker.
If GPS is enabled, phone will not sleep - and I don't mean enabled in that there's the GPS icon in your notification bar, I mean enabled (checked) in Location & Security. Uncheck it there, and the phone will sleep.

This is all interesting, because my RHOD400 seems to sleep just fine (much of the time) with GPS enabled!

gnnash said:
This is all interesting, because my RHOD400 seems to sleep just fine (much of the time) with GPS enabled!
Click to expand...
Click to collapse
Enable GPS, then open an app that uses it. Leave GPS enabled, but close the app. Now try to put your phone to sleep .
I've definitely seen intermittent issues with sleep and GPS. Not sure if it's every time, but I noticed when the phone doesn't sleep, I disable GPS in loc&sec and it'll go to sleep.
The only other serious sleep-related problems I've had is with rogue apps stealing processor cycles and keeping the phone awake.

I'm running NAND were pm.sleepmode = 1.
Yesterday I left my GPS enabled and I seemed to be getting better battery life? Maybe it is just a fluke... But you never know!
I will try it on my other phone running HARET.

Lmiller1708 said:
I'm running NAND were pm.sleepmode = 1.
Yesterday I left my GPS enabled and I seemed to be getting better battery life? Maybe it is just a fluke... But you never know!
I will try it on my other phone running HARET.
Click to expand...
Click to collapse
Well better battery life is probably related to usage.
However, that would be interesting if on NAND the GPS no sleep bug is non-existent...
I honestly haven't tested it in a while. No one has specifically looked at fixing it. I guess it's possible a commit happened to fix it - just usually doesn't work like that .

I use the 11/22/10 XDAndroid build from the .cab and the bug is present. LED doesn't turn from orange to green until I turn off GPS in settings and turn off the screen.
He probably thought that it was sleeping because the screen turned off (I used to think the same thing).

gallahad2000 said:
I use the 11/22/10 XDAndroid build from the .cab and the bug is present. LED doesn't turn from orange to green until I turn off GPS in settings and turn off the screen.
He probably thought that it was sleeping because the screen turned off (I used to think the same thing).
Click to expand...
Click to collapse
No I knew it wasn't sleeping. I know the purpose of the LED being on always(sleep mode debugging). I was just trying to figure out why, and if there was a fix, which there isn't. In the earlier version of XDAndroid builds it was more than just GPS that was causing sleep issues, so back then I didn't think much of it not going to sleep, as I couldn't get more than about 4 hours of battery life out of those builds anyway. Now I am getting at least 12 with heavy usage and way more than that with light usage. So things have improved indeed.

slickdaddy96 said:
No I knew it wasn't sleeping. I know the purpose of the LED being on always(sleep mode debugging). I was just trying to figure out why, and if there was a fix, which there isn't. In the earlier version of XDAndroid builds it was more than just GPS that was causing sleep issues, so back then I didn't think much of it not going to sleep, as I couldn't get more than about 4 hours of battery life out of those builds anyway. Now I am getting at least 12 with heavy usage and way more than that with light usage. So things have improved indeed.
Click to expand...
Click to collapse
Indeed! So that is the fix - disable GPS. It sucks, but it's on the punchlist of things to fix. Unfortunately I don't know of anyone looking at it specifically at the moment, but I'm sure it'll get addressed.

Related

Wifi prevents device from sleeping

So I've noticed that wifi prevents my device from sleeping thus going through battery much faster than it should. According to spare parts, the time without sleeping with wifi on is usually around 70% no matter the screen on time. With wifi off, the time without sleeping is close to the screen on time.
Does this happen to anybody else? Anybody know why this is or if there is anything that can be done about it? I suppose it is not such a big deal, I can just leave it off and only turn on when needed and I am definitely glad I figured out what it was that kept my device from sleeping. But if anybody knows why this happen and how to fix it, it would be greatly appreciated.
Thanks
Isn't there a setting which allows wifi to sleep under menu--advanced? I turned it to always on under 2.1 Eclair because it never seemed to wake up fast enough, but maybe under Froyo it's better.
WiFi sleep setting should always be set to "Never" on the Epic. Any other setting is known to cause system sleep issues.
mattallica76 said:
WiFi sleep setting should always be set to "Never" on the Epic. Any other setting is known to cause system sleep issues.
Click to expand...
Click to collapse
That is what mine is set to.

How to turn gps on automatically when opening navigation?

As for those who don't know. There is an app out there called tasker. It allows you to program all kinds of tasks and conditions.
I used it in froyo to turn on my gps automatically when I opened the navigation app. However in gingerbread tasker no longer works. I'm reading that in cyanogen gingerbread roms tasker can still enable and disable gps.
Does anyone know anything about modding EI22 so that tasker will work with gingerbread on our epics the way it does in the cyanogen gingerbread roms?
Is there a patch or a piece of code that can be taken from the cyanogen rom to allow this on different roms/kernels?
Possibly is there an alternative to using tasker to get the gps to turn on automatically when navigation/maps is opened?
-Wizzle
Just leave GPS enabled at all times. GPS won't activate until a program needs it, and won't consume battery life while it's sleeping.
Isira said:
Just leave GPS enabled at all times. GPS won't activate until a program needs it, and won't consume battery life while it's sleeping.
Click to expand...
Click to collapse
Cool. I kinda thought that, but I wasn't sure. I guess ill need to turn off location settings for all the apps I don't won't to access gps. I appreciate the info. Thank you.
-Wizzle
Isira said:
Just leave GPS enabled at all times. GPS won't activate until a program needs it, and won't consume battery life while it's sleeping.
Click to expand...
Click to collapse
To go with this, if the GPS icon is on the toolbar (generally a bullseye/crosshair looking icon), you're using GPS and therefore extra battery--on the flipside, if the GPS icon is gone from the toolbar, then GPS is in standby and not consuming battery.*
* I'm not entirely certain that it consumes no battery when in standby, but it's certainly much less than when it's active. As long as you keep an eye on which apps you allow to use it and when, the battery drain is negligible--At least until you use Navigation and forget to plug it in! Then you'll damn near be able to watch the battery icon visibly tick down, and might could cook an egg on the back of your phone, it gets pretty hot!
If you running ei22 stock, I can leave gps on all the time and don't need to worry about battery. But if you put in the gps fix, careful.
Sent from my SPH-D700 using XDA App
I hadn't noticed extra battery drain after flashing the GPS fix. I'll have to monitor that more carefully going forward...
jaytay said:
I hadn't noticed extra battery drain after flashing the GPS fix. I'll have to monitor that more carefully going forward...
Click to expand...
Click to collapse
The gps fix makes the phone constantly lock to all possible sats. Draining batts.
Sent from my SPH-D700 using Tapatalk

Battery - Wi-Fi and Awake always solid blue

So I've been trying to get more life out of my battery, I get decent now, but not the 18+ hours I've seen other people getting. I think the main problem here is, if I go view the Applications -> Battery Usage screen, the "Wi-Fi" and "Awake" bars are always full blue, even when the phone hasn't been touched in a couple hours.
Does anyone know what actually causes these to now sleep? Is it push email? Or some other setting I'm missing?
Thanks
RubenRybnik said:
So I've been trying to get more life out of my battery, I get decent now, but not the 18+ hours I've seen other people getting. I think the main problem here is, if I go view the Applications -> Battery Usage screen, the "Wi-Fi" and "Awake" bars are always full blue, even when the phone hasn't been touched in a couple hours.
Does anyone know what actually causes these to now sleep? Is it push email? Or some other setting I'm missing?
Thanks
Click to expand...
Click to collapse
Look and find out you can start by turning off wifi if not using it post your screen shots of battery use someone may help
Sent from my SPH-D710 using xda premium
RubenRybnik said:
So I've been trying to get more life out of my battery, I get decent now, but not the 18+ hours I've seen other people getting. I think the main problem here is, if I go view the Applications -> Battery Usage screen, the "Wi-Fi" and "Awake" bars are always full blue, even when the phone hasn't been touched in a couple hours.
Does anyone know what actually causes these to now sleep? Is it push email? Or some other setting I'm missing?
Thanks
Click to expand...
Click to collapse
Try Menu/Settings/Wireless and Network/Wi-Fi Settings. Then press Menu/Advanced/Wi-Fi- sleep policy.
Play with those settings. You are probably set to "Never". Folks have actually been reporting better battery life with this setting (powering on and shutting down the wifi eats up battery) You can play around with it to get your own results.
Hit thanks if this helps!
pojieps said:
Try Menu/Settings/Wireless and Network/Wi-Fi Settings. Then press Menu/Advanced/Wi-Fi- sleep policy.
Play with those settings. You are probably set to "Never". Folks have actually been reporting better battery life with this setting (powering on and shutting down the wifi eats up battery) You can play around with it to get your own results.
Hit thanks if this helps!
Click to expand...
Click to collapse
Ah...yes, it is set to never. So leaving it on "never" gets better results, say if you're at home and always have a wifi connection? Also, if the wi-fi is on, does that mean the device can't sleep I take it, that's what's keeping the device awake with screen off?
Thanks for the tip.
RubenRybnik said:
Ah...yes, it is set to never. So leaving it on "never" gets better results, say if you're at home and always have a wifi connection? Also, if the wi-fi is on, does that mean the device can't sleep I take it, that's what's keeping the device awake with screen off?
Thanks for the tip.
Click to expand...
Click to collapse
I've heard both sides to this argument, and frankly I don't think most people understand why changing it does, or in other cases does not help.
I suspect that the answer to your issue isn't going to be found here. Here's the theory:
- Setting wifi policy to "Sleep - Never" results in better battery life for some; it's likely because these individuals have a fairly low 3g signal, which tends to draw more battery when periodic updates/synchronization occurs (e.g., gmail, calendar, facebook, etc.). By leaving wifi Sleep set to never, the wifi (which THEORETICALLY uses less power than 3g) can do the work instead.
- Setting wifi policy to "Sleep - When Screen is Off" can result in better battery life for a number of reasons, many of the underlying issues being hard to identify. For example, if your router tends to send a lot of 'noise' and wake up your phone, having wi-fi disabled will prevent this. Location services in the OS - which you've probably permitted to 'help locate you faster' - even when you are NOT connected to a wifi network - will periodically ping wireless networks around you to help facilitate faster geolocation. This uses battery as well.
But don't confuse the generalities that have spawned from people's anecdotal situations with what could be a very different problem.
Was your phone primarily located in one location during most of the 'awake' period? If so, then it was probably connected to the same router most of that time. If so, it really shouldn't matter what the setting was for Advanced Wifi - the phone should still sleep.
If you turn off wi-fi on the device, and the device then sleeps, then you've narrowed the issue some, but that is not a solution, because what are you going to do, not use wifi?
You've got to dig deeper; your issue may be any of the following - rogue app that keeps a wakelock, rogue app that updates too frequently, wifi modem issue, router issue, OS issue, etc.
In short, you need to figure out what's keeping the phone awake. Get CPU Spy and Better Battery Stats to help you get insight into what's keeping the device awake.
Capp5050 said:
I've heard both sides to this argument, and frankly I don't think most people understand why changing it does, or in other cases does not help.
I suspect that the answer to your issue isn't going to be found here. Here's the theory:
- Setting wifi policy to "Sleep - Never" results in better battery life for some; it's likely because these individuals have a fairly low 3g signal, which tends to draw more battery when periodic updates/synchronization occurs (e.g., gmail, calendar, facebook, etc.). By leaving wifi Sleep set to never, the wifi (which THEORETICALLY uses less power than 3g) can do the work instead.
- Setting wifi policy to "Sleep - When Screen is Off" can result in better battery life for a number of reasons, many of the underlying issues being hard to identify. For example, if your router tends to send a lot of 'noise' and wake up your phone, having wi-fi disabled will prevent this. Location services in the OS - which you've probably permitted to 'help locate you faster' - even when you are NOT connected to a wifi network - will periodically ping wireless networks around you to help facilitate faster geolocation. This uses battery as well.
But don't confuse the generalities that have spawned from people's anecdotal situations with what could be a very different problem.
Was your phone primarily located in one location during most of the 'awake' period? If so, then it was probably connected to the same router most of that time. If so, it really shouldn't matter what the setting was for Advanced Wifi - the phone should still sleep.
If you turn off wi-fi on the device, and the device then sleeps, then you've narrowed the issue some, but that is not a solution, because what are you going to do, not use wifi?
You've got to dig deeper; your issue may be any of the following - rogue app that keeps a wakelock, rogue app that updates too frequently, wifi modem issue, router issue, OS issue, etc.
In short, you need to figure out what's keeping the phone awake. Get CPU Spy and Better Battery Stats to help you get insight into what's keeping the device awake.
Click to expand...
Click to collapse
Thank you for that very informative post. My phone was on my desk all day today( worked from home ) and wi-fi is set to always on, and it never slept, not even once.
I'll try disabling wi-fi( should have done this earlier to be honest and checked ) and then I'll download those apps, I just got Badass Battery Monitor, I'll check out the two you recommended as well. Thanks for the info!
Your phone should still go into deep sleep with wifi on. If it doesn't then you have something else wakelocking your phone. However, if wifi is set to never sleep, and wifi is enabled, the bar on the battery chart will always be solid blue.
So just installed CPU Spy, it looks like IM+ is the biggest user of wakelocks. I like to always be signed in to my accounts, but not at such a huge cost of battery, does anyone know of a better multi IM client that will push updates to you? I used to have IM+ on the iPhone( yea I know, just switched two months ago, and never looking back ) and the push on it worked great. The 'push' IM+ says it has is awful, most of the time I never get my IMs sent to me at all.
Also have skype signed on all the time, not sure if that is wakelock'ing anything, I'll have to keep an eye on it, it didn't show up on CPU Spy.
Try IMO, free from the Android Market. Its a multi-IM client that combines most common clients including Skype. I've used it. It creates some wakelocks, but not sufficient to wake the phone. I don't use IM very often so I'd be curious to hear how it works for you.
Capp5050 said:
Try IMO, free from the Android Market. Its a multi-IM client that combines most common clients including Skype. I've used it. It creates some wakelocks, but not sufficient to wake the phone. I don't use IM very often so I'd be curious to hear how it works for you.
Click to expand...
Click to collapse
Thanks ... Giving it a try today, I'll let you know how it goes.
Capp5050 said:
Try IMO, free from the Android Market. Its a multi-IM client that combines most common clients including Skype. I've used it. It creates some wakelocks, but not sufficient to wake the phone. I don't use IM very often so I'd be curious to hear how it works for you.
Click to expand...
Click to collapse
So been trying IMO the past couple days. Seems much better than IM+. Haven't seen any disconnects, I get my IMs about 30sec - 1min after the computer gets them, which is fine, and the wake-locking is extremely minimal. IM+ was awful with the wake-locking.
So that clears up the Always awake issue, flashed Blazer 3.8 last night, so can't comment on battery too much yet, also calibrating today.
RubenRybnik said:
So been trying IMO the past couple days. Seems much better than IM+. Haven't seen any disconnects, I get my IMs about 30sec - 1min after the computer gets them, which is fine, and the wake-locking is extremely minimal. IM+ was awful with the wake-locking.
So that clears up the Always awake issue, flashed Blazer 3.8 last night, so can't comment on battery too much yet, also calibrating today.
Click to expand...
Click to collapse
Thanks for the feedback, glad to hear it helped, and I now feel a little more confident leaving my IM 'on' more often.

Galaxy Nexus BTLowPower keeps running when bluetooth is off

Hello,
I’m looking for help with a rather strange problem. I’m getting a lot of awake time in Android OS. I installed BetterBatteryStats and noticed it was the service BTLowPower that was doing a lot of kernel wakelocks.
I turned bluetooth off a couple of days (and have rebooted in the meantime even) but still the top service in kernel wakelocks is BTLowPower by a very large margin ... how can this be if bluetooth is turned off ?
Stats are in BetterBatteryStats Kernel Wakelocks
Unplugged 12h47min.
BTLowPower 9h33min, 74.7%
I've attached a screenshot
I have a Galaxy Nexus which is running stock Jellybean.
Thanks in advance for any advice !
Same here.
Please help.
My battery drains out because of this in 12h and 1.5h of screentime
Sent from my Galaxy Nexus
bat0nas said:
Same here.
Please help.
My battery drains out because of this in 12h and 1.5h of screentime
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Do you guys have other Bluetooth devices around? I have a Motorola S805 headset as well as a cheapo BT2.0 dongle from DealExtreme.
I typically don't have the headset turned on unless it's connected to the computer, but what I'm finding is that if I just leave my phone with the dongle turned off and the headset turned off then I don't get the BTLowPower battery drain.
If I turn the dongle on, and turn on the headset then I typically get the BTLowPower battery drain in my GNex. I have to reboot the phone for it to go away. I'm not really sure the exact sequence of events to cause the drain to occur, but I feel like it's definitely related to turning on and off my S805 headset or being around the dongle.
There might be other bluetooth devices around (such as phones of a colleague or something), however the bluetooth on my phone is turned OFF and I still keep getting the BTLowPower in kernel wakelocks Today for example it kept my phone awake for over 10 hours
Anyone ? I keep having this problem ...
Same problem here. BTLowPower keeps draining my battery.
I have bluetooth and Jabra headset off...
It usually happends when I unplug my GNex from charging.
Please help....
-----------
sorry for my bad english.
Same issue
I'm running a Toro Gnex with the Vanir AOSP ROM. It's buttery smooth, and I've had no problems at all, other than this specific kernel wakelock. Same scenario as the OP.
If anyone finds out more about it, I would be grateful!
Airplane Mode
NicholasFarseer said:
I'm running a Toro Gnex with the Vanir AOSP ROM. It's buttery smooth, and I've had no problems at all, other than this specific kernel wakelock. Same scenario as the OP.
If anyone finds out more about it, I would be grateful!
Click to expand...
Click to collapse
I've been reading about this all morning. I run Automateit Pro and have it go into airplane mode at night. After losing 25% battery overnight, the investigation began. BTlowpower was keeping the phone awake. It looks like airplane mode can be the culprit, possibly in combination with Wifi set to always on. I am set up to turn Bluetooth off a couple of minutes after going into airplane model tonight, I'll follow up with my findings over the weekend.
bigknowz said:
I've been reading about this all morning. I run Automateit Pro and have it go into airplane mode at night. After losing 25% battery overnight, the investigation began. BTlowpower was keeping the phone awake. It looks like airplane mode can be the culprit, possibly in combination with Wifi set to always on. I am set up to turn Bluetooth off a couple of minutes after going into airplane model tonight, I'll follow up with my findings over the weekend.
Click to expand...
Click to collapse
Great, keep us posted. I also turn airplane mode on at night, but my Bluetooth is always off.
Did anyone try to hard reset their phone ? I called Samsung but I got the standard reply to hard reset my phone, I haven't tried it yet because I doubt it would work and I have a lot of authenticators on it and it's a bit of a hassle. But if any of you guys already tried it I would love to hear if it worked ! Thanks !
BTlowpower solved
Darthy1980 said:
Great, keep us posted. I also turn airplane mode on at night, but my Bluetooth is always off.
Did anyone try to hard reset their phone ? I called Samsung but I got the standard reply to hard reset my phone, I haven't tried it yet because I doubt it would work and I have a lot of authenticators on it and it's a bit of a hassle. But if any of you guys already tried it I would love to hear if it worked ! Thanks !
Click to expand...
Click to collapse
BTlowpower issue solved by turning Bluetooth on and then off again after Airplane mode activated. However, that caused another issue - modem_usb_gpio_wake to crush my battery. Doing more testing today to resolve that one - will post again when that one is solved.
BTlowpower and modem_usb_gpio_wake resolution
bigknowz said:
BTlowpower issue solved by turning Bluetooth on and then off again after Airplane mode activated. However, that caused another issue - modem usb gpio wake to crush my battery. Doing more testing today to resolve that one - will post again when that one is solved.
Click to expand...
Click to collapse
After testing different configurations this weekend, it looks like turning off sync causes these 2 kernel wakelocks. I tested 2 states: Airplane mode + no Wi-fi, and no data (no Wi-fi + no Wireless data, voice signal on). In either instance, the wakelock occurs with sync off. Leaving sync on finally achieved the low overnight battery drain (< 5%) I've been looking for. Regardless, to avoid battery drain after shutting data off:
Turn Bluetooth On and then Off again. If you are using airplane mode (this may be overkill), also turn Wireless Data On and then Off again.
Let me know if this helps.
bigknowz said:
After testing different configurations this weekend, it looks like turning off sync causes these 2 kernel wakelocks. I tested 2 states: Airplane mode + no Wi-fi, and no data (no Wi-fi + no Wireless data, voice signal on). In either instance, the wakelock occurs with sync off. Leaving sync on finally achieved the low overnight battery drain (< 5%) I've been looking for. Regardless, to avoid battery drain after shutting data off:
Turn Bluetooth On and then Off again. If you are using airplane mode (this may be overkill), also turn Wireless Data On and then Off again.
Let me know if this helps.
Click to expand...
Click to collapse
Hi thanks for posting !
Just to make sure I understand, you say the solution is to turn bluetooth on and off again after turning off airplane mode ?
Just for completeness sake, this is my situation: overnight I turn on airplane mode and I sometimes have the wakelock draining my battery during the day (but not always). Draining doesn't occur during the night as while it's on airplane mode I'm also charging it.
I will try every morning when I turn airplane mode off to turn bluetooth on and off again afterwards for a few days and see if that helps. Let me know if I misunderstood.
Thanks,
Jorn
Just found a kind of workaround at another thread, this might be helpful (if it works ).
It doesn't, the drain still occurs >_<
gwindlord said:
Just found a kind of workaround at another thread, this might be helpful (if it works ).
It doesn't, the drain still occurs >_<
Click to expand...
Click to collapse
I actually have a workaround that works for me. During the night I turn off my phone instead of using airplane mode. I no longer have BTLowPower and I also am able to successfully connect every time very quickly with bluetooth to my carkit, which previously was very flaky. It's definitely a standard issue though with the galaxy nexus, I can reproduce it on 2 other galaxy nexi as well.
I just installed BetterBatteryStats two days ago, and I'm seeing the exact same results. I can't help but wonder if the issue is at all related to the kernel I'm using (LeanKernel v4.7), or if perhaps a resolution to the problem could be solved by a modification within the kernel code. The ROM I'm running is BAMF Paradigm v2.4, which is based on AOSP v4.1.2. Like the rest of you, I'd really like to get this fixed.
trestevenson said:
I just installed BetterBatteryStats two days ago, and I'm seeing the exact same results. I can't help but wonder if the issue is at all related to the kernel I'm using (LeanKernel v4.7), or if perhaps a resolution to the problem could be solved by a modification within the kernel code. The ROM I'm running is BAMF Paradigm v2.4, which is based on AOSP v4.1.2. Like the rest of you, I'd really like to get this fixed.
Click to expand...
Click to collapse
Anyone have any updates on this? My GNex just started doing this randomly after being stable for a long time.
the7thson said:
Anyone have any updates on this? My GNex just started doing this randomly after being stable for a long time.
Click to expand...
Click to collapse
After three days or so, the issue seemed to go away on its own. I didn't make any changes to any of the apps I was running, nor did I update the kernel. I really have no clue what took care of it for me, but I haven't seen it since.
trestevenson said:
After three days or so, the issue seemed to go away on its own. I didn't make any changes to any of the apps I was running, nor did I update the kernel. I really have no clue what took care of it for me, but I haven't seen it since.
Click to expand...
Click to collapse
Weird, mine went away as well after toggling BT a couple times. Guess we'll file this one under unsolved mysteries

I don't think Doze mode is working on my phone...

Hi there,
Please look at the attached screenshot. The red area shows the time I was sleeping. The phone was stationery all night long. It shouldn't decrease like that, right? It should show something more horizontal if Doze is actually working, right? I believe I read something about this somewhere on these forums.
Yes, I do have "WiFi: Always On" enabled. Is that the problem?
My thinking is that I want WiFi always turned on, but I also want Doze. Meaning, if the phone is stationery, not doing anything, it should kick Doze in (which will periodically check for stuff, temporarily turning on/off the WiFi). Is this thinking wrong? If I have "WiFi: Always On" disabled, will Doze work properly and I'll still be notified of any push notifications and whatnot?
What am I missing here?
First off, there are no screenshots. Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms. How steong is the network connection? Maybe with a weak connection that is what is draining battery.
schmeggy929 said:
First off, there are no screenshots. Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms. How steong is the network connection? Maybe with a weak connection that is what is draining battery.
Click to expand...
Click to collapse
Sorry, just keep forgetting attachments... Please check the first post again. No, I don't think my connection at home is a weak one. I am connected to a 5GHz network instead of 2.4GHz one. Not sure if that's relevant.
Nazgulled said:
Sorry, just keep forgetting attachments... Please check the first post again. No, I don't think my connection at home is a weak one. I am connected to a 5GHz network instead of 2.4GHz one. Not sure if that's relevant.
Click to expand...
Click to collapse
i think wifi on does prevent from doze and gives wake locks for many... tried by turning off wifi for a night to narrow down the issue?
i might be wrong here but that was afeedback from many users the battery leak/wake locks with wifi always on
SacredDeviL666 said:
i think wifi on does prevent from doze and gives wake locks for many... tried by turning off wifi for a night to narrow down the issue?
Click to expand...
Click to collapse
Not yet, I'll have to try that... However, it doesn't make much sense to me to have it off. I mean, if it's off, even in the doze open windows, wifi will be off, and I won't get any notifications at all unless I turn the screen on. Not a very good user experience. But I'll test it nonetheless to narrow down possible issues.
You may be suffering from the bug discussed here: http://forum.xda-developers.com/htc-10/how-to/wifi-constant-suspend-resume-leading-to-t3392562
At the last page is a kernel that has a fix that seems to be working.
Try out GSam Battery Monitor for some stats.
tkoreaper said:
You may be suffering from the bug discussed here: http://forum.xda-developers.com/htc-10/how-to/wifi-constant-suspend-resume-leading-to-t3392562
At the last page is a kernel that has a fix that seems to be working.
Click to expand...
Click to collapse
Based on your post these seem are most likely the same issue. I just flashed the fix from that thread and it helped TONS. It is still being tweaked before it goes to elementalx officially, but it is working great for me so far!
Yeah, it might be that issue, or not, I'm not really sure. But I used the GSam Battery Monitor app suggested above and I don't think the problem is Doze.
I used that app and start monitoring just before I went to sleep. I've also used ForceDoze just to be sure Doze kicks in (this app will force Doze immediately on screen off instead of just stationery and waiting 30mins). Look at the screenshots. Something is not right, my phone doesn't deep sleep, it's awake all the time.
schmeggy929 said:
..... Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms.
Click to expand...
Click to collapse
What? Doze is supposed to remove wifi Scans?
If you take a look at the blue "WiFi Scan" line you see the same pause between intervals before doze kicks in as while doze is active.
Doze Mode hasn't really helped me getting less Wakelocks or less battery drain on this device. I just get the feeling there are way to many system/kernel related wakelocks due to HTC's crappy software which ignore doze mode
Oh yeah, the Wifi signal strength was really bad there.... simply because the phone decided NOT to switch to the stronger Network with the same SSID.... well thank you android....
I've used Greenify (which has a notification for Doze mode statistics) and other battery stats apps and I've realized that Doze is in fact working... So, my battery problems are something else.
I just don't get that flat battery graph when doze mode is active, but it must be due to something else...
Thanks everyone that pitched in Save​
Nazgulled said:
I've used Greenify (which has a notification for Doze mode statistics) and other battery stats apps and I've realized that Doze is in fact working... So, my battery problems are something else.
I just don't get that flat battery graph when doze mode is active, but it must be due to something else...
Thanks everyone that pitched in Save​
Click to expand...
Click to collapse
To me it look as though a rouge app could be the culprit.
Have you tried a removing all apps, or doing a clean flash of whatever ROM your on, and if not rooted, an RUU flash and then see if the phone works as should, then this sucks, but you install apps 1 but 1 until you find out which on is the bad apple.
Your phone is def being held awake though by that Gsam battery chart.
I haven't done that and I'm not going to. I don't have time for debugging this issue like that, I need a working phone with the apps I use.
Not trying to sound rude or anything, I know you're just trying to help and I appreciate that. But I just can't do what you're suggesting.
Anyway, shouldn't some battery app help with that. I'm now using BetterBatteryStats. If there's a rogue app, that should allow me to pinpoint the sucker...

Categories

Resources