[Q] In need of app for keeping CPU active despite sleep - General Questions and Answers

hi, guys.
"wake my android pro" is an app that turns on the screen for 500ms every T period, where T is user defined. Problem is i am worried about screen wearing too soon, with all those fire ups.
Next choice is never turning the screen off. That's another component spending its life. I would rather avoid it.
"Regpon" is another app. It keeps wifi working with a wifi wakelock, less than a partial wakelock it seems. Then, anything not concerning wifi is beyond it. I have tried it but it doesn't satisfy my need [EDIT: keeps cpu active and wifi active while WLAN is connected, only. Despite its "link to wifi status" option, it always ends when wlan disconnects]
There is another app, whose name isn't coming to me right now. wakelockcontrol, maybe [EDIT: the correct name is "Wake Lock - PowerManager"]. It supposedly employs a wake lock. The user would be able to pick the depth of the wakelock. Unfotunately, it achieves even less than regpon in my device.
Finally, if you can point me to a standalone screen on switch, I'll work with that. In other words, a simple app that I can execute programatically with llama or automateit and which only turns the screen on with one tap [EDIT: Llama has this feature built in. It would be nice to get a stand alone app, though]
ty.

I found another [incomplete] solution: Settings>Developer options>Stay awake
If you think that serves the sole purpose of keeping the screen on, you are misinformed. "Stay awake" has a wakelock, probably less than partial too. I have found it as effective as Regpon, only more stable.
I am still seeking for help.
PS: It amazes me I can`t find any simple "turn device on" application. Heck, I wouldn`t know how to do it in tasker without locale, either. Llama does it pretty well, tough.

PARTIAL SOLUTION reached
I arrived at a partial solution:
0) WiFi module is always on (as in turned on, not active)
1) keepconnonapp keeps llamaapp active
2) Llama is able to detect wlan connection and turn screen on accordingly
3) Whenever wifi is connected, regponapp keeps CPU active for Skype and Csipsimple
4) If kept active both Skype and Csipsimple are able to reconnect automatically.
I consider this solution as partial because it requires interaction between many applications, which might deem it unstable.
DESCRIPTION:
keepconnon: app. Sends "packets" /) to a user defined server. Keeps wifi on when screen is off, but CPU can't be kept alive for neither Skype nor Csipsimple. CPU stays active enough for Llama to run.
regpon: app. Keeps the wifi and cpu ON (as in active, cpu is active) even when the screen is off. Details are unknown. Its wakelock is only effective when there is an active connection, as in: [if left alone] after you disconnect from wlan the device can't reconnect automatically.
Llama: app. Automation application with built in screen turn on (otherwise you should use tasker with a locale plugin)
PURPOSE
To use a tablet as a base phone. Must handle incoming calls even if screen is off. Must be able to recover from modem resets. Having in mind that screen will remain turned off most of the time. Must work in a non-rooted device.
EXPECTED SOLUTION
Run a service that keeps CPU and WiFi active under all circumstances.
I expected this to have been a lot easier, eh he. Still waiting for opinions, haha.

Related

[APP] Tasker Profiles

