yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Kama45:
Thanks for the replies. Now that I know it may be an issue, I'll play around with it tonight (I didn't want my efforts to be in vain). I might experiment with app specific/headset states. I'll also look into unlocking the screen vs screen on. If I have not said it already, thanks for an unbelievable thread, OP. I have learned a lot.
[Android Apps and Games] parthipanramesh:
You're welcome man! Feel free to ask anything that you didn't understand.

Sent from my Paranoid Nexus running Fancy Kernel
[Android Apps and Games] spupuz:
does this work also with 4.3 ? i have a nexus 4 and it does not switch from and to airplane mode.
[Android Apps and Games] spupuz:
working with xposed framework and [APP][XPOSED][4.2+] Jelly Bean 4.x Airplane Mode Helper v0.9.0 BETA http://xdaforums.com/showthread.php?t=2385625
[Android Apps and Games] ver101:
Are they any simple profiles that would not disconnect the wifi until the downloading or data transfer have been completed? specially when you trigger screen off.
[Android Apps and Games] parthipanramesh:
That are the screen off tasks. They check your data traffic before they disconnect the connection.

Sent from my Paranoid Nexus running Fancy Kernel
[Android Apps and Games] ver101:
Are you sure? You dont need to specify in task list?
[Android Apps and Games] parthipanramesh:
Sorry in don't really understand you. Are you talking about the profiles?

Sent from my Paranoid Nexus running Fancy Kernel
[Android Apps and Games] JDubTrey:
Thanks so much to the OP and all who have contributed to this thread.

My only question is: how would I change this to have data/wifi stay on if the phone is plugged in. If I could have that, I'd ditch JD for good.

