yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] wanfauzan:
For the last step, the variables for CPU INT 245/998 are already keyed in before.
[Android Apps and Games] nmadd:
Thanks for the tutorials. I think I'll simplify it for my tastes, but this was a very helpful place to start. Looking forward to seeing how your performance/battery pans out.
[Android Apps and Games] nmadd:
Regarding the default setup:

Charging + turning display back on + >50% battery: you go back into "CPU interactive" when I would expect to go back into "Overclocking" since it is still plugged in.
[Android Apps and Games] brandall:
Strange - the controlling variable there is %SCREEN - it should STOP if it is 'on' as shown in action 4.

Can only conclude that your %SCREEN variable isn't working correctly... Try changing it to 'doesn't match off' instead of 'matches on'.

Otherwise you'll need to set up a time based profile for every 10 seconds - a simple task with a vibrate notification of title %SCREEN. Turn the screen off, wait until it vibrates and then see what %SCREEN was populated as...

Good luck!
[Android Apps and Games] Earon:
I don't forget this, will test soon. I've got involved in a ROM beta test and had to stop with this, but wanted you to know I will check the issue and inform you :)
[Android Apps and Games] Earon:
I made a clean install and now works well, maybe i broke something by accident and didn't notice :o
[Android Apps and Games] brandall:
Glad it sorted itself out! :)
[Android Apps and Games] golightlygl:
@brandall

From all these great reports I was very excited to try this, especially since I already have Tasker working wonders on my phone.

However, something is not right with my setup. When I come out of a sleep state, Tasker can take up to 30 seconds to register the screen is on and restore my CPU-Interactive state. Since I close right down to 128k on my Desire, I can pretty well do nothing for those 30 seconds. Which means I can't even answer the phone when it rings. It does eventually recognise the state though and then change.

I run InsertCoin's ROM with a CM7 r2 HBOOT., although I doubt that makes a difference. However, it may be relevant that I have a problem with Tasker (1.1 as well) where it doesn't recognise any APPLICATION contexts. Do you think my problem is a Tasker one (Pent seems to think it's ROM related) or could it be that something is just wrong with how I've set up your profiles?
[Android Apps and Games] brandall:
Hi golightlygl, profiles are a pleasure :) Is this still happening? Let me know and we'll look for a solution.
[Android Apps and Games] golightlygl:
Yes, I've had to turn them off pending your coming to my rescue. One piece if information I didn't give you was the Tasker monitor time which is 1500 ms.

Any help you can give around be gratefully received.
[Android Apps and Games] brandall:
Ok, first thing to check is Tasker has adminstrator and accessibility rights ticked under the Android settings. Second thing is if your ROM has a custom script that controls the CPU screen on state? I don't use the ROM myself, so couldn't confirm and these things tend to change from version to version. That could be causing conflict. A quick post in your ROM thread may get an answer.

Third, check what other profiles you have that are running with the display on context - if you have others, you need to click on the tools icon on the profile and look at the properties - the 'Launched Profile Priority' will tell you how important the CPU profiles are in your setup - if you have another profile triggering on display-on and in the tasks it has a wait action of 30 seconds, there would be your answer - the other profiles would start after this (generally speaking).

Failing all of the above, I've found the best way to debug such issues as this, is with vibrate actions - slot one [+, notify, vibrate pattern] into the start of the display on task and then when you turn the screen on, see when it vibrates. If it's almost immediately, move it down an action - when it doesn't vibrate for 30 seconds, the action above may well be you issue...

Let me know your vibrate findings and we'll go from there!
[Android Apps and Games] folkg:
I want to ask an unbiased opinion here in this thread, which is better? These tasker profiles on a screen state controlling kernel script?
[Android Apps and Games] golightlygl:
OK, here are some interesting findings. I'm still trying to dig around the ROM thread to see if there's any information there.

If I place a vibrate action at the start of Display On (first action), I find that I don't get the vibrate until about 7-10 seconds after the screen comes on. This is the case if that is the only active profile. If the CPU is in sleep state (say from a Display Off execution) then that delay can be about 30 seconds implying that the delay is caused by some execution cycles rather than a "wait".

