yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jdegreef:
I can't help you with only one screencap. :-/

You need to "ls /sys/class/net" once with data off, and once with data on.

Take a screencap of both and post it.

But you should probably be able to discover yourself what device is added between a "ls /sys/class/net" with data off and then one with data on.
[Android Apps and Games] Big Foot:
I did both, data on and data off, but I can't find a difference between the two. I've attached both screen caps. The first photo should be with data off, second photo with data on. Thanks for your help man!
[Android Apps and Games] jdegreef:
I'm confused, your 2 screencaps are the same. Are you 100% sure your did turn data on/off between the 2 ?

Maybe Oneplus One works differently than other phones when talking about data device.

I don't know and I don't have a Oneplus One to search/test further.

I'd suggest you try to ask about what is the data device in an Oneplus One thread. People knowing this phone should be able to give this information.
[Android Apps and Games] cooki3monst3r77:
Should be easy, but I can't get it to work! :)

I'm trying to create a profile that turns wifi on, if my screen is on, when I'm at a location only. For example, if I'm at work and I turn the screen on, wifi comes on as well. I have created a location based profile, "work", and the task is WiFi on IF %Screen=_______. In that blank I typed the word "on". I have an exit task set, as well, so that if I'm at work and %Screen=_______ ("off" - typed this as well), the wifi should turn off. The issue is that it doesn't work with the screen, it just comes on at work; I feel this is due to my typing in the "on" and "off", but I'm not completely sure how to get that variable set.....any info or insight would be so much appreciated!!!! Thank you!
[Android Apps and Games] parthipanramesh:
No need to use a variable here. You're condition should be your work location and display state on. The entry task should turn wifi on and the exit task should turn off wifi. [emoji6]
[Android Apps and Games] Momotani-Hitoshi:
anyone able to get tasker %CELLSIG to work with LTE? I keep getting return value of 0 only on LTE, on 2G/3G it works.
[Android Apps and Games] Momotani-Hitoshi:
looks like tasker doesn't support LTE or its a bug. To get signal strength you need to use java or shell command
[Android Apps and Games] srelek:
I got the same result when data was on/off. My phone is LG L90. Any idea?
[Android Apps and Games] mrgfs:
Thanks for this :D
[Android Apps and Games] BenSow:
Really appreciate the hard work put into this task. But I was wondering, is there a way to make this so that only mobile data is turned off when screen off? I'd like my wifi to be undisturbed because I use my phone alot when on wifi.
[Android Apps and Games] RmatriX1218:
Is this working on Android 5.1?

As of now, I am not able to disable network data in Tasker and read that Android 5.1 have put this limitation.
[Android Apps and Games] Cozmos23:
Try script - use shell - svc data disable

and use root.

The limitation is there since Lollipop, dunno why the shell works and the setting not. :?
[Android Apps and Games] BenSow:
It should work. I've used it in lollipop and marshmallow. Do you have Secure Settings?
[Android Apps and Games] wanfauzan:
Try net sentry app. On xperia z, the data device for 3g/2g is rmnet_usb0
[Android Apps and Games] Dovidhalevi:
Trying the weak signal project. Had to manually import the three profiles to a new project I made, se la vie. Tasker's UI is too confusingly designed. Code Looks good.

I want to only exercise this only when screen is off, not charging. (With screen on, battery drain is mostly from the screen.) Attempts to add conditions to the profile does not offer "state." (I had encountered this before when secure settings was involved.) How can I do this without starting over?