I did try to modify the rules above (I am using v1.2 because my phone can't load greenify) but I couldn't add another "state" to the profiles that would check for power.

I apologize if that was addressed in the thread. I did try to read all the posts.
[Android Apps and Games] vyis:
Have been trying to do the same since try Smart3G feature in Cataclysm ROM. Thanks OP for pointing the direction.

4.3 ROM seems to change 3G data statistic to rmnet_USB0, try a few JSS build, CM10.2 and JWR build on Nexus 4.

---------- Post added at 05:56 PM ---------- Previous post was at 05:51 PM ----------

you need to change the directory of statistic file to "sys/class/net/rmnet_USB0/statistics/rx_bytes" for monitoring of HSPA mobile data. Since my Nexus don't do LTE on my network so i don't know if it should read the same file.
[Android Apps and Games] LucenNox:
Thank you OP! It's not quite what I need, but it's lot closer than starting from scratch. I just had a couple questions.

First, the default German plugin included simply says "all," and I can't change the settings because Tasker claims to not find the plugin needed. However, adding the Greenify plugin says something along the lines of "all selected." So are these the same things, or does the "all" of the former actually mean all apps? And if it does, can it be replaced with the English version without causing errors?

And second, if you know from all your testing, does cell only (no data, wifi toggling on use or sync) use less battery than WiFi(with no cell radio on at all) while idle? I ask here only because this answer drastically affects what changes I need to make. (I use Google Voice, and and it's whether I should launch Groove or use call forwarding when both are available.)
[Android Apps and Games] rignfool:
The WiFi vs mobile data battery question is kernel/ROM dependant... According to what I have read over in the BBS thread
[Android Apps and Games] LucenNox:
Well, it's not so much mobile data as it is simply 2g to make calls, I don't need to simultaneously download or anything. Regardless, it's a moot point. I had a call over VOIP today and I remembered why I don't like it on the phone, all the apps suck in some form or another.:( So really only my first question stands now, since the little bit of extra battery is worth a decent quality call when I have a signal at all, and I don't use the phone enough that the minutes limit on my plan worries me.
[Android Apps and Games] parthipanramesh:
How many conditions are you using at the moment for the profile?

Ok the problem is that my phone is in German and Tasker gives me the only option. I'll remove it an update the OP later.

It depends on your usage normally wifi is battery friendlier than cell. But if you have the whole time good reception cell is better. Try both a few days and you'll find your answer. :)

Sent from my Paranoid Nexus running Fancy Kernel
[Android Apps and Games] kala123:
Maybe allso Add when screne is off yhen use 2g network, and the Switch to 3g when syncing.
[Android Apps and Games] rignfool:
That is painfully slow... And will lead to dropped calls and the like without tons of case statements...
[Android Apps and Games] ramordep:
the profile is really great however my downloads stops on screen timeout.

how do i add a condition on not to turn off the data when there is a file download or torrent? help please
[Android Apps and Games] anjelika:
Check in Tasker log to see if the task/profile is really running when you turn the screen off. If that runs, then is something wrong with your task/profile. If you are using Android 4.3 you have to use another paths for the files that contains the traffic data. I can't remember the right files for 4.3 tho, take a look at previous posts as someone mentioned that already.
[Android Apps and Games] rraaka:
ok, im new to tasker too...but learning.... do i have to edit anything anywhere once the project is imported.....like the SSID ? enable some plugin ? then where exactly please ?

i peeped inside each task and profile and was blown over :D

is anyone using brandalls simillar project, if so how how does it compare, except that the other one is maybe outdated i think ?

thank you parthipan naresh !

edit - ok found place for SSID :)
[Android Apps and Games] drbiggy:
Hey there, this is a great script, i just need some personalisation for my own needs.

Can someone help me?

i want to remove the day and night stuff, is it enough to just delete the profiles? (I'm using 1.2 since i want the auto refresh)

and i would also like the script to not "touch " my wifi settings in anyway. e.g. when wifi is turned on it just stays on, or if it is turned of it also stays off. Is that also achievable by just deleting profiles that contain wifi?
[Android Apps and Games] LiL_Assassin:
Hey guys, this seems to be an awesome tasker idea but I can't get it to work, any help would be much appreciated. If I turn my data off. When the screen turns back on. Data will come back, but turning the screen off won't turn off data again. (no background data or anything) for the 15 kb. I don't know what's wrong. And if I get it fixed, I don't have wifi, and I don't want aeroplane mode to kick in (do I just turn off the weekend profile thing?) if I am on 4.1.2 will I need secure settings and if so, how do I get it to work? I know this is a lot of nourish questions. It's just I have had tasker for years but never did anything with it - thanks for your time
[Android Apps and Games] takui:
display on plus location?

Hi guys and Hi Op, thx for your wonderful work :)

I'm a little new to tasker and i'm trying to customize your work to fit my needs better...

In few words:

Not only check wifi when the screen is on, I want that happened only if I'm at work. To do it I've added a "location task", because the previous method I was using with another profile, cannot apply here (I was using a cell near task, but I cannot add another task to your work).

My question is:

Adding just a "location task, 200m" to the "display (wifi)" profile, its enough to do what I want, or it will be a battery drain?

Previously I was using a really good profile that just turn on wifi when I was connected at one of the mobile cell, but it keep my wifi on all the time until I was at work...so I tried to merge your work with this need...

Hope to have some feedback, I'm pretty noob at this and maybe someone can help me to do it more smoothly ;)

ps.: I've turned on only Display wifi and Wifi connected profiles, because I want to keep my data on even if the screen turn off...so autosynch is turned off
[Android Apps and Games] spramos:
Hi, thanks for the great profiles, but it would be great if i could switch from 3g to 2g (saves battery) when i turn my screen off.

This way i would save battery and still recive messages (whatsapp and so..)

Thx a lot
[Android Apps and Games] chobson0891:
Thanks for the wonderful plugin! Quick question, I'm new to tasker so how do I edit this to keep data on while using a specific app (WiFi tether) while the screen is off?
[Android Apps and Games] sea2605:
sadly 2g/3g-switching isn't easy to accomplish because of a android-restriction...and even the complicated solutions only work on certain devices and/or ROMs...guess thats why he didn't include it
[Android Apps and Games] m.klinge:
Cm roms are ones that actually does support this feature, since I'm using cm I've made a setup that does exactly that. I can share the files tonight, if anybody wants to poke around.

//M

Sendt fra min Xperia V med Tapatalk 4
[Android Apps and Games] Stylis10:
This is a great tasker setting, I had it working perfectly on 4.2.2

I'm just having some on 4.3 now. My wifi doesn't turn off anymore when the screen turns off.

Is this a known problem or specific to me? I tried un-installing and reinstalling, even re installing my rom. Nothing seems to be working.
[Android Apps and Games] Angelus89:
Ever since I switched from BB, Ive been wishing that google would develop something along those lines. Thanks :victory:
[Android Apps and Games] autry7:
I had that problem as well. If you're using 1.3, the German greenify plugin causes the screen off (WiFi) task to error out. Edit the screen off WiFi task to look like the picture and you should be good to go. I uninstalled 1.3 and used 1.2 and added the greenify line. There's probably an easier way but I'm pretty new to this.
[Android Apps and Games] Stylis10:
Hey thanks for that, im actually already using v1.2 thats all i really need and I also turn off the night mode as my phone is on the charger the whole night anyway.

But still getting this problem, wifi and mobile data just wont turn off when the screen is tuned off.
[Android Apps and Games] autry7:
Do you know how to turn on the logger? Menu, more, run log. Turn it on then turn off the screen and see where the error is. Did you install secure settings?
[Android Apps and Games] rignfool:
You would have to go into your WiFi -> advanced... And turn off the always scanning feature...
[Android Apps and Games] Stylis10:
Yeah I had already downloaded secure settings, but as the other person pointed out a fix it is fine now...never even knew there was a log function.

Ths worked great, i didt think the new location service thing linked to wifi in 4.3 would have affected this. This fixed the problem, thanks.
[Android Apps and Games] henry8668:
First thanks for the great information. I am definitely looking for use it to save some battery!

Now I have imported Battery.prj.xml(the last one in the download list). after install geenify, there is a plugin available called "hibernate now", is this the one that needs to placed in both screen off tasks(second action)? in the config of hibernate, do I just select the apps that I want to hibernate?

I already have my tasker for night mode 10:30pm to 7am, should I just disable the two Night profiles?

I want wifi untouch, where should I look for changes?

thanks.
[Android Apps and Games] andrecrespo:
Anyone knows if this directory still valid to android 4.4?

Enviado de meu GT-I9300 usando Tapatalk
[Android Apps and Games] vyis:
Still working for me on Cataclysm 4.4:laugh:
[Android Apps and Games] Martinhdk:
Please do
[Android Apps and Games] m.klinge:
Sorry I don't have a working solution any more as I've changed phone (and not needing the Toggle) :(

//M
[Android Apps and Games] Wh1t3Rose:
OK I don't understand why this isn't working. It has to be a 4.4 issue. First of all I turned off everything related to airplane mode. Now when I turn off my screen data nor wifi gets disabled. If I turned everything manually only Lte gets enabled at screen on.
[Android Apps and Games] autry7:
Use the logger. It'll show you where its failing

Sent from my GSII (SGH i777).

List of mods: Viper Audio| Operation Kill Joy| Mother of all Ad Blocking| Xposed Framework
[Android Apps and Games] rignfool:
Did you make sure the task is pointing to the right location to see if data is moving?

Did you remove the German greenify plugin reference?
[Android Apps and Games] Wh1t3Rose:
Just turned screen on ran logger. Turned screen of for 45s then back on again. Now when screen gets Turned off wifi is shut off but not LTE. When screen turns back on wifi is enabled.

Log: https://app.box.com/s/8d8hyipsunmr4p3htqsg
[Android Apps and Games] Trockensuppe:
Hello, is it possible to turn Wifi off

when traffic is under 100kb within 60 seconds?

(independent of whether the screen is on or off)

Many thanks
[Android Apps and Games] autry7:
Looking at the log everything seemed to be running OK then the data off task was stopped by WiFi being turned on. Maybe you turned the screen on too quickly for it to complete.

Sent from my GSII (SGH i777).

List of mods: Viper Audio| Operation Kill Joy| Mother of all Ad Blocking| Xposed Framework
[Android Apps and Games] Stylis10:
I love this tasker profile, but getting really high battery drain ever since using it with CM11. Without profile, I am getting less battery drain. Anyone having similar issues?
[Android Apps and Games] parthipanramesh:
Yes that's possible. You have to edit the wait action (set it to 60 seconds) and edit the if clause which compares the kilobytes.

No that's weird. You said you have the issue since you switched to CM11. I don't know but maybe it could be a Rom problem. Just a thought.

Or try to disable a few profiles and check if it reduces the battery drain. It helps to find the culprit profile.

Sent from my Nexus 5
[Android Apps and Games] Disposab:
Does anyone know how to detect wifi tethering status?

I would like to create a condition "if wifi tethering is on, do not turn data off".

Thank you in advance.
[Android Apps and Games] parthipanramesh:
I could be wrong but I think Tasker doesn't have that option. Another option would be to turn toggle wifi tethering using a task which sets a variable to tru/false or something else. Then you can check if the variable matches the value.

You could create a shortcut to the toggle task to activate it from your home screen.

Sent from my Nexus 5
[Android Apps and Games] SkyboneNoya:
http://tasker.wikidot.com/turnonwifiathome

Might get you on the right track? I'm working on my own profiles found in my signature.. I hope parthipanramesh will let me link to his profile. Although anyone get the profiles working in 4.4.2?

I've been working on home, college profiles to turn wifi on instead of using data and allowing my sync every 2 hour profile to use wifi instead as well as apps that open up, turning data or wifi on/off with exit.

I'd love to have wifi/data stay on until data stops like what parthipanramesh has going on. I tried the 1.0 profile.. it didn't seem to turn wifi off though? I don't think I had anything drawing that much data on.

I took on the battery guuide but tasker has filled all my time.. :crying:
[Android Apps and Games] hyperorb:
Choose radios

At night I do not want to turn off the cell radio. So I unchecked the cell option for Android mode radios under task 'Beginning of Night'. However it still does turn it off when the task run. Any idea for that.
[Android Apps and Games] MartiniGM:
A big flaw with this script is the following:

If you turn off wifi, mobiledata and sync, this script will turn everything ON again after a display off.

If I'm running low on battery and manually turn off everything, I don't want this script to override this!

The script should check what settings are actually enabled when the screen is turned off and only enable what was already enabled in the first place.
[Android Apps and Games] GraniteRich:
Thanks for the great code! I am on a galaxy nexus on Verizon with LTE, running CM11. To read LTE mobile data, I changed rmnet0 to lte_rmnet1.

Hope this helps others
[Android Apps and Games] toyanucci:
Edited your profile for display wifi to use on my Note 10.1 2014. I edited it to turn off sync before it turns wifi off, and I also removed the feature of it turning wifi back on whenever the display was turned on as this feature while useful for a phone is not necessarily so for a tablet. I also have a profile for automatically turning gps on when google maps or waze is launched and it turns gps off automatically as well. In case anyone needs this I can link to it. Just wrote this to say thanks as I been trying to figure out how to turn off wifi with the screen if data isn't being used and I doubt I could have done it without your profile.
[Android Apps and Games] Martinhdk:
Please share :)
[Android Apps and Games] toyanucci:
Here ya go! You import the profiles same way the OP posted. Root is required as well as Secure Settings. Secure settings requires busybox be installed, then open Secure Settings and scroll to the System+ tab and enable System+ Module.
[Android Apps and Games] Martinhdk:
Thanks man :)
[Android Apps and Games] toyanucci:
How'd they work out for you?

:)
[Android Apps and Games] iTzGavin96:
Im fairly new to tasker and i found this to work quite well with data turning on and off depending on your screen, but can someone tell me how i can the wifi value to ignore the screen off value? I only want my data off with my screen off and but when i am at home i want to leave my wifi on, but every time i turn my screen off it shuts off my wifi :[
[Android Apps and Games] giano2002:
Profiles Night (week), Night (weekend) can be deleted?

Mr. parthipanramesh,

I have imported in my cell the Projects "Cell_Standby_V1.0" and "Traffic_Screen_off_with_AutoSinch_and:nightmode_V1.2".

To perform the tasks in profiles Night (week), Night (weekend), Tasker ask me to root the cell.

As, just for now, I do not want to root my Note 2 GT-N7100, Android 4.3, Version build ......MK9, I ask you if it is possible to delete the profiles Night week and Night weekend, without impair the functioning of the project.

If deleting the two mentioned profiles should impair the functioning of the project, could you please tell me how to modify it and where?

I am new to Tasker, as you understand, Mr. parthipanramesh, and I need detailed instructions.

Thank you very much for your answer and for your project, that is much appreciated!

.
[Android Apps and Games] Surfinette:
Thank you for your project. I want to test it because I was about to try building something similar, although I'm not an expert.

However, importing your project into tasker has erased all my tasks and profiles... all my own pretexts are gone... I have a backup of tasker stored in Titanium Backup, so I'm fine. But how can this be avoided ?

Envoyé de mon Nexus 5 en utilisant Tapatalk
[Android Apps and Games] popy2006:
Nice Project!!!!

Using v1.3 now with my HTC One on newest AICP Nigthly and have now ~1,2%/h with BetterBatteryStats :fingers-crossed::fingers-crossed::fingers-crossed:

Until now i have used GreenPower but its incompatible with AICP because wifi wont connect after a short time.

With you tasker script i could have the same functions as with green power and also a much better standby time!!!!!!

thx

pOpY
[Android Apps and Games] puteax:
newbie question:)

