TASKER: How to shutdown if not charging? - Android Apps and Games

Ok, i have a Nexus7 in my car and use tasker to shut it down when i stop the car and power goes off.
(The display is turning off due to a integrated function in the kernel I use (timurs)
Today this is what tasker does:
- If power is disconnected
- wait 10 minutes
- if display is off shutdown tablet
This is what I want tasker to do:
- If power is disconnected
- wait 10 minutes
- if power is disconnected shutdown tablet
but I find no options for this, someone who can help?

Set a custom variable if it's not charging. Then use that custom variable to check against 10 minutes later.

Corndude said:
Set a custom variable if it's not charging. Then use that custom variable to check against 10 minutes later.
Click to expand...
Click to collapse
thanks for the reply, could you tried to explain a little more detail?
I'm pretty noob at tasker
This is my config:

bump

Related

Favorite Tasker Profiles

What are some of your guys's favorite Tasker profiles for your GS3?
aaronfuhrer said:
What are some of your guys's favorite Tasker profiles for your GS3?
Click to expand...
Click to collapse
One of my more useful ones is a set of Bluetooth controls. It has 3 core profiles and any number of time profiles that will turn Bluetooth on at a specified time and disable it after so many minutes with a few different conditions to handle active connections and such. This keep Bluetooth off for most of the day and only turns it on when I normally need it the most.
Profile Name: Bluetooth Noon
(I have three of these. One for the morning drive to work, one for lunch time and one for the drive home after work)
Contexts:
Time - 11:45
Days - Mon, Tue, Wed, Thu or Fri
Tasks:
Enter Task
1.) Bluetooth - Set On
2.) Variable Set - Name %BTSchedActive To yes
3.) Wait - MS 0 Seconds 0 Minutes 30 Hours 1
4.) Variable Set - Name %BTSchedActive to no
5.) Profile Status - Name Bluetooth Countdown Set On
Profile Name: Bluetooth Connected
Contexts:
Bluetooth Connected - *, *
Tasks:
Enter Task
1.) Variable Set - Name %BTConnActive To yes
Exit Task
1.) Variable Set - Name %BTConnActive To no
2.) Profile Status - Name Bluetooth Countdown Set On
Profile Name: Bluetooth Countdown
Contexts:
Variable Value - %BTConnActive Matches no
Variable Value - %BTSchedActive Matches no
Tasks:
Enter Task
1.) Profile Status - Name Auto Off Unpaired Bluetooth Set On
Profile Name: Auto Off Unpaired Bluetooth
Contexts:
NOT Bluetooth Connected - *, *
Variable Value - %BLUE Matches on
Tasks:
Enter Task
1.) Variable Set - Name %TIMCOUNTER To %TIME + 900
2.) Wait - MS 0 Seconds 0 Minutes 1 Hours 0 Until %TIMES > %TIMCOUNTER
3.) Bluetooth - Set Off If %PACTIVE ~ *Auto Off Unpaired Bluetooth*
Edit: I've attached the XML files for ease of import. Just rename them from .txt to .xml after you download them.
Would anyone be able to create a tasker profile to disable the LED notification during certain hours (for TouchWiz)? Example, turn off all LED notifications at 11pm, turn back on at 7am.
s197 said:
Would anyone be able to create a tasker profile to disable the LED notification during certain hours (for TouchWiz)? Example, turn off all LED notifications at 11pm, turn back on at 7am.
Click to expand...
Click to collapse
Try these out. The Disable Sync at night has the time component and prevents email and other Google sync items from being sync during that time frame (I have to leave my phone off silent for On-Call pages, but hate getting email notifications and such at 2am). With the below, from 11:30pm to 6:20am Sync is disabled. As a result, any notifications that do come in will trigger the other two profiles to get ride of the notification light. On handles the initial notification received the other turns the light back off if you turn the screen on the off again (normally the notification is reset and it would flash if we didn't add this extra step. The two that issue commands require Root. It would be best to manually run them once to ensure Tasker has the permissions it needs.
If you don't want sync disabled, then change the profile Active attribute in 'Disable Notify Light @night' to a Time range. Hope this helps.
Profile Name: Disable Notify Light @night
Contexts:
Notification - *, *
Profile Active - Disable Sync At Night
Tasks:
Enter Task
1.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
Profile Name: Disable Notify Light
Contexts:
Display State - Off
Profile Active - Disable Disable Notify Light @night
Tasks:
Enter Task
1.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
Edit: I've attached the XML files for ease of import. Just rename them from .txt to .xml after you download them.
Will try this out tonight, really appreciate your help and quick response!
Thanks for those great profiles, ViperRacer. I hope you don't mind if I ask you a quick question. You don't need to go to the time to make one out if you don't want to, but I've been trying to make a profile to disable the lock screen when I'm at home. I have it set to disable when I'm on my Wi-Fi, but it only seems to work 50% of the time. It'll be off for a while, then randomly turn on again. Any help would be appreciated! Thanks again!
aaronfuhrer said:
Thanks for those great profiles, ViperRacer. I hope you don't mind if I ask you a quick question. You don't need to go to the time to make one out if you don't want to, but I've been trying to make a profile to disable the lock screen when I'm at home. I have it set to disable when I'm on my Wi-Fi, but it only seems to work 50% of the time. It'll be off for a while, then randomly turn on again. Any help would be appreciated! Thanks again!
Click to expand...
Click to collapse
I'd be curious to know what your Advanced Wi-Fi Settings were, specifically the 'Keep Wi-Fi on during sleep'. If it is set to 'Never' or 'Only when plugged in' it will turn off the Wi-Fi at some point while the phone screen is off, thus causing the tasker profile to stop running until the phone is woken up again which would happen second to you turning on the phone and being presented with the unwanted lock screen.
I would suggest setting that option to 'Always' and see if it yields better results.
ViperRacer said:
Try these out. The Disable Sync at night has the time component and prevents email and other Google sync items from being sync during that time frame (I have to leave my phone off silent for On-Call pages, but hate getting email notifications and such at 2am). With the below, from 11:30pm to 6:20am Sync is disabled. As a result, any notifications that do come in will trigger the other two profiles to get ride of the notification light. On handles the initial notification received the other turns the light back off if you turn the screen on the off again (normally the notification is reset and it would flash if we didn't add this extra step. The two that issue commands require Root. It would be best to manually run them once to ensure Tasker has the permissions it needs.
Click to expand...
Click to collapse
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
s197 said:
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
Click to expand...
Click to collapse
That's rather strange. The disable auto sync is one of the simpler profiles and should have worked. I hate to ask, but is the profile enabled (green check mark)? All three should be enabled at all times. Try modifying the profile and set the time range to be something that would force it to activate now and plug it into a power source. If you don't want the power source requirement (which is another possibility) just remove that context. I personally keep it in case I'm out late with friends so I continue to get email even if it is past the hour.
s197 said:
I tried the profiles last night and unfortunately it didn't work. The auto-sync didn't shut off and the LED notification stayed on. I did run it manually to allow root so I don't think that was the issue. Any idea why it didn't work?
Click to expand...
Click to collapse
I also ran this last night.
In order for the profile to kick in it needs to be during the time specified and plugged in.
Once I plugged in my phone my sync turned off.
My red battery charge light did come on. Not sure if this stayed on the whole time or not. Later at night when I woke up I did not see the green charged light on.
At the specified time in the morning, while still plugged in my sync turned back on and I received my email messages.
So for me this worked well, but I will need to check to see why the red light stayed on. I would have expected the profile to kill this light too.
Thanks for these profiles they worked pretty good for me.
Austin808 said:
...My red battery charge light did come on. Not sure if this stayed on the whole time or not. Later at night when I woke up I did not see the green charged light on...
Click to expand...
Click to collapse
I had turned my charging light off within the first day of getting the phone so I've never actually tested that part. I would take a guess that there is no notification occurring, thus the profile isn't triggered killing the LED for charging. The Green LED is killed because we do get a notification in the bar for a full charge. One solution is to maybe add another couple of tasks in the Disable Sync At Night profile that waits for 10 seconds and then issue the command there to kill off that light. But thats only a guess. I'll play around with it and see if that would fix it.
Update:
I tested out this and it worked. Screen was off and within 10 seconds the led was shutoff.
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
2.) Wait - Seconds10
3.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
This will take care of the initial red charging light. As a note, the light in theory would come back if the screen was turned back on and off but the other profile triggered at display off will handle that condition. Adjust the 10 second wait as needed if your screen timeout is longer. May not be much of an issue though as the other profile should kick in in the event the screen stays on long enough.
ViperRacer said:
That's rather strange. The disable auto sync is one of the simpler profiles and should have worked. I hate to ask, but is the profile enabled (green check mark)? All three should be enabled at all times. Try modifying the profile and set the time range to be something that would force it to activate now and plug it into a power source. If you don't want the power source requirement (which is another possibility) just remove that context. I personally keep it in case I'm out late with friends so I continue to get email even if it is past the hour.
Click to expand...
Click to collapse
Doh! I was testing it without it being plugged in. I bet that was the problem, thanks I'll adjust to remove that feature and see if it works.
Edit: Works!
ViperRacer said:
Update:
I tested out this and it worked. Screen was off and within 10 seconds the led was shutoff.
Profile Name: Disable Sync At Night
Contexts:
From - 23:30 Till 06:20
Power - Any
Tasks:
Enter Task
1.) Auto Sync - Set Off
2.) Wait - Seconds10
3.) Run Shell - Command echo 0 > /sys/devices/virtual/sec/led/led_pattern Use Root
This will take care of the initial red charging light. As a note, the light in theory would come back if the screen was turned back on and off but the other profile triggered at display off will handle that condition. Adjust the 10 second wait as needed if your screen timeout is longer. May not be much of an issue though as the other profile should kick in in the event the screen stays on long enough.
Click to expand...
Click to collapse
Thanks, this information helped me to find a solution that works for me.
I added the Wait 10 seconds to the task Notify Light Off.
Added Notify Light Off task to the Disable Sync At Night profile
Changed profile Disable Notify Light, change the Profile Active to Disable Sync At Night (if I did not do this if I turn on the screen then back off again the light would stay on)
I think this is working perfectly for me now. Thanks again.
I have these (no order) I can think of:
1. power plug: turn keyguard off, keep screen on
2. wifi off at 10:30 pm in case I forget to turn it off (battery savings)
3. sync off 10:30-6am so I do not get emails and such while I sleep
4. on sunday's from 9-10:15 it mutes the phone while I am in church
5. from 11:45pm until 5:30am it goes into airplane mode (battery savings)
6. when Navi app is run, GPS is turned on, screen brightness is turned up, keyguard is turned off, screen stays on
7. BT turns off at 9pm (battery savings)
8. whenever BT initially syncs, a tone is played to tell me the phone is connected and ready
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
aaronfuhrer said:
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
Click to expand...
Click to collapse
There is a little known bug/feature of the S3. I found and saved this tip a while back. Needs to be done every time you reboot though.
WiFi Powersave
Using the phone dialer, dial *#0011# then press the menu key, then from the popup menu, select WiFi. You will see a button to turn off the power save mode. It will stay off until the phone is restarted, and this should allow control by Tasker to be more consistent. Press the back button repeatedly to get out of these screens.
Thanks for tips I was wondering why I couldn't get the lock screen profiles to work either. What if they were tied to cell towers near home?
Sent from my SCH-I535 using Tapatalk 2
aaronfuhrer said:
Hmm, that keep Wi-Fi on during sleep option didn't seem to help. Not sure what else it would be. Thanks for trying anyways!
Click to expand...
Click to collapse
My lock screen has randomly appeard on me as well.
Profiles:
Wi-fi on when in range of certain towers
lock screen off when connected to router
I seem to get the random unexpected lock screens after a rebooting, and thought I had it narrowed down to cycling tasker on and off a few times. I just started using tasker a couple days ago, will keep tinkering with it, let me know if this helps you at all.
I just started using tasker and I'm trying to create a (what should be) very simple profile.
I want to have my display brightness normally set to 36% on battery and 75% when plugged in.
It works very well, except that if I reboot my phone while plugged in, it will not go back down in brightness once i unplug it.
I simply set a "task" to set the brighness at level 165 when power source is AC. I don't see a selection for battery, just "any, AC or USB".
How do I get it to check if it's not plugged in to set the display brighness?
modmandan said:
I just started using tasker and I'm trying to create a (what should be) very simple profile.
I want to have my display brightness normally set to 36% on battery and 75% when plugged in.
It works very well, except that if I reboot my phone while plugged in, it will not go back down in brightness once i unplug it.
I simply set a "task" to set the brighness at level 165 when power source is AC. I don't see a selection for battery, just "any, AC or USB".
How do I get it to check if it's not plugged in to set the display brighness?
Click to expand...
Click to collapse
Try using the Invert option with Both AC/USB. It should fire when power is not provided by either of those sources.