I would like a beep-beep downward pitch to signal that I am going "off line," and a beep-beep upward pitch to signal I am back up and running. Possible? Seems the up-beeps is not really an exit-task (won't give me that either when secure settings is involved) of the check-profile. If I want to hear them every five minutes, I suppose they could both frame the restore profile. How best to do this to only hear first time in and final out?
[Android Apps and Games] Dovidhalevi:
So I placed a beep in the tasks that set airport so that I know it is doing this. Enough.

What I seem to have found (and the problem may be at the provider): I had previously tested very similar scripts that I had made. After cycling though a few time, the phone could no longer reconnect and I had to reboot to get service back on line. This, of course, rendered the method less than useful.

So what else can be done when canceling the airport mode to assure correct reconnection?

Also, might prefer an initial delay so that a momentary loss of signal does not trigger a 5-1/2 minute sequence. Indeed, there used to be a couple apps around to do this type of thing but their API usage is no longer supported in recent Android so have been abandoned.
[Android Apps and Games] ratbags:
Not sure what android version you're on but there's an app called auto pilot that works for me on 5.1 no beeps or farts I'm afraid but it does have the delays etc you mention.
[Android Apps and Games] Dovidhalevi:
Thanks. Running Kitkat omni-based ROM but on a dinosaur.

Shows how effective searching Play is. Gave me two apps not touched in three years. This one's most recent version is "only" 1-1/2 years old so within the realm of newer Android. Trying it now. Will play a sound, exclude charging (but not screeen on), and will respect manual airport mode sets which is desirable.

Will see if it has the side-effect that the tasker scripts had.
[Android Apps and Games] lrcquest:
will this work with nougat?
[Android Apps and Games] HatchetEgg:
Hi guys I'm not sure if anyone can help, but I have created a autosync profile, but the problem is wifi does not seem to switch on whilst the screen is off.

I had started my own thread about this, unfortunately no one has answered, apart from one person who say they know what the problem is. But is not willing to share the solution.
[Android Apps and Games] Tmobilefan906:
How to turn off WiFi after screen off after 1 minute but WiFi turns back on after waking device. When I made a profile, the WiFi stays off

Nvm. I used WiFi disconnect instead of WiFi off.

State- display off

Task- wait 1 min, WiFi net-disconnect

---------- Post added at 04:32 PM ---------- Previous post was at 03:58 PM ----------

Ugh. WiFi turns off even when I turn display off, it will turn off after the time I inputed. Help plz
[Android Apps and Games] vygavedha:
Can anyone explain how can i check if any downloads/update going on using tasker,I am using a profile to turn of data/wifi on screen off..But i have to check if any downloads going on..then never turn off data/wifi on screen off..
[Android Apps and Games] android addicts:
After Imported "Traffic_Screen_off_with_AutoSync_Nightmode_and_greenifys_hibernate_now_v1.3" Tasker shows it missing following profiles.

SigLost.

SigReturn.

11.41.58/E Run Shell: %CHECKA_MOBILE -> %CHECKA_MOBILE

11.41.58/E Run Shell: ->

11.41.58/E Run Shell: ->

11.41.58/WakeLockManager acquired partial lock for M flags: 1 autorelease: true warn: true

11.41.58/WakeLockManager setClearAlarm: not setting, last set 631ms ago

11.41.59/Shell runBackground cat sys/class/net/rmnet0/statistics/rx_bytes root: false timeout: -1

11.41.59/Shell start process-thread ID 956

11.41.59/E add wait type Shell1 time 2147483647

11.41.59/E add wait type Shell1 done

11.41.59/E add wait task

11.41.59/Variables doreplresult: |%CHECKA_MOBILE| -> |%CHECKA_MOBILE|

11.41.59/E Error: 1
[Android Apps and Games] firefly2k3:
You have to import Cell_Standby_v1.0.zip as well which has the SigLost and SigReturn tasks.
[Android Apps and Games] MarneusC:
hi

iam new to tasker, this action is just what is was searching for.. Turn wifi off, when there is not traffic left..

but i installed it, and there is still a red sign (!) beside "Screen off (wifi)" and "Screen off (Data)". Always task Nr. 2 "in den ruhezustand vesetzen (hibernate) .. it always says, the plugin is missing.. but which one?

Thank you so much.
[Android Apps and Games] bluesfear:
Is it missing the "repeat every X minutes" context?

And I really appreciate all the help you are giving me. Thank you, you've been very helpful so far.
[Android Apps and Games] parthipanramesh:
Oh yes. Sorry I forgot to add the context. Add a "repeat every X minutes" context. Sorry again! And yes it doesn't turn it back on because you disabled the profiles from the OP.

You're welcome! I'm trying my best to help you ;)
[Android Apps and Games] ruvort:
Re: Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Standby

No problem at all :) I noticed you updated the thread topic with night mode. Can't wait till that's posted and I can give it a try :)

Huge Wallpaper Collection
[Android Apps and Games] parthipanramesh:
Thanks :) It's already posted. It's in the Tasker_Traffic_Screen_off.zip ;)
[Android Apps and Games] ruvort:
Re: Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Standby