Didn't see a thread for this so I thought i'd start one.
Anyone use this app to automate? Been using it for a few weeks and love it.
Here are some of the profiles I've created/been using.
- Headset = when inserted, pop up a menu of apps. When removed, kill said apps and mute media volume
- Calender = silent the phone when I am in a meeting (entry = busy)
- Work = Turn down all volume/notifications while i'm at work (730-400, M-F)
- Home = When home, turn on WiFi. When i leave, turn it off
- Power = when charging, pop up a menu for which power mode: night, charge, USB, or Car. Perform tasks depending on which mode is used
- Movies = when at the movie theater, silent completely. Turn volume on when I leave
- Night = Turn on Airplane mode when sleeping, on every 15 minutes to sync in data
Anyone else have any good profiles to share??
I turn on GPS when "My Tracks" is launched...
I created a Task to turn GPS on and then launch Navigation. Then I added a shortcut to that Task w/ the Navigation to icon...
I turn my phone to vibrate when I'm near work networks...
Silence my phone and turn off data-sync from midnight-7.
I've been trying to make a profile that will shut off my WiFi when I go out of range and disconnect, but I can't get it to work properly.
I really don't know why Android will let you keep you WiFi on when you're not connected for an extended period of time.
Tasker
I use a few.
1] Kill 3G, launch wifi when at work or home. Autoconnect.
2] Set security flag when NOT at work or at home
3] If security flag is OFF, PIN is OFF on device boot.
4] On receipt of SMS, play a longish sound so I can find it.
5] If I can't find it, different SMS turns off WiFi, turns on GPS and 3G, waits for GPS, and responds to me with location via SMS. Also engages high volume setting.
6] If I don't like where it is, yet another SMS will initiate a lock sequence. This silences all alerts, sets the security flag on, and times out the screen. Then, wakes the device up with a message with my email and a nice request to return, sends me the GPS location again via SMS, and begins to popup a lock screen via Tasker every six seconds. The lock screen can be bypassed, but on reboot the device will require a PIN to access as the security flag will be set.
Now, you might say- why not use a task killer or uninstall it? I thought about that. If i'm not at home or work (within 50meters) all programs that are capable of installing, uninstalling, modding, or killing are PIN locked. NICE!
heliotropeUCSD said:
I use a few.
1] Kill 3G, launch wifi when at work or home. Autoconnect.
2] Set security flag when NOT at work or at home
3] If security flag is OFF, PIN is OFF on device boot.
4] On receipt of SMS, play a longish sound so I can find it.
5] If I can't find it, different SMS turns off WiFi, turns on GPS and 3G, waits for GPS, and responds to me with location via SMS. Also engages high volume setting.
6] If I don't like where it is, yet another SMS will initiate a lock sequence. This silences all alerts, sets the security flag on, and times out the screen. Then, wakes the device up with a message with my email and a nice request to return, sends me the GPS location again via SMS, and begins to popup a lock screen via Tasker every six seconds. The lock screen can be bypassed, but on reboot the device will require a PIN to access as the security flag will be set.
Now, you might say- why not use a task killer or uninstall it? I thought about that. If i'm not at home or work (within 50meters) all programs that are capable of installing, uninstalling, modding, or killing are PIN locked. NICE!
Click to expand...
Click to collapse
I like the security flag and locking. Great idea. I'm going to have to try and set that one up.
Currently I,
1. Turn on WiFi at home and off when I leave.
2. Turn off email checking at 11pm and back on at 5am
3. Turn on GPS when Maps is opened.
4. Launch Sirius when headset is plugged in (the only time I use the "headset" is an aux cable into my car stereo.
rmoney said:
I've been trying to make a profile that will shut off my WiFi when I go out of range and disconnect, but I can't get it to work properly.
I really don't know why Android will let you keep you WiFi on when you're not connected for an extended period of time.
Click to expand...
Click to collapse
you can either use the 'wifi near' profile, or use gps as a location and turn on/off wifi based on that location.
i prefer the gps. the time between checks can be set in tasker as well. I really don't notice the battery kill and keep wifi/gps on while i'm at home...off at work
hope it helps!
MMBosstones86 said:
you can either use the 'wifi near' profile, or use gps as a location and turn on/off wifi based on that location.
i prefer the gps. the time between checks can be set in tasker as well. I really don't notice the battery kill and keep wifi/gps on while i'm at home...off at work
hope it helps!
Click to expand...
Click to collapse
About how long do you have between GPS checks, so that I'll have a rough estimate of what doesn't kill the battery too fast?
Θmega said:
About how long do you have between GPS checks, so that I'll have a rough estimate of what doesn't kill the battery too fast?
Click to expand...
Click to collapse
pretty sure i have it to whatever tasker defaults as. Maybe a minute or two longer. GPS doesn't touch the battery unless its working (you see the satellite). Give it a shot and see how it works. If you don't like it, it can be changed easily
MMBosstones86 said:
you can either use the 'wifi near' profile, or use gps as a location and turn on/off wifi based on that location.
i prefer the gps. the time between checks can be set in tasker as well. I really don't notice the battery kill and keep wifi/gps on while i'm at home...off at work
hope it helps!
Click to expand...
Click to collapse
Yeah I was trying not to use gps, don't care about connecting to WiFi, just don't want it to still be polling for a signal when I forget to turn it off.
rmoney said:
Yeah I was trying not to use gps, don't care about connecting to WiFi, just don't want it to still be polling for a signal when I forget to turn it off.
Click to expand...
Click to collapse
if you use wifi near, it'll turn on wifi to check every few minutes.
gps is set to poll 2 minutes when the screen is on, 10 minutes when screen is off. I find no problems with it on the battery
I know, but I'm not near WiFi often enough to bother connecting. I just want it so that the occasional time I do connect that when I forget to turn it off when I leave the area it doesn't stay on for the next hour till I notice.
heliotropeUCSD said:
5] If I can't find it, different SMS turns off WiFi, turns on GPS and 3G, waits for GPS, and responds to me with location via SMS. Also engages high volume setting.
6] If I don't like where it is, yet another SMS will initiate a lock sequence. This silences all alerts, sets the security flag on, and times out the screen. Then, wakes the device up with a message with my email and a nice request to return, sends me the GPS location again via SMS, and begins to popup a lock screen via Tasker every six seconds. The lock screen can be bypassed, but on reboot the device will require a PIN to access as the security flag will be set.
Click to expand...
Click to collapse
I'm not sure how to set this up. Could you please explain how you did this?
Thanks!
I have a bunch... we need to figure out how to share the code for these...
Quiet night: Silent, wifi off, sets a variable that i am in sleepmode
Sleep mode emergency calls - if sleepmode is no, turns it off and lets it ring only on calls from certain numbers
Meeting silent: silent mode when I am in meetings
Face down silent: ****s it up if i turn it face down
Low battery: notifies me, turnjs off wifi and gps, drops brightness, switches to vibrate
Home: turn off gps, turn on wifi
No Keyguard: turns off keyguard and leaves on display when plugged in
Work: wifi off (security at work), drops volume on everything,
@mianthropic777 - something to note on your low battery profile. Vibrate actually uses much more energy than audible ringers. Might want to switch that one up
rmoney said:
I know, but I'm not near WiFi often enough to bother connecting. I just want it so that the occasional time I do connect that when I forget to turn it off when I leave the area it doesn't stay on for the next hour till I notice.
Click to expand...
Click to collapse
I made a profile to turn wifi off one minute after the phone sleeps. It's an event so the wifi will not turn itself back on. I also made a widget to disable it incase I'm using the wifi to download a file.
how do you make a profile that silences and responds to sms's at movies?
I mean how does it know when you are at a theater?
Can you make a widget to turn this mode on with a touch of the widget?
Thanks
You could easily make a widget to do this for you, or you could set a gps location for your theater to do it automatically.
I've got a few that haven't been mentioned:
- When connected to my home wifi network, keyguard pattern is disabled
- Whenever I answer an incoming call, in-call volume automatically set to 1 (I have some loud obnoxious friends)
- When phone placed face down, switches to vibrate mode and gives me a single short vibrate to confirm. Also screen timeout switched to 7 seconds (shortest possible). Exit task (when phone flipped back up) reverts to whatever ring mode it was in, and gives 2 short vibrates to confirm
- When I launch Pandora, media volume automatically set to 1
Solomente said:
I've got a few that haven't been mentioned:
- When connected to my home wifi network, keyguard pattern is disabled
Click to expand...
Click to collapse
It says keyguard pattern is not available for my phone, why?
(yes I have an Incredible)
I have it set to turn in airplane mode while im in school (high school 8-3) and check for messages every thirty minutes.
Saves the hell out of my battery. I leave around 6:30 in the morning and get home around 7:30 at night...usually have about 40% when I get home.
Sent from my Rooted Froyo Incredible using Tapatalk