Help: Batter savings on car mounted tablet

Hello,
I wanted to get some suggestions on how i can save battery power on my Xyboard 10.1" Verizon LTE tablet mounted on the dash of my car.
Running Android 4.0.4.
It's power is USB hardwired to a 3v plug (done professionally by local shop) that only gets power when i turn my car on.
I'm using Tasker to launch tasks based on it's power state.
USB power off:
- mobile data off
- wifi off
- bluetooth off
- kill app Sirius
- kipp app Poweramp
- go home
- screen off
USB power on:
- wait 1 second
- mobile data on
- wifi on
- bluetooth on
- toggle bluetooth
- toggle bluetooth (to make sure it connects to bluetooth audio receiver attached to car's stereo headunit)
- launch app Sirius
Is there a "super sleep" mode that i can launch from tasker that will shut everything down except for a trickle of the Android OS listening for a wakeup command?
I noticed under Tasker's display actions these 2 options:
- Lock
- System Lock
does anyone know what they do? Will activating these conserve battery power?
I'm basically asking how to put my tablet into the deepest sleep possible, while still allowing it to wakeup with USB charging power on.
many thanks!
Spending such a high percentage of time at 100% battery charge is actually bad for the battery. So, whether or not you run on battery power, you will inevitably notice a decrease in battery life over time.
If you're not going to use your car for an extended period of time, you could power the tablet off, but you probably already knew that.
Do you leave the tablet mounted in the car at all times, or do you take it with you like a cell phone?
(Sorry, I do not know the answers to your questions about Tasker.)
post-mortem said:
Spending such a high percentage of time at 100% battery charge is actually bad for the battery. So, whether or not you run on battery power, you will inevitably notice a decrease in battery life over time.
If you're not going to use your car for an extended period of time, you could power the tablet off, but you probably already knew that.
Do you leave the tablet mounted in the car at all times, or do you take it with you like a cell phone?
(Sorry, I do not know the answers to your questions about Tasker.)
Click to expand...
Click to collapse
Interesting point about keeping battery at 100%...makes sense.
i leave the tablet in the car always...the mounting bracket has a keyed lock.
however, even after i turn off data,wifi,gps,etc, i still loose 10% battery over a 12hr period. that's very acceptable.
Do you know of an app that puts the phone/tablet into deep sleep (instead of me using tasker to turn all off)?
chumboy said:
Interesting point about keeping battery at 100%...makes sense.
i leave the tablet in the car always...the mounting bracket has a keyed lock.
however, even after i turn off data,wifi,gps,etc, i still loose 10% battery over a 12hr period. that's very acceptable.
Do you know of an app that puts the phone/tablet into deep sleep (instead of me using tasker to turn all off)?
Click to expand...
Click to collapse
improve system Parameters.improve cpu Parameters
onexuan said:
improve system Parameters.improve cpu Parameters
Click to expand...
Click to collapse
huh? can you explain more?

[v1.3] Tasker: Screen off=wifi/data off(no traffic+)AutoSync+Night/Reduce CellStandby

Cell Standby Battery Drain:
Hey Guys!!
Maybe some of you know it. The cell standby drains a lot of battery. I live in a mounterial arrea and it's really annoying. So I searched a bit on Google and build a small Tasker "Script" to reduce the draining. I'm using it now for 6 weeks and it's working good! It reduced my cell standby from 35% to 2%.
So what's the magic?
First tasker will turn Airplane Mode (only cell!) on if you don't have signal. Then it'll wait for 5 minutes and check it again. Yes this sounds really simple but it was hard to build it.
I hope I can help you with sharing my experiences!
Screen off=data/wifi off it no traffic (with Night Mode):
Hey Guys, I have been looking for a solution for this problem for quite a while myself. Now I found a good solution to collect the current traffic on all interfaces. I will share a detailed explanation on how to set it up.
First off, what will happen?
If you want tasker to turn Wifi or Mobile Data off when you the turn Screen off normally you have the problem that it will interrupt all downloads. This Profile will try to read the traffic. If the traffic is below 15 kb it will turn wifi or mobile data off. If not it’ll wait until it is below 15kb. Later If you turn your screen on again tasker will activate mobile data and wifi. It'll wifi doesn't connect to a network (in the next 30 seconds) it will turn wifi off.
How does Tasker work? How can I optimize these profiles/tasks for my needs?
First what does tasker do? This is for the people who don't understand tasker. Tasker has 4 tabs (Profiles, Tasks, Scenes and Vars) but I won't talk about Scenes cz I didn't uses it yet. I also won't talk about Vars (variables) cz they are self explaining.
What are Profiles?
Basically profiles contain conditions (for example if display on/off or wifi on/off) and run a task if the condition is true. Example: If display off turn wifi off.
What are Tasks?
A task is something like a list of actions which the phone should do. (for example turn data on/off or run a specific app)
How do the profiles from this thread?
The profile AutoSync (Screen off) runs every 10 minutes while the screen is off. It turns data/wifi on checks for new messages and turns it off. It has a variable called "%SLEEP". It will only run if "%SLEEP" doesn't match "1".
The profiles Display (Data) and Display (Wifi) turns data/wifi on when the user turns the screen on. When the screen is off again it will check traffic for 30 seconds. If the traffic is below 15kb/s it will turn data/wifi off. If not it will wait 2 minutes and check the traffic again for 30 seconds until the traffic is below 15kb/s.
The profile Night (week), Night (weekend) turn the phone into airplane mode and sets the variable "%SLEEP" to "1".
The profile Wifi connected just changes the variable "%CONNECTION to "1" or removes the "1". This is needed for the Display (Wifi) profile.
On my todolist:
You say..
Changelog v1.3:
Added Greenify's hibernate now to both screen off tasks
Changelog v1.2:
Added AutoSync (every 10 minutes if screen is off)
I'm using this profiles on my Samsung Galaxy Nexus and it works very well!!
Feel free to ask me if you have problems! I'll try my best to help you.
These profiles include the greenify hibernate action from its plugin. If you have troubles with it you have to remove and readd it (on both Screen off tasks) cz my plugin is german. (plugin → hibernate)
You need Secure Settings for tasker or it won't work!! I used Secure Settings because Secure Settings can off only the cell radio. Tasker supports it, too. But not for Jelly Bean and I'm using 4.2.2 :/
How to import *.prj.xml files:
Unzip the *.prj.xml file in your Tasker/projects directory and then import it in Tasker by long-clicking the home icon or any of the other tabs. If you don't have the home tab, swipe down from the top in Tasker to show the tabs. (beginner mode must be disabled!)
Thanks for this 8D!
Useful for a beginner like me ^^!
In task screen off, why do you wait for 30 sec's in Action number 5? Also how important is the Stop Task Action? What happens if I don't include it? I mean anyways, the following 'else' won't be executed if the Mobile data turned off by the 'if'.
Just what I looked for, but How can I install your *.zip file to tasker? I just cant install it, any hint? where should I put the zip file?
kala123 said:
Just what I looked for, but How can I install your *.zip file to tasker? I just cant install it, any hint? where should I put the zip file?
Click to expand...
Click to collapse
unzip it to /sdcard/Tasker/auto-import. Then import it using tasker.
The-Droidster said:
In task screen off, why do you wait for 30 sec's in Action number 5? Also how important is the Stop Task Action? What happens if I don't include it? I mean anyways, the following 'else' won't be executed if the Mobile data turned off by the 'if'.
Click to expand...
Click to collapse
You have to wait 30 seconds or how long you want to wait cz in action number 2 tasker gets a traffic number from the system. After 30 seconds it gets another. Tasker subtracts the values to get the actual traffic in bytes. So Tasker can look if the traffic is below 15 kb/s. Yes you're right. It's my fault. You don't need the Stop Task Action. It's from the old Script. I forgot to remove it. Thanks for your hint!
Hi parthipanramesh,
what I metioned inside the other Thread seems to be working A okay...
What are the modifications/fixes in this version? I can't tell from looking at it here.
RLicher said:
Hi parthipanramesh,
what I metioned inside the other Thread seems to be working A okay...
What are the modifications/fixes in this version? I can't tell from looking at it here.
Click to expand...
Click to collapse
Hi RLicher,
Some people had the issue with the maths calculation of CHECKB_WIFI - CHECKA_WIFI. So tasker will set the variables to 0 if they aren't set. (cz wifi is off or something else). And I deleted/merged some Actions.
You can use the version from the other thread if you don't have problems
I'm using this on SGS3 but notice two issue... While listening to Pandora when a song ends the data or wifi will get disabled so the next song cant start. Second wifi or data will not be reenable when the screen is enabled.
For the record i just imported the files within the zip.
nappent said:
I'm using this on SGS3 but notice two issue... While listening to Pandora when a song ends the data or wifi will get disabled so the next song cant start. Second wifi or data will not be reenable when the screen is enabled.
For the record i just imported the files within the zip.
Click to expand...
Click to collapse
First you have to increase the 30 seconds from the two Screen off tasks [A5] because Tasker checks the traffic for 30 seconds. If Pandora loads a song for example in 40 seconds Tasker will disable data and wifi after it has been loaded. So data and wifi are turned off when Pandora tries to play the next song. Increase the value and you should be good.
And for your next issue:
Delete the imported profile and create a new profile:
Name: Whatever
Context: State → Display On
Task: Create a task which enables data and wifi
Exit Task: Screen off
Re: Tasker solution: Screen off=wifi/data off if no traffic
The-Droidster said:
unzip it to /sdcard/Tasker/auto-import. Then import it using tasker.
Click to expand...
Click to collapse
How do we import?
Sent from my SGH-T999 using xda premium
ktetreault14 said:
How do we import?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Sorry I didn't read your previous post.
Unzip the *.tsk.xml files to sdcard/Tasker/tasks and the *.prf.xml to sdcard/Tasker/profiles. Then open tasker tap on tasks and hold it until a menu appears. Tap on import and you should see the files. Do this for the profile aswell.
First tasks and then profiles!! Or you'll get an error that tasker couldn't find the the task for the profile.
Thanks just pinched your files and made it turn on when the screen comes on.
My current profiles means that Wifi turns off when i leave the office and stays off until I turn it on again.
If im somewhere with no wifi will my wifi be turned on when my screen is turned on?
Would i need to create another profile which says if wifi is on and not connected to a network after X minutes
then please disable?
If so is that an easy one to create?
Thanks
Andy
Iceax123 said:
Thanks just pinched your files and made it turn on when the screen comes on.
My current profiles means that Wifi turns off when i leave the office and stays off until I turn it on again.
If im somewhere with no wifi will my wifi be turned on when my screen is turned on?
Would i need to create another profile which says if wifi is on and not connected to a network after X minutes
then please disable?
If so is that an easy one to create?
Thanks
Andy
Click to expand...
Click to collapse
First yes it will enable wifi.
I solved it with 2 profiles. One changes a variable if wifi is connected or not and the other one is turns wifi on, waits 30 seconds, checks the variable. If my phone is not connected to a wifi it will turn it off.
Do you want my profiles?
Re: Tasker solution: Screen off=wifi/data off if no traffic
Yes please that would be excellent
Thanks
Andy
Sent from my HTC One X using xda app-developers app
Re: Tasker solution: Screen off=wifi/data off if no traffic
Just one last question if I may.
Using this if I turn of data as well will that stop any emails coming in.
I have 3g turned off so am always on 2g but would still want push mail from one account to get through
Thanks
Sent from my HTC One X using xda app-developers app
Also found another issue now
I have a rule set up so when connected to works wi-fi my ringer and notifications are set to low.
But now when i turn my screen off wifi drops and my volume goes up. ARGHHHHH
Andy
Iceax123 said:
Yes please that would be excellent
Thanks
Andy
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Look in the OP!! New version
Iceax123 said:
Just one last question if I may.
Using this if I turn of data as well will that stop any emails coming in.
I have 3g turned off so am always on 2g but would still want push mail from one account to get through
Thanks
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Yes it will turn generally data off. 2g or 3g it doesn't matter.
Iceax123 said:
Also found another issue now
I have a rule set up so when connected to works wi-fi my ringer and notifications are set to low.
But now when i turn my screen off wifi drops and my volume goes up. ARGHHHHH
Andy
Click to expand...
Click to collapse
It have nothing to do with my profiles and tasks. They only enable connections, check traffic and disable the conncections. Maybe another profile isn't working correctly.
And next time you can edit your post. You don't need to make 3 posts.
Thanks again parthipanramesh, will import these tonight and try
Andy
I am new to tasker and i have been fiddling with it.
How would I add auto sync turns on every 15 minutes when screen is off and auto sync turns on when screen is on to this "script"?

Tasker does not recognize change in power state, related to CROMI?

Hi everyone. I'm trying to figure out why my power profile in Tasker is not working.
Device: ASUS TF700
ROM Version: CROMI 3.4.6
Kernel: Stock kernal by _that v4
Bootloader: Jellybean
Tasker version: 1.3.3u2
Accessories: TF700 is plugged docked into ASUS Connect Dock. This is plugged into a power strip. I use the ON/OFF switch on the strip to control power.
Other Settings: Allow External Access is granted in Tasker Preferences. Tasker is a Device Administrator Access.
Objective: When tablet has power, display timeout changes to 23 hours . When screen loses power, display timeout changes to 15 seconds.
Here's how I set it up:
Profile Name: Power Status
State: Power > Any
Enter Task:
---Display Timeout: 23 hours
---WiFi: On
Exit Task:
---WiFi: Off
---Display Timeout: 15 seconds
PROBLEM: This profile works perfectly once. After the charging cable is disconnected, the Exit task successfully works. The problem is, when the charging cable is plugged back into the tablet, the profile is not triggered again. It runs once and then never again.
I also get the following error message in Tasker: http://goo.gl/XA5fs
There is little documentation on this error message and I'm trying to get help from the Tasker Group. I wanted to ask people here in case someone has some experience with this.
Has anyone experienced this problem before or have some advice?
Thanks a lot.
-matt
matt11601 said:
Hi everyone. I'm trying to figure out why my power profile in Tasker is not working.
Device: ASUS TF700
ROM Version: CROMI 3.4.6
Kernel: Stock kernal by _that v4
Bootloader: Jellybean
Tasker version: 1.3.3u2
Accessories: TF700 is plugged docked into ASUS Connect Dock. This is plugged into a power strip. I use the ON/OFF switch on the strip to control power.
Other Settings: Allow External Access is granted in Tasker Preferences. Tasker is a Device Administrator Access.
Objective: When tablet has power, display timeout changes to 23 hours . When screen loses power, display timeout changes to 15 seconds.
Here's how I set it up:
Profile Name: Power Status
State: Power > Any
Enter Task:
---Display Timeout: 23 hours
---WiFi: On
Exit Task:
---WiFi: Off
---Display Timeout: 15 seconds
PROBLEM: This profile works perfectly once. After the charging cable is disconnected, the Exit task successfully works. The problem is, when the charging cable is plugged back into the tablet, the profile is not triggered again. It runs once and then never again.
I also get the following error message in Tasker: http://goo.gl/XA5fs
There is little documentation on this error message and I'm trying to get help from the Tasker Group. I wanted to ask people here in case someone has some experience with this.
Has anyone experienced this problem before or have some advice?
Thanks a lot.
-matt
Click to expand...
Click to collapse
Which kernel are you using?
sbdags said:
Which kernel are you using?
Click to expand...
Click to collapse
Hi sdbags, thanks for the reply. And thank you for a great ROM.
I am using stock kernel v4 by _that. Also, fsync is enabled and I did not install any kernel tweaks while flashing CROMI 3.4.6. I am not using System Tuner.
Something else I noticed sdbags, Tasker does not recognize when BlueTooth is connected to any device. But, it does recognize when WiFi is connected.
Sounds like tasker needs updating for JB 4.2.1. CROMI is stock based and I haven't changed any functionality that would break blue tooth or power detection. Email the author of tasker. He is very responsive.
sbdags said:
Sounds like tasker needs updating for JB 4.2.1. CROMI is stock based and I haven't changed any functionality that would break blue tooth or power detection. Email the author of tasker. He is very responsive.
Click to expand...
Click to collapse
Hahaha, Sbdags, are you just woke up? In his post he already stated, he's using _that V4 and he already contacted the author and what's up with "Sounds like tasker needs updating for JB 4.2.1" ??? I didn't aware that our tf700 had JB 4.2.1!! lol.
buhohitr said:
Hahaha, Sbdags, are you just woke up? In his post he already stated, he's using _that V4 and he already contacted the author and what's up with "Sounds like tasker needs updating for JB 4.2.1" ??? I didn't aware that our tf700 had JB 4.2.1!! lol.
Click to expand...
Click to collapse
Oops Thought I was in the TF300 forum :silly:
I do have a copy of tasker as i use it on my phone. It has some problems with that as well though. Doesn't seem to be great on jelly bean.

[App][4.1+] Charger Extras (Out of beta ! )

Hi Guys.
I need help for testing a new app I've been working on.
It's an app that's truely "set and forget", that makes your smartphone even smarter.
When you're tired and just wants to sleep, plug in your phone to the charger and BAM the clock app is there, ready for you to set the alarm.
It will do various tasks when you plug in a charger, eg:
Open an app you define
Activate daydream (Screensaver) after a certain interval
Enable silent mode
Enable flightmode (Requires root)
Reboot phone after certain interval (Requires root)
Go to homescreen when charger is unplugged
Play sound when charger plugged/unplugged
Sound when charger plugged/unplugged
The reboot functionality is especially useful if you (like me) forget to reboot your phone sometimes. All Android phones run low on memory over time, and a reboot is the most effective way to avoid this.
This app won't run unless the phone is in charger = Next to none impact on battery life.
Reasons for app permissions:
MODIFY_AUDIO_SETTINGS - To be able to set silent mode
BIND_DREAM_SERVICE - To be able to start DayDream (On Android 5.0+)
RECEIVE_BOOT_COMPLETED - To know when the app rebooted the device (and act accordingly)
What do you think guys? Anything you will use?
If you have any suggestions/feature requests please don't hesitate to mail me at [email protected] or put an answer below- I'm fully open to new suggestions and they are very welcome.. :victory:
Installation
Install the app from Google Play
Thanks! :victory: :laugh: :highfive:
XDA:DevDB Information
Charger Extras, App for all devices (see above for details)
Contributors
dthomasen
Version Information
Status: Alpha
Current Stable Version: This is an app is tr
Created 2015-06-26
Last Updated 2015-06-26
Testing. Suggestions:
1. Optional notification sound/vibration when plugged/unplugged.
2. Optional notification sound/vibration when: a) full charged; b) unplugged and bellow certain battery level.
3. I think it must have a timer to activate the airplane mode (not all the times we charge that it should be enabled..., perhaps only at night).
Technical said:
Testing. Suggestions:
1. Optional notification sound/vibration when plugged/unplugged.
2. Optional notification sound/vibration when: a) full charged; b) unplugged and bellow certain battery level.
3. I think it must have a timer to activate the airplane mode (not all the times we charge that it should be enabled..., perhaps only at night).
Click to expand...
Click to collapse
Thanks, I'll add them to my upcomming feature list..
I just pushed a new release to Google Play
Changelog:
Declare superuser permission in manifest
Dialog boxes for root settings
Timer for flightmode
Sound when charger plugged/unplugged
I've approved the app for production.
Installation is now only to install from Google Play..
Enjoy guys
Thanks, but the airplane mode is (yet) to be more flexible.
If some other features come, I'll be able to uninstall other apps that has "similar" functionality, for instance:
1. Battery temperature on notification.
2. Options for not warning sound while headphones are connected, or while in call.
Seems a promising app. Thanks.
Technical said:
Thanks, but the airplane mode is (yet) to be more flexible.
If some other features come, I'll be able to uninstall other apps that has "similar" functionality, for instance:
1. Battery temperature on notification.
2. Options for not warning sound while headphones are connected, or while in call.
Seems a promising app. Thanks.
Click to expand...
Click to collapse
What more flexibility do you want in the airplane mode?
You're thinking battery temperature when charging only? Or all the time?
dthomasen said:
What more flexibility do you want in the airplane mode?
Click to expand...
Click to collapse
I want to start airplane mode only when charging overnight. If any charge starts the airplane mode, I'll lose calls and messages in the middle of the day. I'm an intensive user of the phone. I need to charge frequently, not only overnight. You've add the option (timer) to start airplane mode after some seconds, but it would be good, imho, if we have a period (from time to time) where the airplane mode is started. Charging outside of this period won't trigger the airplane mode.
dthomasen said:
You're thinking battery temperature when charging only? Or all the time?
Click to expand...
Click to collapse
The more configurability the better: if the user can chose for a permanent notification, it will help to keep the app alive.
I myself would like to set a temperature level when it reaches a predefined temperature.
Technical said:
I want to start airplane mode only when charging overnight. If any charge starts the airplane mode, I'll lose calls and messages in the middle of the day. I'm an intensive user of the phone. I need to charge frequently, not only overnight. You've add the option (timer) to start airplane mode after some seconds, but it would be good, imho, if we have a period (from time to time) where the airplane mode is started. Charging outside of this period won't trigger the airplane mode.
The more configurability the better: if the user can chose for a permanent notification, it will help to keep the app alive.
I myself would like to set a temperature level when it reaches a predefined temperature.
Click to expand...
Click to collapse
Ahh like that.. I'll add it to the upcomming feature list.
Expect an update sometime next week.
Thanks. :highfive:
New version submitted to Google Play..
Should show up in a couple of hours
Changelog:
- Restructured with material UI drawer
- Soft reboot type implemented
- Set when app should be active (Time of day)
- Flurry integrated
New version submitted.
Changelog:
- Fixed time activation when using times on opposite sides of midnight
- Ability to set independent sound for plug and unplugging
- Added feature to set minimum screen brightness when charging
- Added feature to launch app when unplugging (Useful for morning news reading )
Enjoy
Just submitted a new version - With a very requested feature
Changelog:
- Activate based on charger type:
- Wireless
- USB
- AC
Enjoy.

Categories

Resources