Hmm I apologize to bother you again sir but I can't seem to import the screen off zip

EDIT: Figured it out. Feel pretty stupid... I just had to delete the old profiles to be able to import.

Huge Wallpaper Collection
[Android Apps and Games] parthipanramesh:
Haha :D Hope that it'll work now! :)
[Android Apps and Games] Big-O-Devil:
Re: [v1.0] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Sta

?

Sent from my SGH-T999
[Android Apps and Games] wojtas1982:
Great profile, I have just installed and I made a small modification in Display (Wifi) task, now it looks like this:

1.Task Screen off (Wifi)

2.If %home !~1 (which tells tasker im not at home)

3.Goto Action Number 7.

4.End If

5 and other actions didn't change.

What it does, when I'm not in range of my home cells it doesn't scan for wifi connection and switches mobile data on immediately after screen is turned on.

Will do some more testing, cheers.
[Android Apps and Games] Iceax123:
After this thread i have gone totally mad with profiles etc.

I think ill have to start deleting them as i cant tell what is doing what and i have simple needs lol.

Thanks again

Andy

EDIT:

Have just taken the most up to date battery one and now have lots of warning triangles and exclamation marks.

Is this because i dont have secure settings and not rooted?

Thanks

EDIT 2:

Installed secure settings and errors have gone thanks.

EDIT 3 :

Wifi doesnt appear to be turning off at all now :(

Thanks

A
[Android Apps and Games] parthipanramesh:
Run log in Tasker and check if you get some errors.
[Android Apps and Games] naskar7:
Hi there,

this script seems to be running good so far except for Mobile Data turning on every time I turn the screen on, when I'm at home connected to WiFi. Any idea how I can stop this happening?

Thanks :)
[Android Apps and Games] parthipanramesh:
Try adding a condition (State → Wifi connected) to the profile. ;)

You're welcome :)
[Android Apps and Games] naskar7:
Hi there partipanramesh,

since the profile already has a Wifi State Connected, i just added my WiFi network's SSID in there.

For some strange reason, when i turn the phone off and on, it still activates both Mobile Data and Wifi. I turned on logging as you suggested, and I don't see the Night Mode being called =/

All help would be appreciated. Thanks! :)
[Android Apps and Games] parthipanramesh:
It will only called in the defined time! Does the night profile has a higher priority? The night profile changes the variable %SLEEP to 1 or removes it. The other profiles will only work if %SLEEP !~ (is not set).
[Android Apps and Games] denzel09:
R: [v1.0] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Stan

Thank you
[Android Apps and Games] denzel09:
R: [v1.0] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Stan

Hi can you add in your script Autosync option ? I would try it..

Thanks
[Android Apps and Games] parthipanramesh:
For mobile data and wifi or just for wifi?
[Android Apps and Games] denzel09:
R: [v1.0] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Stan

For both, if you can... thank you
[Android Apps and Games] parthipanramesh:
v1.1 released!

You are welcome! ;)

Check the OP! :)
[Android Apps and Games] Flash23:
Re: [v1.1] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Sta

Just downloaded Tasker myself and plan on putting this bad boy on... Looks good!!

Just want to make sure I got the right steps before I move on... I'm on PA 4.2.2

1) install the Secure settings

2) then download your zip and unzip it to the tasker directory you mentioned

3) enable the home key

4) import the XML files

Are those the correct steps?
[Android Apps and Games] vNa5h:
Re: [v1.1] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Sta
[Android Apps and Games] parthipanramesh:
Yes you're right. You need to import the project file with the home button. On PA you need to install Secure Settings again after every Rom Update. Or just enable backup/restore helper in Secure settings. ;)
[Android Apps and Games] reddvilzz:
Re: [v1.1] Tasker: Screen off=wifi/data off (no traffic)+Night Mode / Reduce Cell-Sta

Ah excuse me sir. But can you teach me how to configure something up?

Because with your tasker set up. When my screen is off even when wifi is on and connected, it switched up to 2g data. Can you teach me how to set it up so that when my wifi is on and the screen is off it will continue use the wifi only not the data, and when there is no wifi then it will use the 2g data when the screen is off.

