[app] prevent surface rt to enter standby mode - Windows RT Development and Hacking

this is a very tiny application to prevent windows rt to enter standby model without changing power plan, so you can control the standby model with task schedular.
a typical usage is to prevent standby, do some backup job, restore, which is my original purpose.
pay attention, you need the app to be running, otherwise it would take no effect. and hardware power button will also force the device to enter standby mode, which means, this app will also take no effect
there are several apps on windows 8 with the same funcationality, hope nothing has been ported to rt.
though not tried, it would also work for windows 8.
try standby without arguments to show a help.
supported commands
-set -- set the thread execution state.
-time -- sleep for a certain time, say -time 1 means sleep for 1 second.
-system -- use system mode.
-away -- use away mode.
-display -- use display mode.
briefly, system mode will prevent to enter standby mode, display mode will also prevent to shutdown the display, away mode will prevent from S3 sleep, if none of three modes are selected, this application will only reset the idel timer.
if none of set and time are selected, this application will print this help.
a typical usage is -set -system -time 100, to prevent computer from entering standby mode for 100 seconds.
or -time 100, to work just as sleep 100s in mingw.
for detail about the mode, please refer to http_://msdn.microsoft.com/en-us/library/aa373208(VS.85).aspx
some samples,
standby -t 10000 -s -sys -away
-- make the machine to enter system + away mode for 10000 seconds
standby -t 1
-- sleep for 1 second, usually using in a batch file
standby -t 10000 -s -sys -display
-- make the machine to enter system mode with display always on for 10000 seconds, usually you should use this app in this way
hope it would be helpful, the source code is at
http_://geminibranch.codeplex.com/SourceControl/BrowseLatest under standby
any suggestion or issues found, please mail me directly at [email protected]_hotmail.com

Related

[Q][TASKER] Several Questions

I have a few questions.
I tried to make my own Juice Defender replacement:
Data Check -
Contexts:
Time
From 6:30
every 15 min
To 01:00
Power
Any
Inverted
Tasks:
Stop
if %SCREEN ~ ON
Stop
if %CELLSIG < 1
Mobile Data
On
Auto-Sync
On
Wait
2 min
Auto-Sync
Off
Mobile Data
Off
For some reason I can't set an end task, but I think I got around it. What this should do is when my screen is off and I have service it should check for any sort of notifications (facebook, mail), correct? Also, will I still get texts and calls instantly or does Mobile Data include these?
you shouldn't use the wait there as while tasker is waiting those 2 min nothing else can run.
I posted my tasks for this in another thread recently: http://forum.xda-developers.com/showpost.php?p=11097712&postcount=14
Is there anything else I can use instead of wait? I don't really want to make 4 profiles. Also I tried doing something else and it's not working. I attempted to make a Night Mode, however it doesn't turn on:
Nightenable:
Contexts:
From 1:00 Till 6:29
Tasks:
Variable Set %NIGHT, 1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Night Mode:
Contexts:
Variable Set %NIGHT, 1
Tasks:
Lower Volume, etc.
why don't you want to use 4 tasks? That's the most ellegant way to do it
for the night mode don't set the variable but set the stuff you want straight away
I would do it in one task except I also have this:
Power Mode:
Contexts:
Power On
Tasks: (Menu)
(Night Mode) Variable Set %NIGHT, 1
(Normal Mode) Variable Set %NIGHT, 0
Vulf said:
I have a few questions.
I tried to make my own Juice Defender replacement:
Data Check -
Contexts:
Time
From 6:30
every 15 min
To 01:00
...
...
For some reason I can't set an end task, but I think I got around it. What this should do is when my screen is off and I have service it should check for any sort of notifications (facebook, mail), correct? Also, will I still get texts and calls instantly or does Mobile Data include these?
Click to expand...
Click to collapse
How I do this:
Profile: Sleep
Time
From 23:00
un-checked
To 05:59
---------------------------------------
Tasks: Sleep
Notification Pulse
Off​Ringer Volume
5​Mobile data
Off​WiFi
Off​Bluetooth
Off​Auto-Sync
Off​Display Brightness
15​---------------------------------------
Exit Tasks: Awake
Notification Pulse
On​Ringer Volume
15​Auto Brightness
On​
I utilize a whole other Project with several Profiles to control the Wifi & Mobile Data usage. now working on a BT radio policy

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.

