Tasker does not recognize change in power state, related to CROMI? - Asus Transformer TF700

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.

Related

[Q] Battery Drain - 98% Wifi

The last few days my TF101 keeps draining over night, when I look at my battery stats it says 98% is Wifi. I'm not sure what is happening, should I think it is the Dock battery drain problem, or do you think I have a bad app that is keeping wifi going ? If so, how can I find it? I am on a custom rom Revolution 2.3.0 and was wondering if I may be better off trying to go back to the stock WW rom but with root? in preparation for ICS?
Also could this be sleep problem maybe?
Thanks all
Try auto airplane mode. Worked for me.
That is mostly a bad app. Try to get a task manager software to see what's on and kill it. It is most certainly a programe that connects to the Internet most of the time like torrent based software that is always uploading...
I had this problem once or twice when flashing new ROMs.
Just try to reflash the ROM of your choice and wipe cache also.
Let me know if this helped!
What apps are you running?
Check your apps. To test this, just before you put the TF to sleep. go into wifi settings and set wifi to go off when screen does. put it to sleep. I found this works, but something is resetting wifi off to never once you wake it up. Permissions on most apps are way more than needed.
Just noticed it is set up in device settings to never disconnect from wifi. What should the default setting be for the device? I have set back to disconnect on screen going off. What do you guys have set for yours?
I have a B50 dock and a B60 Transformer. My Transformer began draining no matter which options I set with wifi and screen etc., previously I had a very low battery drain. I started looking around and discovered some apps that I had installed had automatically initiated auto synch settings. I disabled all auto Synch options and now it is going into deep sleep and battery drain has stopped.
asus transformer 101g - all widgets and programm show me 8-9-7 Mv and do not show normal voltage ? WTF ?
wilx said:
Just noticed it is set up in device settings to never disconnect from wifi. What should the default setting be for the device? I have set back to disconnect on screen going off. What do you guys have set for yours?
Click to expand...
Click to collapse
You need to check that setting each time before you put TF to sleep as some apps will change it on you. Apps seem to demand way mote permissions than they need to do their job
change the wifi settings "disconnect policy" to " never when plugged in". I did that running prime 211 and it saved tons of battery. Its more absolute control. I check my tf all the time so i dont miss any updates n stuff. I have my phone too.
Matterhorn said:
I have a B50 dock and a B60 Transformer. My Transformer began draining no matter which options I set with wifi and screen etc., previously I had a very low battery drain. I started looking around and discovered some apps that I had installed had automatically initiated auto synch settings. I disabled all auto Synch options and now it is going into deep sleep and battery drain has stopped.
Click to expand...
Click to collapse
Thanks, are all these autosync settings in one place or in the individual apps
wilx said:
The last few days my TF101 keeps draining over night, when I look at my battery stats it says 98% is Wifi. I'm not sure what is happening, should I think it is the Dock battery drain problem, or do you think I have a bad app that is keeping wifi going ? If so, how can I find it? I am on a custom rom Revolution 2.3.0 and was wondering if I may be better off trying to go back to the stock WW rom but with root? in preparation for ICS?
Also could this be sleep problem maybe?
Thanks all
Click to expand...
Click to collapse
I chased this up recently in http://forum.xda-developers.com/showthread.php?t=1276670
I've found the same issue, something is resetting my wifi policy - probably some app or service I've downloaded.
I'm running Revolver 3.11.1 with default rom and even after flashing and trying the old dock firmwire I'm not having any luck. I've been investigating writing a service to identify and log changes so I can track the culprit, in the meantime I'm using auto airplane off as someone else suggested, its a perfectly working alternative but I'd rather minimise the bits and pieces trying to regulate what should be normal system controls...(given thats likely what got us here in the first place )

Auto power on/off with loss or gain of power?

I am planning a install of a tablet with cm9 into my vehicle and was wondering if there is a way to make the device auto turn on when i start my car and auto shutdown when i turn vehicle off?
This will be a Kindle Fire as it is the exact measurements i need and will have a custom rom on it.
Any help with this is much appreciated.
Look into the application Tasker. I'm not sure about automatically turning back on, but it will certainly turn it off for you.
However, just scaling down the CPU, turning off all radios, and the screen when not powered may suit your needs, and can be more easily done with Tasker.
(Edited because I misread a bit)
android (like windows and smbian) cant auto turn on the device, auto off, yes
winol said:
android (like windows and smbian) cant auto turn on the device, auto off, yes
Click to expand...
Click to collapse
the kindle fire is android based and it auto turns on with power..
Also this app enables this feature on specific device https://www.google.com/url?sa=t&rct...NyyCfaUMp8XfX5OYg&sig2=LshdXHh-_Rn_iS-jrJB0nQ
guess my solution is done, even after installing custom rom on kindle fire it auto turns on with power source.
Anyone know how to get a device to auto power off with loss of power?
If your going to say Tasker, please explain how you got it to work

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.

[App] [Tasker] "Stay on" display issue : need help

Hi guys,
I'm using Tasker on my Galaxy Note 1, and I'm facing a huge issue :
I created a task for my car : when detecting my car's bluetooth, it must launch a few apps, and toggle "Display-Stay on" with AC or USB Power, so that my phone's screen stays switched on as long as it is plugged.
There's another task when leaving the car (ie car's bluetooth not detected) where I put "Stay on" to "never".
Seemed to work, but unfortunately I just noticed that now, my screen won't shut off anymore. I have to press the power button to switch it off.
What is surprising is 1) those tasks are not running anymore and 2) I went into the settings and tried to change to time to switch off the screen (set it to 30s) but didn't work...
Do you how can I put the setting back in order?
Here are the details :
- Samsung Galaxy Note 1
- Jelly Bean 4.1.2 LSZ stock, not rooted
Thanks a lot guys for your kind help!!!
soulboogaloo said:
Hi guys,
I'm using Tasker on my Galaxy Note 1, and I'm facing a huge issue :
I created a task for my car : when detecting my car's bluetooth, it must launch a few apps, and toggle "Display-Stay on" with AC or USB Power, so that my phone's screen stays switched on as long as it is plugged.
There's another task when leaving the car (ie car's bluetooth not detected) where I put "Stay on" to "never".
Seemed to work, but unfortunately I just noticed that now, my screen won't shut off anymore. I have to press the power button to switch it off.
What is surprising is 1) those tasks are not running anymore and 2) I went into the settings and tried to change to time to switch off the screen (set it to 30s) but didn't work...
Do you how can I put the setting back in order?
Here are the details :
- Samsung Galaxy Note 1
- Jelly Bean 4.1.2 LSZ stock, not rooted
Thanks a lot guys for your kind help!!!
Click to expand...
Click to collapse
There's a few things that could be wrong and without seeing EXACTLY how you set it up, I can't help.
BTW, you should ask this type of question in the tasker forums. It's in Google groups.
Sent from my Nexus 4 using xda premium

TASKER: How to shutdown if not charging?

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

Categories

Resources