I don't understand how to configure it. And it will be better if the wifi what i requested have a timer, say that it will turn off the wifi for xx minutes and then turn wifi on again for xx minutes and then it will turn on again just to check data that comes and so on..

Sorry if it is a little confusing. I hope you understand.

Sent from my HTC Sensation using Xparent Green Tapatalk 2
[Android Apps and Games] parthipanramesh:
Hi! Please update to v1.2. It has a new profile called AutoSync. It turn every 10 minutes wifi on (if no wifi available mobile data) and checks for new incoming notifications and so on. You can adjust it! Normally mobile data and wifi will be turned off when you turn your screen off. Does it work? Feel free to ask me if there are problems! I'll try my best to help you. ;)
[Android Apps and Games] reddvilzz:
Re: [v1.2] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellSta

Thanks for fast response Sir :D. From what I see is when the screen turn of on v1.1 the WiFi switched of and the mobile data is set to 2g. So with this new one it will turn off the data and the WiFi when screen off and turn every 10 minutes to check notifications?

If you just can teach me how to use the tasker. So that I don't have to bother you too much sir. But thanks sir, will try the new one and post feedbacks here sir.

Sent from my HTC Sensation using Xparent Green Tapatalk 2
[Android Apps and Games] MorphiousGX:
I was wondering if maybe you can update your OP with the things you did in the Tasker to setup your profiles? i opened it up and tried to make sense of it (mapping it) but it only confused me :)
[Android Apps and Games] reddvilzz:
Re: [v1.2] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellSta

I did the same and it is confusing on how to understand all the usage and such
[Android Apps and Games] MorphiousGX:
Its not that I don't understand Tasker. I am quite familiar with it. But as a programmer, I like to diagram my code and understand it to make sense of it. I do follow some of it, but because its not all on one screen, and doing it on a phone, makes it confusing with all the different profiles :silly:
[Android Apps and Games] Flash23:
Re: [v1.2] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellSta

Okay so I just installed your settings... I imported the prj.XML and now all the task and profiles came up... How do I know if everything is running as planned?

I forgot to ask... I have a WiFi toggler that automatically disables/enables WiFi when I'm in WiFi range... Would this interfere with your settings?
[Android Apps and Games] GenericAsianGuy:
This is great, thank you!
[Android Apps and Games] parthipanramesh:
Sorry. I will try to update the OP in the next few days. I'm not at home at the moment.

Yes the Wifi toggles will interfere the profiles. Turn tasker on and use your phone a few hours like always. Then check the battery diagram in the settings. You should see when Wifi was off and so on.

You're welcome! :)
[Android Apps and Games] Eddiemc:
Re: [v1.2] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellSta

Have you tested this more? Is it working as it should?

I'll try to set this up and try it myself, but I have 3 places where I want wifi and I want it kept off all other places.. I'll see if I can get it working.

Atm I've only used "screen off data off" tasks, leaving wifi alone on a separate task that keeps it on at my 3 locations and turns it off when I leave..
[Android Apps and Games] vole_00:
I used this tasker profile about 2 weeks and it really improve my battery. After night, my battery only decrease 1%.:good:

I'm using Pantech vega R3.
[Android Apps and Games] Flash23:
Re: [v1.2] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellSta

Wow!! After setting this up yesterday afternoon I'm still on the same charge... 17 hours, 1 hr screen on time and I'm at 60%... Excellent!!!

I am coming across a small problem... WiFi isn't being enabled when I'm in WiFi range and auto sync seems not to be working properly... I had no emails when I woke up but when I refreshed my gmail I had 18... Anyone have this problem?
[Android Apps and Games] Tokarin:
Re: [v1.2] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellSta

This is great, but I wonder if you can incorporate Greenify's hibernate now action into a screen off task? This would be extremely helpful.

Thanks for the work though

Sent from my GT-I9300
[Android Apps and Games] MorphiousGX:
Should be easy to add it yourself. I can help you with it if you want

---------- Post added at 11:16 AM ---------- Previous post was at 10:54 AM ----------

Any chance you will update it soon? :)
[Android Apps and Games] DaniGalaxy:
Hi and thanks for your profile/project.

Like some guy already asked before I'm also experimenting that Mobile Data turns on every time I turn the screen on when i'm connected to my home wifi.

You suggested to do like the post i quoted.

Could you explain how to do that.