If I put Display On task as a widget, it executes immediately. I have no other tasker profiles that act on a screen on state
[Android Apps and Games] brandall:
Can you see what other profiles/tasks you have running at display on? I'm running my Deep Sleep Detective tasks and they initially took priority over the CPU tasks, meaning they had to complete prior to the CPU max being increased - as it was running at a very low frequency, this caused lag - do you have any similar profiles running using the display on/off trigger?
[Android Apps and Games] golightlygl:
No, I thought this myself but as I said above I have no other profiles relying on SCREEN ON. In fact, the delay is there if I have no TASKER profiles active whatsoever except your CPU-DISPLAY ON profile.

Very curious.
[Android Apps and Games] brandall:
Ok - let's find out if something else is changing your CPU settings for you. Can you untick the displayon cpu profile, but leave the display off active.

Then, using a display on context put in a wait time of 5 seconds, then +,alert,flash, %CPUFREQ %CPUGOV

If they are different to the values you've set in the display-off CPU profile, then you'll know something else in your ROM/Kernel is messing with the settings too...

Let me know what you find.

Also, might be an idea to increase the wait to 30 seconds to see if anything happens a while after the display is turned on...

One last thing - maybe enable the speech task to ensure the display off CPU settings are applying correctly...
[Android Apps and Games] golightlygl:
I was ahead of you there. The speech settings confirmed that DisplayOff was doing the right thing. Remember DisplayOn does eventually work, but it seems as though a load of things (don't know what) are being executed before Tasker gets to it.

I added the alerts as you suggested. They confirmed that the phone was still in POWERSAVE governor with 128000 speed after both "5" and "30" seconds. I highlight the "5" and "30" because whilst in powersave state, a 5 second wait takes about 30 seconds!
[Android Apps and Games] brandall:
Ok! Right, time to have a look at your logcat and see what's going on... I recommend an application that can just select certain elements of the log, or clear and freeze it - if you don't have such an application, I suggest System Tuner - beware if you try it, you may well spend the money upgrading to the pro version as it's a great app!

Make sure your device is running a high frequency and suitable governor and turn off the screen on/off Tasker profiles. Go to the System Tuner and click on the logs icon at the bottom - click clear - turn off the screen. Turn the screen back on after a short pause and watch the log - when it appears to be slowing down reporting data, tick the freeze box. Then click save.

Post the output to here or a pastebin.com or something.... Let me know!
[Android Apps and Games] golightlygl:
Oh dear, I might have to go off and play with System Tuner for a bit now :)

Anyway, my output is here:

http://pastebin.com/PfpRrw2m

Good luck with it and I really appreciate the help you're putting in to this.
[Android Apps and Games] brandall:
It's a great app! :)

Pleasure to try and help, I know how frustrating this stuff can be.

1) Can you turn off any additional screen/pattern lock you have other than the standard lock-screen and disable your data connection, wifi and untick use GPS satellites and background data in the Android settings location settings.

2) Re-enable the CPU profiles and see if the lag is less (you may need to add in the vibrate action and activate the speech task to know for certain)

