''Delay'' function prevents the phone entering in deep sleep - Tasker Tips & Tricks

I have two profiles that works only when wifi is not connected.
Profile 1: when I turn off the screen, wait 3 minutes, then disabile mobile data. Then, re-enable mobile data for 1 minutes every 10 minutes (for notifications)
Profile 2: enable mobile data when I turn on the screen
I made these profiles to save battery but now I waste even more battery because I saw through Better Battery Stats that Tasker (in particular the ''delay'' tasks in Profile 1) keeps my device awake, preventing it to going into deep sleep.
Is there any option or any workaround to avoid that the phone stays awake? For example, in Automate the ''delay'' block have the option to check the time only when the device is awoken by other applications. Any similar option in Tasker?

Bcl2 said:
I have two profiles that works only when wifi is not connected.
Profile 1: when I turn off the screen, wait 3 minutes, then disabile mobile data. Then, re-enable mobile data for 1 minutes every 10 minutes (for notifications)
Profile 2: enable mobile data when I turn on the screen
I made these profiles to save battery but now I waste even more battery because I saw through Better Battery Stats that Tasker (in particular the ''delay'' tasks in Profile 1) keeps my device awake, preventing it to going into deep sleep.
Is there any option or any workaround to avoid that the phone stays awake? For example, in Automate the ''delay'' block have the option to check the time only when the device is awoken by other applications. Any similar option in Tasker?
Click to expand...
Click to collapse
Divide your profile 1 to 2 separate profiles. 1. event display off, task:wait/mobile data off and 2. time context fom time/repeat/to time, task: mobile data on + wait time, That 1 minute every ten minutes definitely causes extra battery drain! The final result may be the same as if the mobile data would be all the time on.