hi!

for now i want 3 switches

1st i never want to lose my mobile data connection and prevent from stop/kill anyhow bcause want location and tracker services always running and prevent them from stoppig/killing too

2nd access only some applications

3rd full access :)

its possible with this app?

ihave rooted z1c 4.4.4
[Android Apps and Games] :
this profile, or app or whatever it is, works great, but is there anyway to prevent wifi from turning on when the screen is on, sometimes i dont need it to be on (like at work)

perhaps a switch to keep it manual when needed? i try to turn it off manually but it turns back on after screen off to on, perhaps guide on how to make the proper task?
[Android Apps and Games] zilan:
Hello, im use new tasker version 4.4u2m

i place your profile to /storage/sdcard0/tasker/profile

but when i try to import, tasker can't detect it.

is it not compatible? if yes, can you make a compatible version your profile with new takser version 4.4u2m?

i have disable begginer mode.

thanks
[Android Apps and Games] ShagoY:
Are you already export a profil ? If, no try export existant profil before.

Envoyé de mon SM-T700 en utilisant Tapatalk
[Android Apps and Games] zilan:
yes i already try to export profile that i made, then i try to import it back, but its same, tasker cant detect my profile. strange..
[Android Apps and Games] jdegreef:
I had the same problem with data (3g). I switched "Display (Data)" off in the Profiles and it stopped turning automatically on.