3) If the lag remains, clear the log in System Tuner and screen off, wait for 5 seconds or so and then screen on again - freeze the log and then save and repost! (I don't know if the log appends, so maybe best to delete the log file before you do the above)

If the above doesn't change anything or tell us the problem we'll see if changing the CPU frequency/governor with locale execute makes a difference and if the lag lies with the Tasker CPU action.

Let me know!
[Android Apps and Games] golightlygl:
No joy I'm afraid.

The new log is here: http://pastebin.com/kAkdN1Vb

I delted my Locale Execute addin because I now have Corey's new Secure Settings with a Run command. But I really don't think the problem is with the governor settings. If I don't change the governor i.e. I turn off DISPLAY OFF but leave DISPLAY ON, I still get the lag before the DISPLAY ON task fires. It's as though Tasker does not become aware of the state until many CPU cycles after the screen actually comes on.
[Android Apps and Games] brandall:
Ok, I hear you

Next, can you set a vibrate pattern in the CPU settings - when you turn the display on, can you keep sliding the unlock half way and release and repeat, but not all the way so it actually unlocks - just so the screen doesn't turn off again.

Let me know if you get a vibrate before the screen is unlocked, or if it's waiting until after.... Need to be able to tell if your device is recording display on after the unlock, which looks the case from the log
[Android Apps and Games] golightlygl:
No, already tried that. I thought as you did because the timing is very similar but it's just a coincidence. If I don't unlock the lockscreen but keep the display on, I do get the vibrate and the CPU changing.
[Android Apps and Games] brandall:
Ok - Can you try the Display unlocked event context and see if that vibrates immediately after it is unlocked.

Did you definitely disable everything possible on the lock screen? - your log is very active with entries associated with it - Have you tried disabling it entirely using the secure settings plugin? Need to definitely rule this out as the issue...
[Android Apps and Games] golightlygl:
The Sense 3 lockscreen does go and fetch the weather and display it but, as the Tasker task does seem to begin before it has finished doing that.

Turning the keyguard off completely, however, does seem to speed up the process but only a little. Here is the log attached with keyguard disabled:

http://pastebin.com/JcVBm8qW

There is still a noticeable delay though which, when the CPU is coming from sleep state, keeps the unit inoperative for too long a time to be practical.

Also, when I put the keyguard back on and create a vibrate pattern on DISPLAY UNLOCKED I get the same sort of delay (after unlocking) as I do with DISPLAY ON.
[Android Apps and Games] brandall:
Can you disable the lookout security app and see if the delay remains - from the last log it looks as though Tasker received the display on broadcast in less than a second....
[Android Apps and Games] golightlygl:
No joy there either. Log is here:

http://pastebin.com/466v3kU4

Just for interest, I downloaded setCPU and ran that (with your SAY profile to check it was working). In that case, SETCPU did seem to happily recognise the screen on and screen off state and change the governor without any problem. Would this indicate that the problem is not my setup but the time that Tasker is taking to register the Screen On state. I'm afraid I don't know how to read the logs so I can't be sure myself.

I'm out for the evening now so won't be able to do any more testing tonight.
[Android Apps and Games] brandall:
I'm about out of ideas for you I'm afraid... I think we've ruled out everything it could be other than Tasker itself - If you posted it over in the Google Group I'm pretty sure the finger would be pointed at your ROM.... unless of course the behaviour is the same after flashing another...
[Android Apps and Games] golightlygl:
Thanks for all your efforts brandall. I think it is likely to be an issue with Tasker and my ROM. As I said, I already experience an issue with the application event not triggering in Tasker and this is definitely ROM related. The problem seems to be related to de-odexed ROMs.

Tasker is becoming so invaluable that it might be time for a ROM change.

But I really appreciate the time and effort you took to try and help me solve the problem.
[Android Apps and Games] Radioman62:
Absolutely beautiful scripts

Hi brandall

I have used tasker since early this year but not been in the mood since early springtime to do any new scripts.

Recently I upgraded to GB 2.3.3 and after reckon som bugs in SE stock ROM, I have now gone all the way with Rooting, custom ROM, Custom Kernel, overclock and .. I now have a new really fast and nice phone.

Then I found your text in the Tasker Wiki and then got to the source here at XDA, where I allready have put a lot of time speeding up my phone lately. :)

So now I'm also able set my CPU. I have today implemented all of your Set CPU scripts and they work beautifully so far.

I bought the application Set CPU earlier this week but now I have no use for it. :D

Thanks for sharing. It's been nice reading. some humour here and there as well.
[Android Apps and Games] TomDavisSr:
I don't even know how to do this?
[Android Apps and Games] Radioman62:
Longpress and pull it down to the bin.
[Android Apps and Games] punisher2008:
Thanks for all of your hard work brandall. I am having a few issues with adding the tasks to tasker. I keep on getting the following message whenever I try and import a new task into tasker for some of the tasks

Error: import of *profile name*.prf.xml failed:failed to import profile data.

now I was able to import a few of the tasks into tasker; CPU-DuringCall, CPU-EndCall, CPU-DeviceBoot, CPU-SayState

Is there something that I am missing?

*update*

I got it to work, just had to update tasker to a newer version
[Android Apps and Games] insomniashades:
thank you for sharing with us brandall, i am new to tasker and want to give it a try, hope this woul give my bat, extended life.:)
[Android Apps and Games] brandall:
Pleasure - any questions, let me know

Thanks for the feedback :) Keeps me motivated to do more!

