Data not off during night

147 views
Skip to first unread message

Ante Drnasin

unread,
Feb 27, 2015, 11:52:11 AM2/27/15
to tas...@googlegroups.com
Hi, 
for the last few days I've been struggling with the Tasker. I'm using it mainly for battery saving and I have managed to make the part of it work correctly. But I'm having issues with the night mode saving, it doesn't turn off data, I mean, it turns it off firstly, but during the night it turns it on sporadicaly. Everything else turns off, wifi and sync, just data keeps messing with my sanity. During the day, Tasker turns on data and sync every 30min for 2min and works like a charm.
 I have done everything by the book, installed secure settings, watched bunch of videos, read treads but I got lost among it all and I'm still not very familiar with the Tasker and if someone knows how and is willing to help me, it would be very nice if he/she could describe it by steps, for dummies like.
 I just need a small, simple night saving mode but it just does not want to cooperate with me. I'm running on 4.2.2., rooted, installed xposed installer, greenify etc.
 Thanks
Screenshot_2015-02-27-14-54-48-picsay.png
Screenshot_2015-02-27-15-52-28-picsay.png

Rich D

unread,
Feb 27, 2015, 2:41:14 PM2/27/15
to Tasker Google Groups Post

I mean, it turns it off firstly, but during the night it turns it on sporadicaly.

If tasker is turning it on you should be able to tell why by viewing the run log.  Menu / more / run log.

Ante Drnasin

unread,
Feb 27, 2015, 3:08:51 PM2/27/15
to tas...@googlegroups.com


Dana petak, 27. veljače 2015. u 20:41:14 UTC+1, korisnik Rich D napisao je:

I mean, it turns it off firstly, but during the night it turns it on sporadicaly.

If tasker is turning it on you should be able to tell why by viewing the run log.  Menu / more / run log.

Ok, thanks, I'll try it out and report back 

Marta Hintz

unread,
Feb 27, 2015, 6:35:25 PM2/27/15
to tas...@googlegroups.com
greenify known to Bork tasker. Make sure you White list it, or whatever it does to ignore apps.

Ante Drnasin

unread,
Feb 28, 2015, 5:42:41 AM2/28/15
to tas...@googlegroups.com
Tasker is already on the white list. During the day, he works nicely, no problem with it. Only in the night mode the problem occures. My phone is dual sim, but I only use one sim, is that maybe the problem? I took screenshots of the logs, but I don't really understand it. Can someone help me with step by step with this, I would be very very gratefull.
Screenshot_2015-02-27-23-07-58-picsay.png
Screenshot_2015-02-27-23-08-24-picsay.png
Screenshot_2015-02-27-23-08-36-picsay.png

Rich D

unread,
Feb 28, 2015, 10:38:24 AM2/28/15
to Tasker Google Groups Post


Hard to say without seeing the relevant profile and task descriptions. Could you post those. With a explanation of what you are trying to achieve and where it is going wrong.

To post your profile or task here...  Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)

Any linked tasks will be exported with the profile they are linked to..

To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name.  Tasker will list your profile with the context name if you have not given it one).

Ante Drnasin

unread,
Feb 28, 2015, 4:11:55 PM2/28/15
to tas...@googlegroups.com
I have put off the beginner mode from the start, but I can't export it to clipboard, can't find it anywhere on my device so I exported to mail, I hope is not a problem. I want to make a small, simple night saving profile, but the tasker kills everything as it should, but after some time during the night, it turns on data and nothing else. I don't understand why doest it happen. The tasker works nicely during the day, no problem with that. Here it is:
Night (14)
A1: Auto-Sync [ Set:Off ] 
A2: Mobile Data [ Set:Off ] 
A3: WiFi [ Set:Off ] 
A4: Kill App [ App:AccuWeather Use Root:On ] 

Dana subota, 28. veljače 2015. u 16:38:24 UTC+1, korisnik Rich D napisao je:


Hard to say without seeing the relevant profile and task descriptions. Could you post those...

Phil Bilton