Thanks for your help.
[Android Apps and Games] parthipanramesh:
Thank you for your feedback! :)

Do you run other profiles which could interfere these profiles/tasks? My friend has Nexus 4 and he has no problems.

Update to v1.3 ;)

Updated ;) Sorry I'm busy at the moment.

If you want to enable mobile with wifi just delete the condition "Variable value %CONNECTION, doesn't match 1" from Display (Data).
[Android Apps and Games] Jdgp42:
Hello I tried installing this on a receltly installed Tasker 4 but I can find the way to import it. Any help here? I'm a noob in Tasker :eek:
[Android Apps and Games] reddvilzz:
Collaboration with greenify? Do i need to set something up with the greenify or just import your v1.3 task?

Sent from my HTC Sensation using Xparent Green Tapatalk 2
[Android Apps and Games] MorphiousGX:
What do you mean collaboration? Greenify has a hibernate plugin feature to run with tasker. All you need is add it to the screen off condition as a task
[Android Apps and Games] reddvilzz:
How? Can you tell me step by step? I really don't understand tasker even a little

Sent from my HTC Sensation using Xparent Green Tapatalk 2
[Android Apps and Games] shail139:
Do I need to set up all the profile given in OP.

I have no idea of Tasker :(
[Android Apps and Games] gsw5700:
Just interested in how this compares to juice defender. Has anyone moved from jd to tasker and can provide realistic comparison, Thx.

Sent via TCP/IP
[Android Apps and Games] parthipanramesh:
Press on tasks then import. And then the same with the profiles. Or just import the project file. ;)

No collaboration. I just added its tasker plug in to both screen of tasks. ;)

You can import them. If you want you can optimize it for your needs. :)

I used Juice Defender last year then I found tasker. For me tasker is better cz I can set it up on my own. Both Apps are really good!! You can try tasker and choose on your own. Tasker can do the same things like Juice defender but you need to set it up. Google juice defender replacement tasker. There you will find the profiles and tasks. ;)
[Android Apps and Games] reddvilzz:
So i just need to add the app which i want to hibernate on the greenify?
[Android Apps and Games] parthipanramesh:
Yes my friend :)
[Android Apps and Games] reddvilzz:
Using your v1.3 and how is the screen off tasker? Is it turning data on again when there is wifi? I can't tell. But a few times when i try to turn my screen on my wifi is off and the data is on, and then it switch back to wifi again. Can you tell me how to keep the wifi on if there is wifi and not using the data? It is a little waste i guess.

If you are busy just tell me how to do it. And i will do it myself :)
[Android Apps and Games] vlag24:
hello, same fight here:confused: data is connecting :(
[Android Apps and Games] parthipanramesh:
Hmm normally it should turn both off if there is no traffic and check every 10 minutes for new messages. Which phone are you using? HTC Sensation? Could you please turn on the log feature in Tasker and look if the Screen off (Data) runs correctly. :)
[Android Apps and Games] reddvilzz:
It turn off sometimes when i open my phone. But when it does turn on it is not using the wifi connection that available instead it using the data. That is what i meant. Did it check every 10 minutes with data / wifi?
[Android Apps and Games] parthipanramesh:
Could you please remove the condition variable %CONNECTION, doesn't match 1 from the Display (wifi) profile. And try it again.

Yes the profile AutoSync turns every 10 minutes first wifi on. If wifi doesn't connect to a network it will turn data on for a few minutes. You can change the 10 minutes in the AutoSync profile. But don't set 5 minutes or something like that cz it will cause a lot more wakelocks which will drain your battery.
[Android Apps and Games] vlag24:
Hello, I'm having the same "data connection" issue and I've tested removing the %CONNECTION variable without success :crying:

I'm testing : editing the AutoSync task > 3. mobile data > Off

I think i'ts working now but I hope it will not break the rest of the scripts...
[Android Apps and Games] parthipanramesh:
Yes I think I found a possible reason for that behavior. But I'm not sure. In the variable tab. Are there checka_mobile, checkb_mobile and diff_mobile and that stuff 0. Look at my screenshot.

So you say it is working after removing this action? Do you have the issue when you disable the AutoSync profile. This could be a useful information to fix the issue. My problem is that I don't have the issue. I'm tried the whole day to find the issue. With no success..