In your case turning "Display (Wifi)" off should solve your problem.

---------- Post added at 05:49 PM ---------- Previous post was at 05:36 PM ----------

Personally I've put everything in Tasker/auto-import and I was able to import the project in Tasker as per http://xdaforums.com/showpost.php?p=37715036&postcount=5

This was not hidden amongst the 32 pages of comment but... on the first page :o

Very good project BTW :good:
[Android Apps and Games] comzone:
Hello guys. First i wanna say i'm newbie and never used tasker before. I wanna ask i have instaled the latest tasker and secure setting. And then i already imported the tasks and profile .. But i found out the profiles aren't active. Refer to the status bar. It shows "no actives profile". Anyone could help me? And especially i ask for Mr. jdegreef because we are using the same rom and phone :) thanks guys.
[Android Apps and Games] jdegreef:
These screenshots are different from the ones you posted here

I was wondering if you had installed "Secure Settings" but you oblivious did.

I need more time to look at this.

I'll keep you posted.
[Android Apps and Games] comzone:
Hello. Yes its different from the previous post , the latest sreencaptures were taken after i installed "secure setting", the red triangles were gone . well honestly i dunno exactly what secure setting for hehe i just follow the instruction in this thread, perhaps it can help me solve the battery drain. And i am using the zip files v.13. Maybe you could tell me the profiles and tasks you are using or maybe share (post) them here. So i can solve this battery drain issue :D hehehe thanks ;)
[Android Apps and Games] allo_87:
Siglost and sigreturn both have me the triangles and I couldn't find anything similar so I deleted those out of the display data task. Now I'm not sure if it's working though... Any recommendations? I quit using tasker like 2 years ago and am having a hard time picking it back up.

I'm basically just wanting the data to switch off on my Moto x when the screen is off and I'm not streaming at the moment (juicedefender wasn't working properly)
[Android Apps and Games] jdegreef:
I've finally found time to have a look at your problem.

Here's my Profile screen

Display (Data) is off because I don't want 3G beeing automatically turned on each time I turn on the screen see above).

The only way I succeed to get "No active profile" on the status bar as in your screen-shot is by putting all sliders to off .

Seeing your screen-shot you have everything turned on.

Now I've read users reporting profile not showing in the status bar although a profile was on.

I suggest you go in the apps settings of the rom (Settings > Apps) and force close Tasker. Then run it again to see if the profile shows in the status bar.

See the OP (Opening Post, first post of the thread) to know what for Secure settings are used.

BTW, did you install Greenify that is used to put greenified apps on hibernate state when screen is off ?