unread,
Feb 28, 2015, 4:15:03 PM2/28/15
to tas...@googlegroups.com
If you have your day time profile to switch data on/off and night time profile not to, can you add to the nighttime task to deactivate the day time profile, and set the day time profile to start at a specific time in the morning?

Rich D

unread,
Feb 28, 2015, 5:05:52 PM2/28/15
to Tasker Google Groups Post


> I have put off the beginner mode from the start, but I can't export it to clipboard, can't find it anywhere on my device so I exported to mail,

The clip board option should be in the same menu. See screen shot, the clipboard is the top option in the menu.

I hope is not a problem. I want to make a small, simple night saving profile, but the tasker kills everything as it should, but after some time during the night, it turns on data

Could you post the profile descriptions.  Especially the one that runs every 2 min.  Your run log only shows about 6 minutes but your every 2 minute profile is running and the associated task is running. It appears to only have one mobile data action. 

Rich D

unread,
Feb 28, 2015, 5:19:07 PM2/28/15
to Tasker Google Groups Post

> The clip board option should be in the same menu. See screen shot, the clipboard is the top option in the menu.
>

Forgot the screen shot. 

Screenshot_2015-02-28-17-01-13.png

Ante Drnasin

unread,
Mar 1, 2015, 10:54:07 AM3/1/15
to tas...@googlegroups.com

I don't know how to  add to the nighttime task to deactivate the day time profile. I really tried, but keep failing. Could you explane to me step by step? I'm new to this and would really like to make it work. I managed to export to clipboard, here it is. I made a new task night mode, but to test it I gave him the time from 16:09 to 16:29 to kill wifi, sync and data and in that time interval it let Accu weather to sync which it shouldn't. After that, I put accu weather in hibernation with greenify and than it didn't let it to sync during the night mode. Is it normal if during the night mode I wake my phone that Tasker turns on data, but keeps sync and wifi off? I had a battery saver( the app was removed from google play and stopped working so I switched to Tasker) that during the night mode kept them all killed, even if I was playing with the phone during the night mode on? I hope it makes sense what I wrote.  
Screenshot_2015-03-01-15-33-22.png
Screenshot_2015-03-01-16-33-44.png
runlog.txt
Screenshot_2015-03-01-15-54-00.png
Screenshot_2015-03-01-15-54-10.png
Screenshot_2015-03-01-15-54-35.png
Screenshot_2015-03-01-16-32-34.png
Screenshot_2015-03-01-16-32-48.png
Screenshot_2015-03-01-16-33-02.png
Screenshot_2015-03-01-16-33-15.png
Screenshot_2015-03-01-16-33-32.png

Ante Drnasin

unread,
Mar 1, 2015, 5:28:13 PM3/1/15
to tas...@googlegroups.com

I think I found the problem. Before starting the night mode I have manualy turned off daily profiles visible on screenshots. And now night mode doesn't turn on data anymore. 
So could you help me how to  add to the nighttime task to deactivate the day time profile, giving the time frame to daily mode or anything else I have to do to make it work, with simple steps please? 

Phil Bilton

unread,
Mar 2, 2015, 3:28:05 PM3/2/15
to tas...@googlegroups.com
The start off your night time profile add action, tasker, profile. Select your daytime profile and set it to off.
I think if you have a time context for when you require i.e 7am for your daytime profile that should switch it on, and in that task do as above and select night time profile to off.

Ante Drnasin

unread,
Mar 2, 2015, 4:35:37 PM3/2/15
to tas...@googlegroups.com
Thanks for the informtion, I'll try it out and report back. My day time profile is in 5 tasks and is seen as 5 profiles, so should that be in one single profile or is it ok as it is?  I'm not really sure where to start from, but I'll give my best. Hope I get it done, soon. 

Phil Bilton

unread,
Mar 3, 2015, 12:02:25 PM3/3/15
to tas...@googlegroups.com
In your night time profile, add five actions, each for your daytime profiles and turn them all off.
If you can learn about variables it would make everything more efficient and in the long run easier.

Ante Drnasin

unread,
Mar 3, 2015, 4:52:46 PM3/3/15
to tas...@googlegroups.com