Pleasure! Sorry been away for a while - glad you got it sorted
[Android Apps and Games] msidewinder:
great profiles! great job!

using your cpu control and data&sync control

with tasker 1d 15h 34min and 4% left

without tasker about 24h!
[Android Apps and Games] bingobadgo:
Brandall,

This has been the most useful thing I have found on XDA so far! I have a Desire S and I have gone from 14 hours battery life completely stock, to 2 days and 3 hours with MIUI ROM and your data profiles. I have just installed your CPU profiles so we will see how much better it gets from there!

THANK YOU!!!!!
[Android Apps and Games] Kristoffer:
I have installed your profiles and am trying this out on my Desire HD. However, I am curious as to what frequencies I should set. For example, I can overclock it all the way up to 1,8 GHz. :) Any other user with DHD in this thread? What different frequencies are you using?
[Android Apps and Games] Radioman62:
You must replace the "dummy" notification "set CPU frequencys" in every profile with the real stuff. Then you can only chose the governor and frequencys that your Kernel and CPU supports. It's all in the TUT.

If you can oveclock then use it for some special app that needs it. Set f.e. low Freq. for apps that don't need more and so on.
[Android Apps and Games] Kristoffer:
Yes, I have it all working with the default profiles, provided by OP. But they have their max at 900-1000 MHz. DHD can go much higher than that. The question is how high I *should* go. :)
[Android Apps and Games] Radioman62:
A fast googling tells me your phone as standard is maxed at 1000mHz. Thats why you can't chose any higher frequencey with the "magnifying glass" inside Tasker. Tasker fetch the possible settings from what the Kernel tells it there is.

You have to root and hack your phone to be able to OC it and then go inside Tasker and chose the new frequency you want.
[Android Apps and Games] Kristoffer:
I think you misunderstand me. My phone is rooted and I can see all the frequencies, up to and including 1.8 GHz. Right now I am using 1,3 GHz on my DisplayOn profile, for example.

What I would like to know is whether someone is using the profiles with their DHD and if they have changed the default values at all and if so, what values they are using and how it's working out for them; sort of the recommended settings for DHD, with account to both performance and battery time, if you will.
[Android Apps and Games] Radioman62:
OK :p

1,8 ghz !! Thats a lot of OC. I wouldn't dare that :)

My SE X10 is designed for 1ghz and I sometimes try at 1.28ghz and it runs really fast but also drain the battery alot faster.

You may have to be the one that do the empirical tests with your model of phone and Tasker settings.
[Android Apps and Games] brandall:
That's great news :) thanks for the feedback

WHOOP! Result! Underclocking for battery v.s overclocking for performance are the decisions you'll have to make now...

There's been some serious dev on the HD... 1.8 GHz! With so many advances with kernels and their governors and OC capabilities, I guess any shared set-ups would become quickly outdated.. It really is trial and error to suit the kernel you're using - as I'm sure you know, they usually focus on one governor so it's a matter of messing with that whilst keeping an eye on the battery or lag (if you are underclocking).

Hope you find a set-up that suits if no one can make any suggestions!
[Android Apps and Games] Kristoffer:
Yep, I will try different frequencies and note the effects. If I find someting useful, I might post it here.

Thank you for the profiles, brandall!
[Android Apps and Games] brandall:
Pleasure :) Hope you get her purring...
[Android Apps and Games] Blinkydamo:
Hi,

Started using tasker and wondering if someone could tell me how to get tasker to read the drain on the battery. Looking for something similar to current widget.

Can't seem to find the correct setting to use. Would like to be able to get visual updates of current draw via a pop up if possible.

Cheers in advance.

blinky
[Android Apps and Games] insomniashades:
i have 1 question, what the smartass governor do?its because there are explanation for all governors except for the smart ass that my kernel has.how do i what it actually did.

my phone is galaxy i5503 running cyanogen mod 7.1(GB 2.3.7 ported by subpsyke):)

---------- Post added at 06:17 PM ---------- Previous post was at 06:10 PM ----------

i have 1 question, what the smartass governor do?its because there are explanation for all governors except for the smart ass that my kernel has.how do i what it actually did.

my phone is galaxy i5503 running cyanogen mod 7.1(GB 2.3.7 ported by subpsyke):)
[Android Apps and Games] h4uw1n3:
Nice Tuto, brandall ....