[GUIDE] Tasker

Tasker is a very powerful program for Android devices that lets users have complete control over the automation of their phones.
I have seen a lot of fragmented threads about different profiles and requests for help. So I have decided to make a thread to collect profiles and advice for people from different devices to use (hopefully in an easy to understand English!). Also, I'm not a huge Tasker wiz! I just hope that everyone can contribute in one place for everyone at xda. So please send me/the contributor a PM if you see a post that is wrong.
Contents:
Post #2 - Links to submitted guides/profiles
Post #3 - Basics of Tasker
*Disclaimer*
I do not have ownership (whole or part thereof) of the Tasker Android Application. This guide is for educational purposes only. I, or any contributor to the guide, is not responsible for any faults (software or hardware) resulting from following the instructions set out in this guide.
Tasker is available from the Android Market or in trial form from the website
Admins: If this thread is unnecessary please delete and let me know, thanks.
Submission of Profiles:
If you have a profile that you would like to share, please put it into this standard form so that people can more easily understand what to do:
##(example 1)##
Profile: "Wifi at home"
Context:
Variable "HOME" [matches] "1"
Wifi-near [(SSID of home/work/school wireless network)]
Activity:
Wifi [ON]
Mobile Data [OFF]
Mobile APN Enabled [OFF]
Exit Activity (if any):
Wifi [TOGGLE]
Mobile Data [ON]
Mobile APN Enabled [ON]
##(end example 1)##
OR if you want to submit a walk-through as well:
##(example 2)##
Tap Context
Add
Application
Google Maps
...etc
##(end example 2)##
Absolute Beginners:
If you are completely new to Tasker, you need to check out the Tasker website and wiki.
The program may seem unwieldy and complicated at first for those who do not have programming experience - I certainly found it a little intimidating at first - but once you play around with it, it helps a lot. The guides on the wiki and on the website are a little confusing, so hopefully this thread will help decode some of the settings/profiles into plain English.
The wiki is worth checking out for the walkthroughs and downloadable profiles - so take your time to check it out!
duckredbeard has also pointed out that there is a google group for Tasker which is supported by the developer himself. So if you need some trouble shooting, check that out too.
Turning GPS on only for GPS apps and then turning them off again
Automagically switching wifi on and off
...slowly building more. post to contribute!
Here are some basics that every beginner needs to know (or if you just need reminding).
Profile:
Not much explanation needed. A profile contains all the required settings for a particular purpose - it is usually recommended that you give your profile a name that makes sense (e.g.: "Wifi at home" for turning on/off your wifi when you are near your house). A profile has:
Contexts
Tasks
Exit Tasks (not always)
Contexts:
A Context is basically an on/off switch for your Tasker profile - something that tells Tasker that a certain thing has happened/is happening and so Tasker should do something about it. When you tap "new" in Tasker and have given your profile a name, you will be given some choices for your Context. A Context can be:
Application (profile is activated by the opening of an app)
Time (this can be through a time interval or a set time frame)
Day (profile activation based on which day/month you are on)
Location
State (of your phone)
Event (something that has happened to the phone)
Tasks:
Once your profile has been triggered by your Context, you want it to do something - this can be switching on Wifi, or locking your phone, or turning on the GPS, launch an application, etc. You have amazing control over what your phone does! You will need to explore the different options in order to understand the kind of control you have.
Exit Tasks:
An exit task tells Tasker what to do once your Context is no longer true (e.g.: you are no longer near your wifi network). You can tell Tasker to switch things back on that you might have turned off (or vice versa). You do not need to have an exit task, but sometimes it is useful. You CANNOT have an Exit Task if your Context is an Event.
Monitoring your context:
Some contexts (like "Location") require Tasker to recognise when it is in a certain area or not - this is how Tasker does it.
To find a wifi network using the "Wifi-Near" context, Tasker switches on your wifi briefly (specified in "Menu -> Preferences -> Monitor -> Wifi Timeout Seconds") and scans the wifi networks available. After the specified amount of seconds has passed, Tasker will then switch off the Wifi scanning. Tasker begins scanning for wifi networks again after another time interval (specified in "Menu -> Preferences -> Monitor -> Wifi Scan Seconds"). Obviously the more you scan the more battery you use, but also the more responsive Tasker will be. And obviously the shorter amount of time you spend scanning for networks, the more battery you save, but you also have a lower chance of connecting to a network. Tasker can only do this wifi-scanning if you have set your Wifi to [TOGGLE] or [ON] - it will not do it if you have set your Wifi to [OFF].
GPS is a much more accurate way to find your location, but obviously much more battery intensive. Settings are much the same as the Wifi ones and are found in "Menu -> Preferences -> Monitor". Tasker can only update your GPS location if you have set your GPS to [TOGGLE] or [ON] - it will not do it if you have set your GPS to [OFF].
Network Location is the least battery intensive, but also the least accurate. Tasker checks your network location according to the time specified in "Menu -> Preferences -> Monitor -> Network Location Check Seconds".
...more to come.
--just in case--
Using GPS only when needed:
In normal use, apps like Weather, Places, Latitude, etc, only need to know which suburb/cell tower you are using. If you have your GPS switched on, then it becomes a huge waste of battery. Here is how to set it so that your GPS switches on when you use a GPS app, and then to switch it off again when you exit that app.
Profile: "GPS on"
Context:
Application
Google Maps
Locations
Navigation
...etc
Tasks:
GPS [ON]
Exit Tasks:
GPS [OFF]
Automagically switching wifi on and off
The Easy Way:
Profile: "Wifi at home"
Context:
- Wifi-Near [(Set as your work/home/school/etc SSID and MAC address - do this by long-pressing on the dialog box for Tasker to scan for you)]
Tasks:
- Wifi [ON]
Exit Tasks:
- Wifi [OFF]
This method has Tasker checking for your wifi network according to the settings you placed in:
"(Tasker Home Screen) Menu -> Preferences -> Monitor"
However, this theoretically leads to more battery usage because Tasker is always checking for your wifi network even when you are nowhere near your wifi network. You could always have it check your location using your GPS, but this is even worse for your battery. A way to reduce this battery drain is to lower your "Wifi/GPS Timeout" setting and increase your "Wifi/GPS Scan" setting. This will cause Tasker to check for wifi networks/GPS location for a smaller duration and less frequently - the downside is that Tasker will be less responsive when you enter into your wifi network (eg: if you set Tasker to check once every 10 minutes, then you might have to wait 10 minutes before Tasker kicks this profile into gear)
Slightly more complicated way:
This requires 2 profiles.
Profile 1: "Home"
Contexts:
- Cell Near [(press 'scan' to let Tasker find out what cell towers are near you)]
Tasks:
- Set variable "%HOME" = [1] (this is a variable i defined myself)
- Wifi [TOGGLE]
Exit Tasks:
- Set variable "&HOME" = [0]
- Wifi [OFF]
Profile 2: "Wifi at home"
Contexts:
- Variable "%HOME" matches [1]
- Wifi-Near [(SSID of home/work/school/etc)]
Tasks:
- Wifi [ON]
- Mobile Data [OFF]
- Mobile APN Enabled [OFF]
Exit Tasks:
- Wifi [TOGGLE]
- Mobile Data [ON]
- Mobile APN Enabled [ON]
(you can also enable Auto-Sync if you wish)
Explanation:
This method can theoretically save battery and increase the responsiveness of Tasker. It does it by only enabling the Wifi-scanning when you are within a certain cell-tower(s) area. Since checking for your location via the mobile network does not require much battery (and also since your phone is automatically doing it for your weather app anyway), you can set your Network Scan time to something quite low (I have it at 15 seconds). Once you are in the general area, then Tasker begins to look for your wifi network. Because you are not always searching for the wifi network, you can increase the frequency of the searches and also increase the duration of the search.
This does require a bit of testing - I find that it works quite well, but that could just be my area. Have a go and see what you find.
dont mean to cut down your efforts here, but: http://tasker.wikidot.com/
It will be nice to use this thread as a helpful discussion area on programming tasker as their does not to be such a place on the tasker wiki site.
Maybe you can help to achieve this state.
Is it possible to have several IF variables?
Ie.
Between hours 21:00 - :06:30 Reduce phone ringer to 2
If Location (network operator) = Home
and Power is connected
and phone has been idle for 30mins.
I have been playing with Tasker but having no programing experience it is difficult for my brain to wrap around how I would achieve this.
any hints?
TopShelf10 said:
dont mean to cut down your efforts here, but: http://tasker.wikidot.com/
Click to expand...
Click to collapse
yeah, I'm aware of the wiki - but the wiki doesn't answer all the questions and I feel it isn't organised very well (not that this would be organised any better). Plus, a forum opens things up to discussion and sharing, which I'm sure a lot of people will appreciate. feel free to contribute!
Daft Templar said:
It will be nice to use this thread as a helpful discussion area on programming tasker as their does not to be such a place on the tasker wiki site.
Maybe you can help to achieve this state.
Is it possible to have several IF variables?
Ie.
Between hours 21:00 - :06:30 Reduce phone ringer to 2
If Location (network operator) = Home
and Power is connected
and phone has been idle for 30mins.
I have been playing with Tasker but having no programing experience it is difficult for my brain to wrap around how I would achieve this.
any hints?
Click to expand...
Click to collapse
I believe that if you put all of those 'variables' into one profile and make them all contexts, then you would be able to do that. But don't forget to set your task priorities properly!
Have you tried:
Code:
Profile: (profile name)
Contexts:
- Time [21:00-06:30]
- Wifi-Near [(your home SSID)] (also see my post about how to reduce wifi-searching to increase battery life)
- Power [Any/AC/USB]
Tasks:
- Ringer Volume [Level 2, (Sound, Display if you want as well - good for debug)]
Exit Tasks:
- Ringer Volume [(whatever you like your volume level to be at)]
I am not sure how to do your "Phone Idle" condition as I have never had to use it before - I suppose that you could always set another 2 profiles:
1 to countdown to 30 minutes which then sets a variable (say, "Timer") equal to 1 and has a context that tells it to run the profile every time "Timer" = 0; the other profile would have set "Timer" = 0 every time the Display turned on. You could then add a "Timer [matches 1]" context to your original profile, and that should work.
This seems like a rather roundabout way to do it, but that's what I can think of at this time. Let me know if you would like me to post up the instructions to do that though.
If anyone else has a better idea, let me know!
I think when using tasker (particularly with lots of profiles) It is important to keep things as simple and clean as possible. Otherwise if certain tasks start becoming too dependant on other tasks it will either reduce your ability to program new tasks or Things will start going pear shaped.
For Example. If I were to program the phone with Wifi-Near to Enter silent mode It will affect any other Tasks I have going with the Wifi, Either it being Turn wifi Off Or stop searching or Even If My network goes down. I think (if possible) it would be better to use a different more non varried method of location if you know what I mean. I think it would go for any other tasks you would want to program as well. Keep things simple and very direct, It will also help you too trace back and find problems if needed later down the track as well.
Daft Templar said:
I think when using tasker (particularly with lots of profiles) It is important to keep things as simple and clean as possible. Otherwise if certain tasks start becoming too dependant on other tasks it will either reduce your ability to program new tasks or Things will start going pear shaped.
For Example. If I were to program the phone with Wifi-Near to Enter silent mode It will affect any other Tasks I have going with the Wifi, Either it being Turn wifi Off Or stop searching or Even If My network goes down. I think (if possible) it would be better to use a different more non varried method of location if you know what I mean. I think it would go for any other tasks you would want to program as well. Keep things simple and very direct, It will also help you too trace back and find problems if needed later down the track as well.
Click to expand...
Click to collapse
whilst it is good to try and keep things simple, sometimes more complex profiles lead to more efficient use of battery. Or sometimes a simple task may need certain exceptions so that it fits around our lives. Remember that Tasker should be making our phones do what we want, how we want it - we want to try and avoid the "i'll get used to it" line as much as possible.
When using complex profiles (or even profiles that may end up conflicting each other), the use of priorities for your task is very important. For example - when my "wifi at home" profile gets switched off, it turns my wifi onto [TOGGLE]. BUT if I leave the cell-tower area near my house at the same time, it tells it to turn wifi onto [OFF]. Since these are conflicting tasks, I have given my wifi [OFF] a higher priority than [TOGGLE], and so Tasker does what I want. As with any programming, sometimes convolution is unavoiable - in those instances make sure that you keep your line of logic clear (some people like to use flowcharts for programming, but i think that's a bit excessive for Tasker - each to their own though!)
is there a way to tell when music is playing?
Sent from my HTC Vision using XDA App
I want to use Tasker to switch off data/wifi when the screen is switched off, then switch data/wifi back on again when the screen is on, but only if they were previously on. Is this possible?
skulk3r said:
Tasks:
GPS [ON]
Exit Tasks:
GPS [OFF]
Click to expand...
Click to collapse
The Exit Task is unneeded. For all On/Off toggles, Tasker returns them to their original state on exit automatically.
Michealtbh said:
I want to use Tasker to switch off data/wifi when the screen is switched off, then switch data/wifi back on again when the screen is on, but only if they were previously on. Is this possible?
Click to expand...
Click to collapse
As far as I know, your phone will automatically switch off your wifi when you have your screen off (unless you installed a mod/app that forces it to stay open). I believe that Tasker (by default) will switch it off unless you have put wifi to [TOGGLE]. However, if you wanted to be completely sure, you can always use variables.
ie: you can make a profile that sets a variable (say, "WifiON") to 1. and then when you make a "screen on" event profile, make it Wifi [ON] IF WifiON [matches 1].
Izkata said:
The Exit Task is unneeded. For all On/Off toggles, Tasker returns them to their original state on exit automatically.
Click to expand...
Click to collapse
Oh wow, I must have completely missed that! Thanks for the help =] Feel free to continue to share/post guides.
sundar2012 said:
is there a way to tell when music is playing?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
I haven't found it on Tasker - but then, I don't really know Tasker as well as some other people here. You could always try to use the launching of the Music app as a context, or use the headphones plugged in event as a context?
If you haven't been to the google group for tasker, you should go NOW. It is moderated by the developer himself. He answers questions every day, including updates on what to expect on the next version. There are dozens of users on that group that can and will help you with the infinite number of things Tasker can do for you.
Head over to http://groups.google.com/group/tasker/topics?gvc=2 and read a few pages. It is likely that your questions have already been answered.
Whenever Ive previously tried Tasker it savages my battery...
All I had it doing was at a certain time turn on mobile data, open rss reader (so it updates) then play a beeping .mp3
Just wanted a flashy alarm clock to get to grips with it. but always see 25% less available battery with it installed than without...
duckredbeard said:
If you haven't been to the google group for tasker, you should go NOW. It is moderated by the developer himself. He answers questions every day, including updates on what to expect on the next version. There are dozens of users on that group that can and will help you with the infinite number of things Tasker can do for you.
Head over to http://groups.google.com/group/tasker/topics?gvc=2 and read a few pages. It is likely that your questions have already been answered.
Click to expand...
Click to collapse
oh wow. thanks for that. I'll chuck it up on the first few posts.
Would still like this to be a share-some-love discussion though!
Coedy said:
Whenever Ive previously tried Tasker it savages my battery...
All I had it doing was at a certain time turn on mobile data, open rss reader (so it updates) then play a beeping .mp3
Just wanted a flashy alarm clock to get to grips with it. but always see 25% less available battery with it installed than without...
Click to expand...
Click to collapse
what is your device? I have seen improved battery life with my HTC Desire Z - I usually only had about 30-40% battery at the end of the day with light texting, some calls and web surfing. Now i have about 60%! Although that's not completely Tasker - I do have SetCPU to underclock during screen off times.
Did you turn the mobile data back off?
Yep, had it to turn off mobile data and then enable wifi when I close the news app.
(I usually keep wifi on 24-7 if Im at home that day).
I say it took about 25% of my battery because I usually get 36 hours with everything on (except BT) and with tasker going I only got slightly over 24hours... (maybe like 26 or 28?)
Its a HTC Hero btw. Maybe ive just tuned it so that its at its optimum battery for me and my situation? I just think its weird that whenever I use Tasker within the next 2 days the battery has dived down to 20 something hours from around 35+