Tasker Profiles

What's your favorite Tasker profile?
Mine are
1. wifi auto off and on depending on which cell tower I'm connected to.
2.automatic screen shade depending on light sensor % bye bye screen filter.
3. media selection popup upon headphone plug in.
4.pocket mode phone screen off and vibrate on when phone put in to pocket headphone jack first.
Feel free to share ideas I just started using it my self and don't know much.
Here is a good read :
http://forum.xda-developers.com/showthread.php?t=1110775
Link to my tasker profiles: https://docs.google.com/folder/d/0B_iZBWQpaR0RLWM1SzItYVZPYWc/edit?usp=sharing
To import add profiles to sdcard/tasker/profiles
Then in tasker long press profiles tab and then import.
Sent from my SAMSUNG-SGH-I997 using xda app-developers app
Kind of hard to believe no one has any tasker profiles or ideas
Sent from my SAMSUNG-SGH-I997 using xda app-developers app
1. Silence notifications while I'm sleeping
2. Max volume & brightness when in car dock
3. Auto volume setting when plugging in headphones
It's always interesting to see what others are doing.
1. wifi auto off and on depending on which cell tower I'm connected to.
Click to expand...
Click to collapse
I have that, except, it only disconnects if %WIFI !~ connect*.... prevents dropouts due to intermittent tower signal when I’m connected.
Some other stuff I have:
Battery low warnings: vibrate/notify at 40%, audible/nofify at 30%, 20%, 10% (if silent is off).
Sync newsrob news reader at 3AM every morning (while I’m sleeping). Turns wifi on beforehand and off afterwards. This takes awhile... better to take care of it while I’m sleeping.
Turn on Display Rotation for Apps that needs it (my webbrowser, youtube, etc). On exit task Display rotation is turned off (saves battery to keep it off).
At 10:50AM every morning it pops up a message asking if I want to reboot. If I do not respond, nothing happens. I think it’s good to reboot every once in awhile for general principle and this is a time when I’m likely to have my phone on my desk at work, but not using it. Also reminds me it’s almost lunch time. Also if I tap the widget it sends another text and updates the value on the widget based on response.
At 11:00 AM every morning, it sends a text message to AT&T asking for my data usage for the month. Upon receipt of the message, it is parsed and the result is posted to a widget label on my home screen so I know how much I’ve used this month. Note that 11:00AM central time is a good check, other times of day the info you receive from AT&T may not be up to date.
When data is on I place a permanent notification to remind me that it is on. Notification goes away when data is turned off.
When screen goess off and not back on within a short period, I turn data off (to save data and battery) and turn display rotate off.
Battery % display widget in my dock – update every 5 minutes while screen is on. Color changes depending on level (green 75 – 100%, blue 50-75%, yellow 25-50%, red 0-25%. This also uses Zoom widgets (works nice with Tasker)
Screen Brightness level display in my dock. Tap to pull up menu to change brightness level and adjust mode between manual and auto (auto is also based on Tasker sensing light level). If brightness level is set above 40%, the displayed brightness number turns red and I get a perfmanent notification (so I don’t leave it on high). This also uses Zoom widgets.
Flaghlight widget. Tap to start flashlight. Then it asks me every 30 seconds if I want to leave flashlight on... if no response then it turns flashlight off (prevents forgetting and leaving it on).
Keyguard management. Turns on after a time delay whenever screen goes off away from home. Turns off keyguard whenever I enter key pattern (so I’m either at home in which case it’ll stay on after the first time I enter key pattern, or I’m on the road in which case it’ll turn back off when my screen goes off). Zoom widget has one letter H or A indicating whether my phone thinks I’m home or away (based on cell towers). Zoom widget has another letter H or A indicating how my keyguard is managed currently (home behavior or away behavior). Both letters change together, unless I tap the 2nd A while away to toggle it to H.. That indicates I have disabled keyguard on the road. A red permanent notification also appears. This is an original approach that I conceived/built although I drew ideas from the wiki
Profile which senses when I have a meeting on my calendar and automatically adjust my phone to “vibrate” mode so there will be no noises coming from my phone during meetings. By the way, I also forward all my incoming work emails to my Gmail account, which promptly stuffs them in a special folder. That way 1- I can quickly check incoming work emails from gmail 2 – all outlook meeting invites coming into my work email appear on my gmail calendar which is reflect in my phone calendar and triggers the profile. I actually don’t have a good working pre-meeting 10-minute reminder yet. Gmail’s doesn’t seem to work for me. Maybe I will do that in Tasker when I get a chance. This is a copy of someone else’s idea.
Every night before I go to sleep I press a button tell Tasker I’m going to sleep and in the morning when I get up I press another widget to tel Tasker I’m up. The sleep button sets Display Rotation off, sets wifi off, sets silent mode on, checks if I’m on charger and reminds me to put phone on charger. The awake button sets wifi on, sets silent mode off, syncs my google accounts (synker).
The wakeup task also sends a text message to google asking for weather in my hometown. Upon receipt of response, it populates a zoom widget on my homescreen with the weather/forecast. Also tapping that widget updates the forecast (via text). This is an original that I conceived/built.
For the weather widget and at&t data widget that both receive text messages... upon receipt of appropriate text message I use auto-shortcut to take me to the associated message. That way after I press a single back key, the incoming message notification is cleared. I could press back using built-in Tasker functions which would make it fully automatic, but that requires leaving USB debugging on, which makes me uneasy.
I have an “app” built in tasker that generates a transparent scene over everything else displaying battery level and temperature. Useful in the single situation that you are using navigation in the car and possibly charging.. keeping a close eye on battery level and temperature. This is an original that I conceived/built.
I also have a floating compass that floats over everything else. Useful with Navfree, whose display doesn’t give any clue which direction is north while navigating (the top of the map points in the direction you are traveling which may not be north). Requires SL4a and Python. This is an original that I conceived/built, with help from others on the Tasker google groups to figure out how to get the compass direction in Tasker
I have widgets to remember a parking space and launch Locus Pro to navigate back. Copied from somehwere.
I have profile to take/email photograph from front camera when someone enters the wrong unlock code. Copied from Android forums.
I have a profile to give a small tone whenever a call terminates. That is very helpful if you spend a lot of time on weak connections. You can keep talking after a call is dropped if you dont realize it. And knowing there will be a tone at end of call keeps you from asking "are you still there" during longer than normal pauses in the conversation. Copied from Android Forums. Very useful to me.
I have a widget that tells how many Tasker tasks are currently running. Tapping on it lists the tasks. Usually it doesn’t stay above zero for long. It allows me to recognize if a task has gone haywire. It complements nicely the display of active profiles which are listed in the pulldown notification. This is an original that I conceived/built.
electricpete1 said:
It's always interesting to see what others are doing.
I have that, except, it only disconnects if %WIFI !~ connect*.... prevents dropouts due to intermittent tower signal when I’m connected.
Some other stuff I have:
Battery low warnings: vibrate/notify at 40%, audible/nofify at 30%, 20%, 10% (if silent is off).
Sync newsrob news reader at 3AM every morning (while I’m sleeping). Turns wifi on beforehand and off afterwards. This takes awhile... better to take care of it while I’m sleeping.
Turn on Display Rotation for Apps that needs it (my webbrowser, youtube, etc). On exit task Display rotation is turned off (saves battery to keep it off).
At 10:50AM every morning it pops up a message asking if I want to reboot. If I do not respond, nothing happens. I think it’s good to reboot every once in awhile for general principle and this is a time when I’m likely to have my phone on my desk at work, but not using it. Also reminds me it’s almost lunch time. Also if I tap the widget it sends another text and updates the value on the widget based on response.
At 11:00 AM every morning, it sends a text message to AT&T asking for my data usage for the month. Upon receipt of the message, it is parsed and the result is posted to a widget label on my home screen so I know how much I’ve used this month. Note that 11:00AM central time is a good check, other times of day the info you receive from AT&T may not be up to date.
When data is on I place a permanent notification to remind me that it is on. Notification goes away when data is turned off.
When screen goess off and not back on within a short period, I turn data off (to save data and battery) and turn display rotate off.
Battery % display widget in my dock – update every 5 minutes while screen is on. Color changes depending on level (green 75 – 100%, blue 50-75%, yellow 25-50%, red 0-25%. This also uses Zoom widgets (works nice with Tasker)
Screen Brightness level display in my dock. Tap to pull up menu to change brightness level and adjust mode between manual and auto (auto is also based on Tasker sensing light level). If brightness level is set above 40%, the displayed brightness number turns red and I get a perfmanent notification (so I don’t leave it on high). This also uses Zoom widgets.
Flaghlight widget. Tap to start flashlight. Then it asks me every 30 seconds if I want to leave flashlight on... if no response then it turns flashlight off (prevents forgetting and leaving it on).
Keyguard management. Turns on after a time delay whenever screen goes off away from home. Turns off keyguard whenever I enter key pattern (so I’m either at home in which case it’ll stay on after the first time I enter key pattern, or I’m on the road in which case it’ll turn back off when my screen goes off). Zoom widget has one letter H or A indicating whether my phone thinks I’m home or away (based on cell towers). Zoom widget has another letter H or A indicating how my keyguard is managed currently (home behavior or away behavior). Both letters change together, unless I tap the 2nd A while away to toggle it to H.. That indicates I have disabled keyguard on the road. A red permanent notification also appears. This is an original approach that I conceived/built although I drew ideas from the wiki
Profile which senses when I have a meeting on my calendar and automatically adjust my phone to “vibrate” mode so there will be no noises coming from my phone during meetings. By the way, I also forward all my incoming work emails to my Gmail account, which promptly stuffs them in a special folder. That way 1- I can quickly check incoming work emails from gmail 2 – all outlook meeting invites coming into my work email appear on my gmail calendar which is reflect in my phone calendar and triggers the profile. I actually don’t have a good working pre-meeting 10-minute reminder yet. Gmail’s doesn’t seem to work for me. Maybe I will do that in Tasker when I get a chance. This is a copy of someone else’s idea.
Every night before I go to sleep I press a button tell Tasker I’m going to sleep and in the morning when I get up I press another widget to tel Tasker I’m up. The sleep button sets Display Rotation off, sets wifi off, sets silent mode on, checks if I’m on charger and reminds me to put phone on charger. The awake button sets wifi on, sets silent mode off, syncs my google accounts (synker).
The wakeup task also sends a text message to google asking for weather in my hometown. Upon receipt of response, it populates a zoom widget on my homescreen with the weather/forecast. Also tapping that widget updates the forecast (via text). This is an original that I conceived/built.
For the weather widget and at&t data widget that both receive text messages... upon receipt of appropriate text message I use auto-shortcut to take me to the associated message. That way after I press a single back key, the incoming message notification is cleared. I could press back using built-in Tasker functions which would make it fully automatic, but that requires leaving USB debugging on, which makes me uneasy.
I have an “app” built in tasker that generates a transparent scene over everything else displaying battery level and temperature. Useful in the single situation that you are using navigation in the car and possibly charging.. keeping a close eye on battery level and temperature. This is an original that I conceived/built.
I also have a floating compass that floats over everything else. Useful with Navfree, whose display doesn’t give any clue which direction is north while navigating (the top of the map points in the direction you are traveling which may not be north). Requires SL4a and Python. This is an original that I conceived/built, with help from others on the Tasker google groups to figure out how to get the compass direction in Tasker
I have widgets to remember a parking space and launch Locus Pro to navigate back. Copied from somehwere.
I have profile to take/email photograph from front camera when someone enters the wrong unlock code. Copied from Android forums.
I have a profile to give a small tone whenever a call terminates. That is very helpful if you spend a lot of time on weak connections. You can keep talking after a call is dropped if you dont realize it. And knowing there will be a tone at end of call keeps you from asking "are you still there" during longer than normal pauses in the conversation. Copied from Android Forums. Very useful to me.
I have a widget that tells how many Tasker tasks are currently running. Tapping on it lists the tasks. Usually it doesn’t stay above zero for long. It allows me to recognize if a task has gone haywire. It complements nicely the display of active profiles which are listed in the pulldown notification. This is an original that I conceived/built.
Click to expand...
Click to collapse
All I can say is wow
Would you mind exporting your profiles for download
Sent from my SGH-I997 using xda app-developers app
Thanks. Exporting can be a little tricky for a variety of reasons. We have choice of two formats: human-readible text (which can't import into tasker) and tasker-readable xml (which resembles gibberish to humans). And what I've described encompasses a large number of profiles, tasks, and scenes. Could export a project tab on a few if you'd like. Sometimes importing a project tab causes bizarre conflict of same-named scenes ... at least I've had that experience.
So, if you could identify one or two that you're interested in, I can work on exporting/presenting those.
Meantime, some stuff I've already organized (?) for presentation:
1 - A rambling youtube video. First five minutes is sort of beginners guide to tasker using screen-off / data off profile as example. Next 4 minutes is rambling wander through some of my profiles. Last minute for some reason I decided to show off my holo launcher dock widgets. I did not yet have my tasker/zoom-based widgets for battery% and screen brightness in place yet at the time I made that video.
http://www.youtube.com/watch?v=il5EAKkMgGI
2 - Floating battery monitor (% and temp) - intended to float over top of navigation program while navigating/charging
http://forum.xda-developers.com/showthread.php?t=1890710
By the way I have a new version of that, just haven't posted it there yet. Maybe a good job for someday.
Some general philsophy about Tasker fwiw: A lot of the things I do with tasker can be done with other programs/widgets. But I tend to think it's more efficient to minimize the number of programs in the category of widgets (which is continuously running process) and things that monitor for chage in state. They all use resources. Tasker uses resources as well but if we only use Tasker and Zoom for these types of things I think it's better. And sot of fun (that's probably the real reason). I'd have to say not more efficient in terms of time. For anyone considering buying Tasker I would mention it's not likely you're just going to grab a bunch of profiles and have them easily imported/running. There are often tweaks needed based on phone type and interaction among the various profiles.
Great video
Sent from my SGH-I997 using xda app-developers app
Notification/Ringer Volumes
I just recently picked up a Verizon S4, and I'm trying to figure out how to make tasker "link" my notification volume with my ringer volume, so they will both change using the rocker. Any help?
---------- Post added at 07:42 PM ---------- Previous post was at 07:30 PM ----------
Xxw0lfxX said:
I just recently picked up a Verizon S4, and I'm trying to figure out how to make tasker "link" my notification volume with my ringer volume, so they will both change using the rocker. Any help?
Click to expand...
Click to collapse
Sorry, I wrote this question in the wrong device thread. I didn't notice that when replying from my mobile browser
Sent from my Verizon Wireless Galaxy S4 using Tapatalk 4 beta.
1) I have created a profile that whenever i am sleeping phone goes in smart slient mode, if some vip numbers call my phone is back in ringer mode.
2) during some duration of the day my phone speaks the name of the caller instead of ringing. if not a known caller than it rings.
3) integrated it with LMT launcher and made a profile like double swipe up and all volumes are at max. double swipe down all are at minimum.
4) wave your phone and it takes a screenshot. ( you can change the context to any thing.)
5) if i missed a particular number 5 times in continuity than send him a custom message.
6) Phone says "missed call" at regular interval e.g 30 min
7) Phone says "battery full" when charged, battery low alert when below 20%.
8) Phone says "AC/USB Charging" when plugged in AC and USB respectively. and at removal is says AC|USB removed.
That sounds like a pretty neat setup you have there
Sent from my Verizon Wireless Galaxy S4 using Tapatalk 4 beta.
Inspirational quotes on home screen
I made a tasker profile to show inspirational quotes every hour on home screen.
For this I made a text file containing more than 100 quotes, each seperated by "/" for seperating and identifying an individual quote.
Then picking up any quote randomly and pushing it to "Minimalistic Text" tasker plugin.
For displaying on screen I used "Minimalistic Text".
Profile:
Profile: Insp Quotes
State: Battery Level [ From:20 To:100 ]
Time: From 06:35 Till 22:35
Enter: Insp Quotes // This is the task
Task: Insp Quotes
A1: Perform Task [ Name:Inspiration Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A2: Wait [ MS:0 Seconds:0 Minutes:0 Hours:1 Days:0 ]
A3: Goto [ Type:Action Number Number:1 Label: ]
Task: Inspiration
A1: Read File [ File:/sdcard/Download/insp.txt To Var:%Insptext ]
A2: Variable Split [ Name:%Insptext Splitter:/ Delete Baseff ]
A3: Variable Set [ Name:%Insprandom To:%Insptext(#) Do Mathsff Appendff ]
A4: Variable Randomize [ Name:%Insptextno Min:1 Max:%Insprandom ]
A5: Variable Set [ Name:%Inspsugg To:%Insptext(%Insptextno) Do Mathsff Appendff ]
A6: Minimalistic Text [ Configuration:insp = %Inspsugg Package:de.devmil.minimaltext Name:Minimalistic Text ]
I hope you will like the idea
Thanks
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
rahul70236 said:
1) I have created a profile that whenever i am sleeping phone goes in smart slient mode, if some vip numbers call my phone is back in ringer mode.
2) during some duration of the day my phone speaks the name of the caller instead of ringing. if not a known caller than it rings.
3) integrated it with LMT launcher and made a profile like double swipe up and all volumes are at max. double swipe down all are at minimum.
4) wave your phone and it takes a screenshot. ( you can change the context to any thing.)
5) if i missed a particular number 5 times in continuity than send him a custom message.
6) Phone says "missed call" at regular interval e.g 30 min
7) Phone says "battery full" when charged, battery low alert when below 20%.
8) Phone says "AC/USB Charging" when plugged in AC and USB respectively. and at removal is says AC|USB removed.
Click to expand...
Click to collapse
Hey,
Some of your profiles soun pretty awesome, is asking too much, for you to export them and share?
Thank you
need some help seeting up car profiles pls!
Hello, need some help setting up the following actions in Tasker. I use a tablet (Android 4.0.4) only for in car use and have some problems setting tasker profiles. It should be something like this:
For state power on (charging any) do the following tasks:
1. Disable keyguard
2. Issue a play command to the media app, only if music is not playing already (will come back why I need this latter on) - now I'm using Media Utilities plugin with Smart play (which should do that but it doesn't ... sometimes it sends the play even if the music is already playing, or will send the play command to the built-in media player instead to JetAudio which is the default set media player in android and in media utilities)
3. Turn GPS on, using now secure settings plugin - works great
4. Turn Bluetooth on - works
For State Power off (not charging any) do the following:
1. Turn keyguard on (enable)
2. Wait 12 seconds
3. IF keyguard on >>>
3.1 Stop media (using tasker built in media actions)
3.2 Disable GPS (secure settings plugin)
3.3 Disable bluetooth
3.4 System Lock
4 END IF
Everything works just great UNTIL ... I go in the car, turn the ignition ON ... the power ON profile starts than when I crank the engine, the car cuts the power to any accesories including car phone charger. The power off profile starts and waits 12 seconds before stoping music, gps, etc.
Than the car starts (before those 12 seconds run up) and the phone charger receives power, and the power on profile comes back. I have a higher priority for the power on profile so, the power off profile is aborted and the power on starts again ... but here the problems start: Either the music is stopped (because another play is issued from the power on profile, and the media app thinks it's pause even with smart play command from media utilities) or the default android player is started and the jet audio it's stopped because the play command is send to the build in media player app.
what I would like is
- a shure tested way for tasker to check if any media it's being played, and if it is, abort the play command (tried %MTRACK with flash but could not set it up to work, got the same problems as above)
- some other ideas how to hack, workaround, create a better flow in my profiles to avoid interruptions in those 10-15 seconds while the tablet's charger is cut off by the car, when the car;s engine starts up.
thank you

[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.

How to get most out of battery in lollipop without rooting

Hi guys
Again with a beautiful frustating topic.
Lets get going
1-- goto settings->about device->tap build number till you see "you are a beveloper now".
2-- goto developer menu and do following.
1-- off all animations
2-- turn to no background process
3-- enable usb debugging
4-- set the shortest logger value.
3-- in language and input settings close the voice input. And then switch off the corrections and animations and sound of keyboard.
4-- now goto sound and notification and mute all sort of sounds.
5-- inside display set lowest brightness and screen timeout value. turn off ambient display. Turn off any extra mods there. Use smallest font size
6-- use as much users as you can.
7-- cleane the junk and residew and catch of apps daily.
8-- in battery settings use the intelligent power saving mode when idel and battery saver both.
9-- if not using device for heavy internet use 2g insted of 3g/auto.
10-- switch off the auto rotation.
11-- NOW THE BIGGEST THING FOR PROXIMITY SENSOR. WHEN CALLINS SOMEBODY JUST AFTER DIALLING THE NUMBER MANUALLY SWITCH OFF THE SCREEN WITH POWER BUTTON AND THEN THE PROXUMITY SENSOR WILL NOT BE TRIGGERED UP. THIS WILL SAVE YOIR BATTERY DURING CALLS.
12-- when sleeping use the none interuptions mode. This will stop the viberator to work hense it will not uae battery.
13-- in the app managment swction diaable all the bloatwares and apps you dont use. They increase both battery and device performance.
14-- turn off auto brightness.
15-- set location mode to battery saving.
16-- hibernate apps using clean master to make bevice faster and battery life longer.
WITH THESE MODS A 2500MAH BATTERY WILL RUN A QUAD CORE 1GB RAM AND 5 INCH WITH 2G FOR ABOUT 12 HOURS.
AND THAT IS SOMEWHAT OK FOR LOLLIPOP WITHOUT ROOTING
keep checking for updates
Dont forget to hit thanks for this work.
Peace
Sent from my LG-X160 using XDA Free mobile app
droid_god said:
2-- goto developer menu and do following.
1-- off all animations
2-- turn to no background process
3-- enable usb debugging
4-- set the shortest logger value.
Click to expand...
Click to collapse
How will enabling usb debugging and setting a shorter logger value help battery life?
Enabling usb debugging will not but short logger will do the magic.
Writing files usually use power and processing speed.
If you write shorter you use less power.
Consider we both are on same device and i have logger size of half mb and you of 16 mb.
Its easy to understand that which one will use battery and why.
Sent from my LG-X160 using XDA Free mobile app

Categories

Resources