I'm still new to tasker, but on the way of starting to learn about variables. I did as you said, I've added actions and time frame for each and it seems working. I'll test it some more and I hope I've finally managed to make it work properly. I'm getting kind of crazy with this, but finally getting optimistic about it, yeeey. Tasker is just what I need for our phones and I'm so happy that my poorly spent hours are finally paying off. 
Dana utorak, 3. ožujka 2015. u 18:02:25 UTC+1, korisnik Phil Bilton napisao je:
In your night time profile...

Ante Drnasin

unread,
Mar 4, 2015, 4:13:16 PM3/4/15
to tas...@googlegroups.com
Since you've mentioned variables, which variables are optimal for my profiles? I'm using in the day time profile variable %screen. I've been trying to find on the internet, but it's kind of confusing and not really explaned.

Phil Bilton

unread,
Mar 5, 2015, 3:57:41 PM3/5/15
to tas...@googlegroups.com
Sorry Ante Drnasin, been busy last couple of days.
make sure your not in beginner mode.

1. Create a variable called %Nightprofile

2. Create a new profile, in this case i think time will do it. Set it starting at when you want nighttime profile to start and end time when you want it to finish. If you don't want to do it with time you can do power with time etc.

3. Create a task for this profile and In action set variable. Find your newly created variable and set it to 1.

4. With that profile, add exit task. Create a New task and same as above but set the variable to 0.

5. New profile with event:- variable set, %Nightprofile equals 1.

6. Link your night time task to this profile. If you have more than one i think you can add tasks or just create a new profile with the same conditions.

7. Create another new profile, this time with %Nightprofile equals 0 and link all your day time profiles to it.


Hope this helps you out, and i hope someone else can confirm this is the best way to do it or suggest another way as I've only learnt about variables a few weeks ago. But this concept is how i have mine.

Rich D

unread,
Mar 5, 2015, 5:41:20 PM3/5/15
to Tasker Google Groups Post


> Hope this helps you out, and i hope someone else can confirm this is the best way to do it or suggest another way as I've only learnt about variables a few weeks ago. But this concept is how i have mine.

This can be done more efficiently by not using a global variable and just add a context ( context / state / tasker / profile active (use mag glass to select the night profile) "inverted"  to all of the day profiles.

The night profile needs to be named by you (not the default tasker name).

Phil Bilton

unread,
Mar 5, 2015, 5:58:56 PM3/5/15
to tas...@googlegroups.com
Thanks for explaining the best way, hopefully it works for Ante.

I don't have mine set that way as have 3/4 different profiles running from a variable but i wanted to write it out to try and help explain variables a little.

Rich D

unread,
Mar 5, 2015, 6:49:28 PM3/5/15
to Tasker Google Groups Post

> Thanks for explaining the best way, hopefully it works for Ante.
>
> I don't have mine set that way as have 3/4 different profiles running from a variable but i wanted to write it out to try and help explain variables a little.

Tasker also provides a variable that contains a comma separated list  of all active named profiles. %PACTIVE .

So there is really never a need to set a global variable in a enter task and exit task to use as a flag to determine when a profile is active. You simply need to check for a match in that variable.  The match should look like this.

IF %PACTIVE ~ *,Name of Your Profile,*

The *,,* are important because you are matching a comma separated list.

Ante Drnasin

unread,
Mar 6, 2015, 6:07:21 PM3/6/15
to tas...@googlegroups.com
Thanks for the info, it's great. I'm very thankfull. I'll have some free time over the weekend so I'll make it all from the start and do as you wrote. I hope I finally make it work as it should ( I mean, with steps so precise it must work like a charm). I'll report back with my findings.  Wish me luck.

Ante Drnasin

unread,
Mar 14, 2015, 2:55:28 PM3/14/15
to tas...@googlegroups.com

Hi, for the last few days, I tested Tasker. I did everything by your steps and it works nicely on 3 different phones, no more issues. I'm so happy I finally managed to set it right. Your wisdom saved me. :) Thank you a lot for the wonderfull support. 
Reply all
Reply to author
Forward
0 new messages