taisto said:
Divide your profile 1 to 2 separate profiles. 1. event display off, task:wait/mobile data off and 2. time context fom time/repeat/to time, task: mobile data on + wait time, That 1 minute every ten minutes definitely causes extra battery drain! The final result may be the same as if the mobile data would be all the time on.
Click to expand...
Click to collapse
First, my apologize for using the wrong term, in fact I meant "wait", not "delay" (I don't use tasker in english).
As you suggested now I have 3 profiles:
1- when screen is turned off, wait 3 minutes and turn off data
2-turn on data, wait 1 minute, turn off data, wait 10 minutes, ping (repeat)
3-when screen is on turn on data (the second profile will not run when the screen is on because of some variables that I set up)
I made some tests disabling/enabling profile 1 or 2. I have found that the "wait" functions of the second profile (1 minute and 10 minutes) wake my device only for a few seconds, and this is acceptable. But the "wait" function of the first profile keep awake my device exactly for 3 minutes every time that I turn off the screen. Can't figure out why.

Related

Is there a background data killer for android?

hi all, as you probably know, cell standby (data background while phone is standby) takes ALOTTTT of battery so i want to know if there is an app to auto kill data network when i power off the phone (to avoid cell standby) and power on again auto when power on the phone from standby
juicedefender
You mean Juicedefender and such (if I remember correctly, there is at least 1 more app that does the same thing), and IMO - it completely defeats the whole purpose of modern mobile OS. If I didn't want to be connected to the network wherever I go, I wouldn't be buying a smartphone.
The battery lasts a day easily, with or without data.
frankmust said:
hi all, as you probably know, cell standby (data background while phone is standby) takes ALOTTTT of battery so i want to know if there is an app to auto kill data network when i power off the phone (to avoid cell standby) and power on again auto when power on the phone from standby
Click to expand...
Click to collapse
if you want to completely disable data, the app youre looking for IS juicedefender - the free version disables data completely and re-enables it every 15 minutes to get any notifications.
I would also suggest trying:
http://forum.xda-developers.com/showthread.php?t=739530
which switches 3g to edge (and uses less battery) after a specified amount of time in standby

Battery savings guide

Hello, i use Dalingrin's kernel (6/30) and CM7 nightlies (121 currently).
Sometimes deep sleep is nice for my battery, sometimes it doesn't save energy.
It's life but i need a few days between battery charging.
so i decided to add a few workarounds, here they are:
1. Airplane mode everytime + wifi on/off when i need it. Only ten seconds to activate/deactivate with CM7 status bar.
2. Battery widget monitor: it enables history of battery consuming. Very good to act that deep sleep is effective or not.
3. uninstall applications which sychronize when nook should be sleeping: K9, DSPmanager, hotapps, appbrainz.
3. Advanced task killer pro: Crazy mode when screen is off. Very nice for last applications.
Of course, you are welcome to comment those tricks and to add some
I guess it depends on use, but I'm on day 3 on a charge, running at 47%. I just have the screen at 15% most of the time, and I don't disable sync. I mostly do reader, email, internet, so that might be part of my success.
sebanoel said:
Hello, i use Dalingrin's kernel (6/30) and CM7 nightlies (121 currently).
Sometimes deep sleep is nice for my battery, sometimes it doesn't save energy.
It's life but i need a few days between battery charging.
so i decided to add a few workarounds, here they are:
1. Airplane mode everytime + wifi on/off when i need it. Only ten seconds to activate/deactivate with CM7 status bar.
2. Battery widget monitor: it enables history of battery consuming. Very good to act that deep sleep is effective or not.
3. uninstall applications which sychronize when nook should be sleeping: K9, DSPmanager, hotapps, appbrainz.
3. Advanced task killer pro: Crazy mode when screen is off. Very nice for last applications.
Of course, you are welcome to comment those tricks and to add some
Click to expand...
Click to collapse
1 is probably not a good idea, since sometimes Airplane mode sticks.
2 has nothing to do with saving battery, but okay..
3a does nothing if there is no network connection (assuming sanely written programs)
3b is stupid and shouldn't ever be used.
You want to save battery? Turn off wifi when the screen goes off. You can do this automatically with Setting Profile Lite or Tasker, probably some others. I've found that the wifi sleep setting doesn't do anything for me, I can continue to ping the NC for 10+ minutes after the screen goes off so clearly the wifi is still up.
And watch Spare Parts partial wake locks and see if you have any misbehaving apps. I find that Maps with Latitude enabled misbehaves without a network connection and constantly is trying to update or something, so I cleared data on Maps to get out of Latitude on that device. CPUSpy will also show you how much deep sleep is ongoing.
The NC is going to use at least 10%/hr at low backlight doing simple tasks, I've seen it use up to 25% overclocked playing games.
While asleep it uses about 1% every 3-4 hours. Could probably do even better if you don't have a boatload of apps and widgets like I do.
Grab "Where's my Droid's Power" or whatever the application is called, and see where all the power is going.
khaytsus said:
1 is probably not a good idea, since sometimes Airplane mode sticks.
2 has nothing to do with saving battery, but okay..
3a does nothing if there is no network connection (assuming sanely written programs)
3b is stupid and shouldn't ever be used.
You want to save battery? Turn off wifi when the screen goes off. You can do this automatically with Setting Profile Lite or Tasker, probably some others. I've found that the wifi sleep setting doesn't do anything for me, I can continue to ping the NC for 10+ minutes after the screen goes off so clearly the wifi is still up.
And watch Spare Parts partial wake locks and see if you have any misbehaving apps. I find that Maps with Latitude enabled misbehaves without a network connection and constantly is trying to update or something, so I cleared data on Maps to get out of Latitude on that device. CPUSpy will also show you how much deep sleep is ongoing.
The NC is going to use at least 10%/hr at low backlight doing simple tasks, I've seen it use up to 25% overclocked playing games.
While asleep it uses about 1% every 3-4 hours. Could probably do even better if you don't have a boatload of apps and widgets like I do.
Click to expand...
Click to collapse
He said the battery widget is to see if it is asleep, and see what the consumption is like.
Hello,
You are right about battery logging.
i have to test the two applications you mention both:
1. "And watch Spare Parts partial wake locks and see if you have any misbehaving app"
2. "Where's my droid power".

wow turning off data and WiFi really helps battery life

I've always had my data on in all my phones.. .I got fed up of the gnote's battery life so I decided to turn it off when I was not using it and God I was surprised, I watched a whole movie and played that train game and I lost only about 15 -20% of my juice.....
so today I turned off my data and WiFi before i went to sleep and when I woke up 6 hours later I had only lost 1%
that has never happened before...
Uploaded with ImageShack.us
wifi has been known to be a great battery hogger on the note, interestingly enough it should be the other way around
as for the data, the phone works extra hard in lower signal areas to boost reception, hence drinking juice
I always disable wifi and data when I'm not using them.
I use the Go Power Master widget to switch between different profiles I have set up for wifi, mobile data, wifi with autosynch and no data.
There are other widgets that do the same thing. Just saves you having to toggle each setting separately.
If I stay connected with wifi, it's not too bad, but if I move out of a wifi area, and leave it on, it seems to drain battery faster (I'm guessing because it keeps rescanning for connections?).
I have somwhere describe this
Any way you will find this solutione better.
Use phoneweaver, you can describe the time, it will stop data at defned time, as well switch on too at your describe time. So if you set data off time just after your time to sleep, N switch on time just b4 your wake up time, you even need not to bother do do it manually
same way this can be triggered by location too, you can switch on/off data/wifi at perticular place.
And there are lot action you can set.
agree to rechlum if you are connected to wi-fi is consume less battery thn you are connected to net with 3G, N keep wifi open with connected to data is draining battery too fast.
could it all mean that I wasted a lot of time trying to reduce my battery consumption with WiFi on?
so far by disabling the unnecessary apps strartups (Autorun Manager) and turning off non-essential syncs I was able to get down to ca. 7mA (Battery Monitor Widget estimates) in standby mode, BUT only when WiFi is off.
When it's on, the power consumption stays at ca. 60mA in standby mode, which is something I cannot comprehed - using CyanogenMod on my previous device I was able to stay below 15mA regardless of WiFi state.
Turning off data is pretty stupid. I don`t about you but my phone is actively working in the background.
checking email every 5mins
gmail syncing
facebook notifications
twiter syncing
Linkedin updates
ebay notification
3G data monitoring
weather updates every 30mins
Latitude monitoring
stocks updates
sports scores updates every 1min with your choice of espn, score mobile, fox sports...
bottom line is gotta use a smartphone as a smartphone. With data turned off notifications are not happening.
just_visiting said:
Turning off data is pretty stupid. I don`t about you but my phone is actively working in the background.
Click to expand...
Click to collapse
If I know I'm not going to be looking at my phone for a while, it's not much use wasting battery having wifi or 3G turned on.
I'm a teacher, so I often have 3-4 hour blocks of time that I won't touch my phone.
I just turn wifi or data back on when I'm ready and my updates still come through when I'm ready to view them. Any updates that might have come through if I had left data enabled, I wouldn't have seen any earlier...
If I'm watching a movie I'll often switch off data because I know I won't be looking at my phone for 2 hours.
I don't see how conserving the battery is "stupid".
One could argue that leaving data enabled when you aren't in a position to use it is "stupid"...
Just out of curiosity, is there some pre-made application that allows me to turn data and wifi off after 5-10 minutes after then screen has been turned off and then turn both back on when the screen is turned on? Or should I just code it myself?
WereCatf said:
Just out of curiosity, is there some pre-made application that allows me to turn data and wifi off after 5-10 minutes after then screen has been turned off and then turn both back on when the screen is turned on? Or should I just code it myself?
Click to expand...
Click to collapse
there's an option in Settings / WiFi Settings / Menu key to turn WiFi off when screen is off,
besides that there was one to do exactly what you need, but cannot remeber it's name, if you don't find anything satisfactory then try Lama - it has quite a large range of location-based triggers
Leaving wifi on when you're not using is awful. It completely prevents the phone from going to deep sleep.
I get awesome battery life simply by leaving wifi on only when the screen is on. My battery ranges from 18 hours to 1 day and 23 hours, depending on my use (temple run )
WereCatf said:
Just out of curiosity, is there some pre-made application that allows me to turn data and wifi off after 5-10 minutes after then screen has been turned off and then turn both back on when the screen is turned on? Or should I just code it myself?
Click to expand...
Click to collapse
Greenpower will do exactly that. You can set it up so it turns off wifi and 3G/data after a set amount of time after turning off the screen and turn it back on when the screen is turned on. You can have it sync once every n minutes/hours so you still get Whatsapp, emails and other stuff without having to turn on the screen.
It's working like a charm for me, before I used to lose 15 to 20% every night, now with the same usage I've only lost 30% in 67 hours.
just_visiting said:
Turning off data is pretty stupid. I don`t about you but my phone is actively working in the background.
checking email every 5mins
gmail syncing
facebook notifications
twiter syncing
Linkedin updates
ebay notification
3G data monitoring
weather updates every 30mins
Latitude monitoring
stocks updates
sports scores updates every 1min with your choice of espn, score mobile, fox sports...
bottom line is gotta use a smartphone as a smartphone. With data turned off notifications are not happening.
Click to expand...
Click to collapse
Everybody has different needs. If you need all this and to be aware of what i going on in your no-doubt busy social life, then you can do this.
On the other hand, it is utterly useless if you are not going to pick up the phone and see what the weather is (instead of looking out the window) and who is doing what on Facebook (or writing things in Facebook instead of actually doing things) as soon as it beeps at you. In those situations, turning of data will save battery with no loss of information.
Personally I love a 'pull' digital life, rather than a 'push' one. I have far too much to be getting on with to be constantly hassled.
Of course, in actually writing this, I am proving myself completely wrong, but what the hey?
I only care about my Google+ account and my e-mails, everything else matters only when I personally decide to check it. As such I've set my phone to turn data back on every 30 minutes, sync e-mails and Google+, and then turn data back off again.
I use Timeriffic (free from Market/Play) to disable Wifi/Data etc based on time of day.
I don't really care about emails when I'm sleeping!
A must have application IMO.

LG G2 clock keeps running behind when turned OFF.

Hello!
just notified, LG G2 clock keeps running behind.
after some watching I found out - this happens when phone is turned OFF.
it is about 15 min behind after 8 hour of night rest.
EDIT:
oops!! not 15 minute but + 1 whole day behind!
So, here are steps to check Clock failure:
1. first you should ensure clock is correct. TURN ON "Automatic date & time" and connect to internet network. also, look in browser for correct time on web-sites like "timeanddate.com".
2. Now UNCHECK "Automatic date & time" and at night, before you go to sleep, turn off phone.
3. at morning, turn phone ON & check TIME AND DATE on your phone.
as it looks, time I see on new boot is time of previous boot.
only actual thing I found is this line in dmesg
<6>[ 5.669406 / 03-22 12:48:23.709] alarm_set_rtc: Failed to set RTC, time will be lost on reboot

Best Possible Battery Saver App - HTC One M7?

Dear all HTC One users,
I know there are tons of battery saver apps on Google Play and each one of them sounds to be greater or better than the rest however I have tried a few and I don't think there is any single one of them which hardly does anything or makes a difference as compared to not having one but still I would like to know which ones are worth giving a try and possibly one that's also worth keeping in the device, an app that doesn't drain battery either.
Please post your suggestions including the name of the apps and also give your reasoning as to why you prefer that app and what about it you like.
singh_harman said:
Dear all HTC One users,
I know there are tons of battery saver apps on Google Play and each one of them sounds to be greater or better than the rest however I have tried a few and I don't think there is any single one of them which hardly does anything or makes a difference as compared to not having one but still I would like to know which ones are worth giving a try and possibly one that's also worth keeping in the device, an app that doesn't drain battery either.
Please post your suggestions including the name of the apps and also give your reasoning as to why you prefer that app and what about it you like.
Click to expand...
Click to collapse
There are many options to save some power. I'm saving maybe 15% battery on a typical day of use when using this setup:
Amplify (Xposed framework + root required) to block (or change the refresh rates) of some wakelocks
ElementalX kernel to undervolt the CPUs
Tasker + Secure Settings + Autosync to make a power saver profile
e.g:
When screen is turned off = turn off wifi, mobile data, underclock the cpus, turn off bluetooth (only if not connected to a device). Turn on mobile data or wifi once every 30 mins for 1 min and launch Autosync to sync the phone (facebook, mails etc)
Using HTC Power Saver mode
alray said:
There are many options to save some power. I'm saving maybe 15% battery on a typical day of use when using this setup:
Amplify (Xposed framework + root required) to block (or change the refresh rates) of some wakelocks
ElementalX kernel to undervolt the CPUs
Tasker + Secure Settings + Autosync to make a power saver profile
e.g:
When screen is turned off = turn off wifi, mobile data, underclock the cpus, turn off bluetooth (only if not connected to a device). Turn on mobile data or wifi once every 30 mins for 1 min and launch Autosync to sync the phone (facebook, mails etc)
Using HTC Power Saver mode
Click to expand...
Click to collapse
Thanks for your reply,
However I only want suggestions based on unrooted device.
Thanks.
singh_harman said:
Thanks for your reply,
However I only want suggestions based on unrooted device.
Thanks.
Click to expand...
Click to collapse
I remember when I had my HTC One unrooted, the battery life was horrible no matter what apps I used, n that was on KK, I can only imagine on LP. Take it from me I tried everything there is no app that will make a very big or substantial difference in battery on this phone if you are not rooted. Once u r rooted use amplify elementalx kernel greenify and power nap... Now I get almost triple the amount of battery I could ever get
alray said:
There are many options to save some power. I'm saving maybe 15% battery on a typical day of use when using this setup:
Amplify (Xposed framework + root required) to block (or change the refresh rates) of some wakelocks
ElementalX kernel to undervolt the CPUs
Tasker + Secure Settings + Autosync to make a power saver profile
e.g:
When screen is turned off = turn off wifi, mobile data, underclock the cpus, turn off bluetooth (only if not connected to a device). Turn on mobile data or wifi once every 30 mins for 1 min and launch Autosync to sync the phone (facebook, mails etc)
Using HTC Power Saver mode
Click to expand...
Click to collapse
Would love a tutorial on "Tasker + Secure Settings + Autosync" setup you have!
puner89 said:
Would love a tutorial on "Tasker + Secure Settings + Autosync" setup you have!
Click to expand...
Click to collapse
Create a new profile in tasker based on screen state --> off
add a new task for that profile.
now create these actions in the profile:
wifi off
mobile data off
HTC energy saver on (requires secure settings)
set core 0-1-2-3 to your desired governor and max frequency (requires a custom kernel) (don't be to aggressive on the underclock or your phone will lag when turned back on)
wait 30 min
turn wifi/data on
launch autosync (plugin ---> autosync) ( to update all your account at once)
wait 1 minute
go back to step 1
So your phone will save battery when not used. wifi will be active for only 2 minutes per hours and your phone will be synced every 30 min. You can edit the wait time as you need.
Will try to upload my tasker profile soon so you can edit it for your needs.
Hey Alray can you please upload your Tasker profile? I'm very much interested to see how you have configured this Tasker + Secure Settings + Autosync setup.
I know you tried explaining but some things weren't clear, to be honest I'd be lying if I said "some things" because although I tried experimenting on my own I still doubt that I would have gotten things working since I'm new to Tasker and its an app which takes a while to get used to.
Could you upload your profile with screenshots if possible? Thanks.
alray said:
Create a new profile in tasker based on screen state --> off
add a new task for that profile.
now create these actions in the profile:
wifi off
mobile data off
HTC energy saver on (requires secure settings)
set core 0-1-2-3 to your desired governor and max frequency (requires a custom kernel) (don't be to aggressive on the underclock or your phone will lag when turned back on)
wait 30 min
turn wifi/data on
launch autosync (plugin ---> autosync) ( to update all your account at once)
wait 1 minute
go back to step 1
So your phone will save battery when not used. wifi will be active for only 2 minutes per hours and your phone will be synced every 30 min. You can edit the wait time as you need.
Will try to upload my tasker profile soon so you can edit it for your needs.
Click to expand...
Click to collapse
Just wondering if I can get that taker profile?

Categories

Resources