[Q] Power saving through Tasker

I consider our Tablet to be different than a phone, in the sense that when we turn off the screen, we dont need all the background functions still running. Currently I see TF101 deep sleep battery drain caused by many different functions running in the backend...for example the location services api.
I was thinking of creating a Tasker script that turns off as many different things as possible a few minutes after the screen is turned off.....And turns them back on when the device is unlocked.
I didn't want to spend time reinventing the wheel if this has already been done....
Anyone already try this? Results?
thanks.
I decided I was over-thinking it...and went with tasker scripts to
a) Auto Turn on Airplane mode when the screen goes off
b) Auto Turn off Airplane mode when the device is unlocked.
(This involved using the "Secure Settings" plugin app to allow Airplane mode via tasker on 4.2 JB)
So far the results have been good. i don't see those map api's being called during deep sleep.

[Q] what is sleep state?

As the title asks, what is it? I know that turning off the screen with power button is not sleeping. I believe it is the state when it takes more than a second (lag) to unlock the screen. This means that the phone was in sleep state and I woke it up. But the question remains, that what is it? How and when is it activated? What happens when the phone is sleeping? Effect on battery (I believe it's positive)? The notifications like sms and call? Is only the screen asleep or are the other functions sleeping as well? Final question, Can I activate the sleep mode with the help of an application if it helps save the battery?
Note that I don't want to use battery saver apps because I don't want anything on my phone to stop. I paid for the whole phone, "including" gps, wifi and things like that. Smartphones are for us, we are not for smartphones.
usman farhat said:
As the title asks, what is it? I know that turning off the screen with power button is not sleeping. I believe it is the state when it takes more than a second (lag) to unlock the screen. This means that the phone was in sleep state and I woke it up. But the question remains, that what is it? How and when is it activated? What happens when the phone is sleeping? Effect on battery (I believe it's positive)? The notifications like sms and call? Is only the screen asleep or are the other functions sleeping as well? Final question, Can I activate the sleep mode with the help of an application if it helps save the battery?
Note that I don't want to use battery saver apps because I don't want anything on my phone to stop. I paid for the whole phone, "including" gps, wifi and things like that. Smartphones are for us, we are not for smartphones.
Click to expand...
Click to collapse
Technically; sleep mode starts the moment the screen is switched off. With the exception of applications which can prevent the phone from fully 'sleeping'. A good and obvious example is the music application which keeps the phone awake in order to play music.
There's really nothing special about sleep mode except that the phone will execute a lot more tasks together but less frequently in order to save power, so you're still able to receive all messages, emails, calls and all notifications (from apps). Applications can also be informed about the change in power state (awake to sleep and sleep to awake) and therefore change the way they behave.
The amount of sleep time the phone gets is dependent on the apps you have installed and the amount of emails, calls and other notifications you get. There isn't a way to enable 'sleep mode' with an application as it would make little difference if your display is on. Your display is the main cause of power consumption, as is true with all smartphones.
Battery Saver apps are dangerous, by killing apps they have a negative impact on the phone. If the application is needed, the phone will restart it and add to the CPU cycles. The same goes with memory freeing apps. GPS/Bluetooth/WiFi are there for when you need them. Keeping them on when they're not needed is a waste of the phone's resources. As the more CPU cycles they use, the more power they consume.
DennisBold said:
Technically; sleep mode starts the moment the screen is switched off. With the exception of applications which can prevent the phone from fully 'sleeping'. A good and obvious example is the music application which keeps the phone awake in order to play music.
There's really nothing special about sleep mode except that the phone will execute a lot more tasks together but less frequently in order to save power, so you're still able to receive all messages, emails, calls and all notifications (from apps). Applications can also be informed about the change in power state (awake to sleep and sleep to awake) and therefore change the way they behave.
The amount of sleep time the phone gets is dependent on the apps you have installed and the amount of emails, calls and other notifications you get. There isn't a way to enable 'sleep mode' with an application as it would make little difference if your display is on. Your display is the main cause of power consumption, as is true with all smartphones.
Battery Saver apps are dangerous, by killing apps they have a negative impact on the phone. If the application is needed, the phone will restart it and add to the CPU cycles. The same goes with memory freeing apps. GPS/Bluetooth/WiFi are there for when you need them. Keeping them on when they're not needed is a waste of the phone's resources. As the more CPU cycles they use, the more power they consume.
Click to expand...
Click to collapse
That's a good explanation
I have read about term "deep sleep" while searching for this, but the explanations on the internet are not clear to me. I have understood a part of it, that this state comes when phone is at rest for too long. The phone pauses apps and their processes, except those who are downloading e.g games and only does basic tasks such as incoming communications (message, call etc.) and sync. Again, I could not find answer to when it state/mode starts.
About GPS/Bluetooth/WiFi: I said this because I had seen people talking about how they have to force otherwise unnecessary restrictions on them and thus have to worry too much to save their batteries. This is what I don't like. Technology is made to facilitate people and to make their lives easy, that's what I believe. On the other hand, I always keep bluetooth off because I need it very rarely. Well, you may have other preferences but I have to keep gps on in order to geo tag photos and to make it ready whenever I open maps etc. Wifi according to me is life blood of smartphones. So I can't live without it either.
When I had Nokia 5800 I had to turn off auto rotate because its menu took time to refresh if I turned the phone by mistake. That was the time when I came to know how bad it feels to go through the settings to turn it on when I need it urgently.

Double post, Please ignore [Q] Need app for keeping cpu active despite sleep

Double post, Please ignore ​
hi, guys.
"wake my android pro" is an app that turns on the screen for 500ms every T period, where T is user defined. Problem is i am worried about screen wearing too soon, with all those fire ups.
Next choice is never turning the screen off. That's another component spending its life. I would rather avoid it.
"Regpon" is another app. It keeps wifi working with a wifi wakelock, less than a partial wakelock it seems. Then, anything nit concerning wifi is beyond it. I have tried it but it doesn't sarisfy my need
There is another app, whose name isn't coming to me right now. wakelockcontrol, maybe. It supposedly employs a wake lock. The user would be able to pick the depth of the wakelock. Unfotunately, it achieves even less than regpon in my device.
Finally, if you can point me to a standalone screen on switch, I'll work with that. In other words, a simple app that I can execute programatically with llama or automateit and which only turns the screen on with one tap
ty.

Categories

Resources