im new with tasker.... but i got few questions,

i look at my available gov or something...

i just got hotplug, ondemand, userspace and performance

and the other side

i got 300 600 800 1008

is it safe to applying ur profile? or i have to made it depends on my device?
[Android Apps and Games] Daryan:
Hi brandall,

First post in this thread so just quickly want to thank you for the service to the community - this is really good stuff.

Now, on to the topic in hand. I have a SGS2 as well and you are correct in saying above that it has dual CPU. I have searched the thread and have only found this one mention of the SGS2 but that was back in May so I wondered if anybody had come across a way of dealing with the dual CPU using these profiles.

FYI - you may be interested to hear that within Tasker you have the option of selecting the CPU to apply the governor to and CPU1 doesn't have any applicable governors so I am thinking that setting the CPU0 governor will affect both.

Anybody got any better ideas?
[Android Apps and Games] Kristoffer:
Too slow for me

I have tested these profiles for a while now am sorry to say that they don't really work for me and my Desire HD with the latest LeeDroid ROM.

The battery lasts way longer than before, alright, but when in Sleep Mode and the phone is ringing, I usually cannot answer in time.

The phone is busy trying to change profile to Interactive or Smartass and while that happens the CPU is so busy that the screen doesn't react to my pushing the Answer button. :(

I have tried different CPU speeds, but it doesn't really matter how fast I set the Sleep profile CPU speed, Tasker is just too slow in reacting to Display On for me to be able to answer the phone in time.

Has anyone else had these problems?
[Android Apps and Games] Radioman62:
Yes, more or less. Tasker was sometimes very slow or didn't switch speed at allt when display was on. Phone was like syrup. Had to reboot to get it to work..... It worked for a while. :-(

I had to get rid of all this.
[Android Apps and Games] dr wits:
thanks you for all of your hard work

i love it!

just thought i'd share some of my tweaks:

i like to keep my notification bar clean... so i got rid of all of them and added a variable to throw at minimilistic text to show which profile was active (see screenshot)

i also disabled the displayoff profile when charging (re-enable it on exit task)
[Android Apps and Games] Blinkydamo:
Does anyone have a copy of

An auto brightness script like the cyanogen mod auto brightness controls?
[Android Apps and Games] Moon Shadow - NM:
Explain what you are looking for and I can either make one and upload it, or make a walk though. I have one script that upon phone ring, from sunup to sundown, it turns the brightness to 100%, then returns it to it's previous state. Let me know.

Oh, the sunup/sundown script is a heavily modified version of the one on the tasker wiki. And, I do us the sunup/sundown values for a couple of my scripts. :D
[Android Apps and Games] Blinkydamo:
I'm looking for one that will read the light level sensor and adjust the display. Also would like it to have lower levels in the morning and night.

Am output to the status bar would be good to.

Cheers
[Android Apps and Games] Moon Shadow - NM:
Okay, give me a day or so to get one programmed.
[Android Apps and Games] Blinkydamo:
Your a star mate looking forward to it.
[Android Apps and Games] TheInVisibleGoD:
Thanks for these excellent profiles! ;)

I have a question, wasn't supposed the profile CPU-DisplayON to be green (active) when I'm above 25% batt? Because it don't...

What can I be doing wrong?

Thanks in advance! ;)
[Android Apps and Games] Moon Shadow - NM:
When I'm done with it, I will start a new thread and PM you with the link. I don't want to hijack this thread anymore than I already have.
[Android Apps and Games] kyogoku:
I'm using desire s with MIUI+Tiamat. its lacks the "ondemand" governor.

is it still ok to use these profiles?

I do want to preserve my battery badly.

:)
[Android Apps and Games] dyetheskin:
i decided not to have audio statements used so i didnt enable the saystate profile however i cant figure out why the phone wont sleep,when it sleeps it comes back on and tries to load dolphin which is my default browser,it had something to do with tasker tryin to do a google search which i froze in titanium,any feedback? the first image displays what pops up when display turns itself on,the other is what i get when i go back to tasker
[Android Apps and Games] jgrimberg1979:
I am in the same boat as him, as I assume that anyone who has a dual core device is in. I would like to find out if there is a way around this.