yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] brandall:
You're doing me proud on the testing - I've posted to you on the other thread about a bug you've found!

I think this problem may have to do with the 'wait until Battery > 35' that is kicking around in the CPU-ChargeAny profile somewhere - I deleted yesterday as I had a feeling it was causing problems. Can you locate it, remove it and see if that solves please!?

Much appreciated.
[Android Apps and Games] torsrex:
Deleting the wait until battery >34 didn't solve the problem. I Think it has something to do with what the phone does after pulling out the charger:

Pull out charger - screen goes off - screen goes on - i see the CPU-interactive notification - phone freezes 1second after while the notification is still visible.
[Android Apps and Games] brandall:
hmmm... Ok, thanks for letting me know. I shall investigate...
[Android Apps and Games] tlxxxsracer:
wasnt sure, but does this work for GB builds? Im on MIUI and wanna give this a try
[Android Apps and Games] brandall:
GB fine. You'll just need to check that ROM/Kernel has no default CPU behaviour. I'm not familiar with MIUI. I'm AOSP. You can add speech and widgets to check nothing is clashing though.

Anyone confirm that no issues with MIUI?
[Android Apps and Games] garysquib:
EDIT

Problem resolve
[Android Apps and Games] brandall:
Hi torsrex,

When you get a moment, can you apply the planned updates in V5 detailed in post #3. I'm hoping they'll solve your rebooting issues.

Appreciated as always...
[Android Apps and Games] torsrex:
Just added the planned V5 updates, will give you a reply tomorrow (need to use them for a bit to see if it works;))
[Android Apps and Games] torsrex:
Just found another scenario that isn't covered. If you plug your phone in with the screen of, your phone will enter the screen on state, not the charging state. By the way, think the v5 updates finally fixed my phone freezes!
[Android Apps and Games] sag7392:
@brandall

I know this is a little off topic, but is there anyway that you could create a profile or point me in the right direction using Tasker to summon LED notification for sms/missed calls/email/calendar? The ROM I'm on now...Salvage-Mod-v1.2.1 has no LED notification built in and I can't find any app that will work. I really love this ROM, but I really miss not having LED notifications.

TIA!
[Android Apps and Games] brandall:
Thanks meter will increase as always...

Note: One additional update:

* Added 'perform task' INT DISP ON to action #2 in CPUDuringCall

This should give the device a boost when using the radio.

Well spotted, I've been pulling my hair out over this. With all of the different versions and eventualities and discovering how they intertwine, I think I need to look at restructuring this from the ground up. I'll add it to the list...

The above said, I've just made further changes after a good ponder!

Please delete this change:

*Add STOP IF %SCREEN 'matches' off (must be lower case) to CPU PER 998 action #1. Note - this will prevent overclocking from starting when screen is off, to which there is no point. To activate overclocking the charger should be plugged in (or unplug then replug) in a screen on state i.e. the device is actually being used and would require it. Further screen-offs (not forgetting the new 5 second delay) will also kill overclocking.

Please do the following:

* In CPU PER 998 please add Variable Set %OVRC to 2 into action #1

* In the exit task ChargeEnd please add Variable Set %OVRC to 1 into action #1

* In the exit task ChargeEnd please add Variable Set %CPUSS to 2 into action #2

* In INT DISP ON please add Wait '50ms' to action #2

* In INT DISP ON please add STOP IF %OVRC = 2 into action #3

* Clicking the tools option in CPU-DisplayOn, please set the priority to 5

* Clicking the tools option in CPU-ChargingAny, please set the priority to 6

As you pointed out, this will stop charging and display on CPU settings both kicking in when the charger is first plugged in with the screen off.

It shuts of overclocking when the screen goes off. This would only put unnecessary pressure on the CPU. Plus, the display off settings are best to recharge.

It does not allow overclocking to restart when the screen goes back on, regardless of being on charge. I feel that the user should specifically restart this if required. Overclocking is restarted by briefly unplugging and re-plugging the USB charge.

There is always CPU-MaxManual that can be used. Just realised I need to add disabling all of the other profiles when this is activated... And then re-enabling on exit task... Damn!

Glad the freezes are fixed!

I have a headache... :eek:
[Android Apps and Games] brandall:
Hi sag7392

I'd imagine you're going to be out of luck if the ROM dev hasn't added it..

That said, you never know... - Open a new task and choose Alert - there is Notify LED in there. Give it a name, select a colour leaving the rate to 500. Press 'test' inside the task and switch your screen off! Cross your fingers!

Remember, LED only works with the screen off when testing... Hope it works :(
[Android Apps and Games] seth1979:
"download the latest 'Tasker CPU Profiles STEP-THROUGH.zip' and Unzip the profiles into sdcard/Tasker/profiles - Import them individually from the menu options. There should be 12:"

Dumb question. Where is the link to download the zip?

Thanks
[Android Apps and Games] torsrex:
Third or fourth post.
[Android Apps and Games] sag7392:
No Dice...it really sucks not having LED notifications for anything :( Thanks for your help though!
[Android Apps and Games] brandall:
Damn :mad: It must be a good ROM if you're sticking with it though!
[Android Apps and Games] TheMathMan:
Any advice for frequencies for Galaxy S2?

Assume just replace min and Max and scale the rest accordingly?
[Android Apps and Games] brandall:
Nice device... Honestly, I've no idea... It has dual core doesn't it??

Therefore, my cautious advice would be to leave all of the CPU profiles off apart from the speech - and see what your CPU/kernel is doing as standard.

Install process monitor widget free from the market and set the homescreen widget to show frequency, cpu load and governor. Monitor your device's/kernels behaviour for a while and then tweak from there..... Sorry I can't be more specific for you...
[Android Apps and Games] torsrex:
Okay, think I will have to choose either random freezes or long batterylife, because I just got a blue screen (yes, bluescreen) on my phone!

Hope you can find a way to fix this.
[Android Apps and Games] pastert33:
I love these settings! One thing that I don't like is the icons in the notifications. Any harm in removing these and how would I go about it? Thanks for your hard work!
[Android Apps and Games] brandall:
Blue screen is a new one on me!? Dare I say 'not guilty'...? :(

I've finally finished V5 with a load more updates and tweaks. Thanks for testing again, I hope V5 final doesn't reproduce the blue screen!? (although it is quite novel!)

I'm going to replace the step-through instructions with actual fake entries where the CPU settings should be - so a full delete of the current version will be needed. Shouldn't take more than 3 minutes to enter them though...

Watch this space! :eek:
[Android Apps and Games] brandall:
If you go onto the Market and click on Tasker. Scroll down and select 'more by developer' - You'll get a very big list of FREE icons you can download! :) You'll have to go through the tasks and look for the 'Notify' actions. Inside those entries you need to click on the current icon to bring up more choices. I don't know if the icons are selecting themselves at the moment as I assume ones I've selected, others may not have installed?? Anyway, easy for you to personalise - I'll add to the FAQ.

Please on sharing these profiles..

EDIT: Meant to say that I'd seen on the Tasker forum that being able to use your own custom icons may be added to Tasker soon.
[Android Apps and Games] brandall:
V5 Up!

Too many changes to detail and provide a step-through from V4 I'm afraid. Should only be a 5 minute job to delete the profiles you have and install the new ones.

I seriously hope every little tiny bug has been fixed....

I trust you'll let me know!
[Android Apps and Games] torsrex:
Ehrm... I don't want to spoil the fun, but I just found a bug.

If you open the MTVar, you get lot's of missing plugin-messages. What plugin is it that we need to install?
[Android Apps and Games] Wazzy:
I was a little confused on how this works. I have the profiles and tasks setup in tasker but I didn't see how the CPU settings actually got changed just the output of text. I guess I missed that we have to add a CPU task to actually change the CPU settings.

I made that change and the CPU seems to be throttling now.

This is in version 5 of the download files.
[Android Apps and Games] Wazzy:
You need to install the Minimalistic Text App that is linked to in the OP.
[Android Apps and Games] brandall:
Damn it! I didn't think that if you didn't have minimalistic text installed it would give you errors...

Erm, asking everyone to install it is a bit much, so I'll put up a version without it in tomorrow, then people can choose...

Thanks for letting me know...
[Android Apps and Games] brandall:
Glad you got it sorted. The original step-through instructions looked time consuming and probably put people off, so I thought this was a better option... Let me know how they work out for you.
[Android Apps and Games] Wazzy:
So a question.. why didn't you just use the CPU task in the profile, rather then use the write task and write out the text?
[Android Apps and Games] brandall:
Unfortunately Tasker restricts the import of tasks that contain CPU settings, so I have to strip them out and then make it as easy as possible for others to addthem back in with their own values that suit their device/kernel
[Android Apps and Games] brandall:
V5 Minimalistic Text Removal

I DON'T WISH TO USE THE MINIMALISTIC TEXT PLUGIN!

Then delete the following 'Perform Task MTVar' entries:

CPUDispOn - Action #9

CPUDispOff - Action #14

CPUCharge - Action #10

CPUBatLow - Action #8

CPUEndCall - Action #2

CPUBatHot - Action #6

CPUManual - Action #5

CPUMaxMan - Action #5

Should only take 2 minutes...
[Android Apps and Games] torsrex:
Hehe, I actually liked the widget. ;) Also, haven't experienced any freezes yet! Maybe the freeze bug is finally sorted!
[Android Apps and Games] brandall:
I've left it in... was too lazy to take it out! :D

Glad to hear no freezes! I tested the ass off it, so this may even be the final release!

Perfection :cool:

Although I know I can rely on you to tell me otherwise.... ;)
[Android Apps and Games] bingobadgo:
thanks for putting this up, I am using your data profiles and have seen an improvement in battery life and am holding out similar hopes for this one.

I was looking through the CPUCharge task and I am sure I am missing something but hoe does it set the governor based on battery charge? All I see is a variable being set, then it going from the conservative governor to overclocking, but my little brain cant work out where the variable is being used. I am sure its me being daft but can you help me out please?

Thanks.
[Android Apps and Games] jb_alphamale:
profile for night time

I do have the tasker installed and also setcpu.What I like about setcpu is the time profile you can create it.I have one for the nigh time when I set the cpu at minimum.Can you create a profile like this?Thanks.
[Android Apps and Games] brandall:
Hi jb_alphamale,

I assume at night the screen is off and the device is 'sleeping too'? If so, then the CPU-DisplayOff profile will cover this. At any point when the screen goes off, you can set the frequency and governor to as low as you wish (see your kernel thread for guidelines and voltage scaling that may be built in). If you combine this with my data sync profiles detailed in my signature, your device should remain in deep-sleep a lot longer, doing a lot less no matter what the time of day!

Any more questions, please let me know.

Ps.If you do try these out, don't forget to disable SetCPU first.
[Android Apps and Games] brandall:
Hi bingobadgo,

There should be IF %BATT > or < 50 in the CPU tasks. The less than 50 would be to not overlock and concentrate on charging. The more than 50 would be to intentionally start overclocking with a performance governor should you wish... Turning the screen off and on again will cancel this.

To clarify, within the CPU actions you should also have 'IF' ticked:

Action #2 should be IF %BATT less than 50 (charging settings)

Action #3 should be IF %BATT greater than 50 (overclocking settings)

The created %OVRC variable is to prevent the normal display-on profiles from starting when the device is first plugged in. If the screen is allowed to go off whilst on charge it enters the sleep settings - when woken up again, it will enter display-on settings - just to avoid unnecessary overclocking...

I waffled... But hope you see what I've done...? :confused:
[Android Apps and Games] f0xy:
Anyone using this with cm7 smartass governor? If so how is it working out?

Also is tasker w/profiles less resource hungry than juice defender?

I ask this because I can change CPU settings on the fly in cm

Thank you
[Android Apps and Games] brandall:
I've tested the smartass governor and it worked fine - I would have stuck with it, but the camera didn't work on the kernel. I've not used Juice Defender, so can't say for definite, but the amount of profiles I have and the amount of messing I do with it, it still uses very little resource...

Someone said back in this post that was working fine with CM7 - I didn't realise they had added CPU control in though. I should probably check the ROM out one day, find out why it's so popular... I'm currently an AOSP fan...
[Android Apps and Games] drakoru:
Hi!

I am used to SetCPU, but everybody here seem to enjoy the battery saving with Tasker and your profiles, so I got Tasker this morning and tried to set it, following your instructions in Post 2 after reading carefully post 1.

My problem is the following : when I want to remove the Type entry and replace it with a CPU action under + > misc, I can't find CPU action, it's just nowhere.

I'm using a DHD with leedroid HD v3.0.2. I tried to look on the web for a solution, but it seems that leedroid's kernel is compatible with Tasker...

Help would be appreciated... :)
[Android Apps and Games] brandall:
Hi Drakoru,

Hmmm... that's very odd - the menus are standard regardless of the Kernel.

In the task, when you press + then select misc, down the bottom is 'All' selected? If for some reason 'actions' is defaulted, then CPU will not appear as an option. That's all I can think of... If that doesn't work, can you post a screen shot please.

For best results, you need to combine these profiles with my data/WiFi control ones. You can personalise as much as you like, but they enable the device to 'deep sleep' more often.
[Android Apps and Games] drakoru:
Thanks for your answer, but I finally found where my problem comes from :

I dowloaded Tasker from Applanet to try it before buying, and it appears that this app was buggy. When I tried to instal the one from your link in post #1 everything was fine, Ie I found the CPU entry under Misc...

Now that everything is working I get another problem (a smaller one) : in my notification bar I always have two tasker notifications :

- one that says "no activ profile"

- one that gives me the current profile (like CPU INTERACTIVE)...

You know where it comes from?
[Android Apps and Games] brandall:
Glad you got it sorted and it's working. The two icons are deliberate in the CPU profiles, so you can always tell at a glance what settings your CPU is using - when you turn the screen on, you should see the icon can change from sleep to interactive for example.

In the individual tasks under the 'notify' actions, there is a tick box 'permanent'. Uncheck this and you'll be able to dismiss them on-click - or remove them completely if you want...

I would suggest that you put up with them for a little while though, in case your device throws up any bugs - you wont be able to tell what's going on otherwise... Up to you though!
[Android Apps and Games] drakoru:
almost 24h with your profiles and it really seems that my battery life has improve...

Still, I'd like to report that sometimes when I turn my screen On, CPU Sleep stops but CPU interactive doesn't start, so I have to turn my screen Off and On again for it to start... Is there a way to fix that?

Also, I think it's a bit strange that when under profile but Interactive My Tasker notification shows it, but when I'm under Interactive it always says "no activ profile"... (hope you understand my english...)
[Android Apps and Games] brandall:
Good! Combine them with the wifi/data ones for best results!

Keep an eye on this for me over the next few days please. There's a created variable %CPUSS in action #1 of CPUDispOn that should monitor if the screen has been quickly switched on and off. If you are using the minimalistic text plugin, check the value of %CPUSS when this happens. This does happen to me occasionally too, but stopped the other major problems associated with quick screen on/off and the CPU changing that occurred. Let me know if it's a regular problem or just occasional please.

To keep resource to a minimum, these profiles (where possible) react to 'instances' - For example, an event of 'screen on' runs the screen on profile and then STOPS as the CPU frequency and governor have been changed and there is nothing else to do! The 'CPU Interactive' icon is showing, so you know you are currently using your display on profiles - but nothing is actually happening, that's why is shows 'no active profiles'.

The reason the icons remain is to alert you that something is wrong. You may not have realised that the problem you mentioned above is occurring if it hadn't been for the 'display off/cpu sleep' icon being there...

Once you are bug free you can remove the icons if you prefer!
[Android Apps and Games] 18rmiller:
(ROOTED EVO RUNNING MIKZ ROM) I'm not understanding what to do at the "insert governor and frequency here"
[Android Apps and Games] brandall:
You need to delete those entries and replace them with a CPU action that selects a suitable frequency and governor for your device and the 'state' as described in post #2.

Example settings are shown near the bottom of post #2. Make sure you have a good understanding of your kernel's default behaviour (you can do this by just enabling the speech profile and see what it does in screen off states etc) and your device's capabilities before pushing the boundaries.

Let me know if you're still stuck.
[Android Apps and Games] 18rmiller:
so, for instance, on the first edit for CPUdispON. i delete task number 6 and the push "plus" and add a new task for the goernor and frequency and the move that task to the number 6 spot?
[Android Apps and Games] brandall:
Exactly yes.

For all of the above entries, you replace them with suitable settings. If you are hesitant as to what yours should be, don't be afraid to ask.
[Android Apps and Games] 18rmiller:
ok, I think I got it now. one more question. can i just put 998,000 instead of the 998,400? or does it need the exact setting?
[Android Apps and Games] torsrex:
You can put 998,000 instead of 998,400. It does not need the exact setting, but the setting you choose (it also depends on what kernel you use) ;)
[Android Apps and Games] brandall:
Exactly as torsrex said, it depends on what scaling frequencies you have. If you press the magnifying glass next to the min/max frequency fields, it will give you a list of those available.

Obviously 998,000 is not appropriate if your CPU maxes out at 600,000! Be cautious to start with. If you experience lag in some 'states' up the frequencies a little. Most importantly, understand what your device is already doing by using the speech task and suggested widgets and also what governor your kernel focuses on as standard. This will bring you best results.

Best advice is to leave all of the profiles off. Put just the speech profile on and use the amazing process monitor widget (free from the market) to show (and hear) what your device is up to and when. You can then adapt this for best results.
[Android Apps and Games] 18rmiller:
My kernal does not have an interactive governor so i used on demand instead. it seems like my battery life is worse. coukld that be the reason?
[Android Apps and Games] brandall:
You'll find that Kernel devs may focus on one governor. It should say in the kernel thread which one this is. If it doesn't, I'd do the same as I posted above:

You'll find out what your kernel is doing by default and therefore which is the best governor to use. Let me know if this isn't working for you.
[Android Apps and Games] 18rmiller:
any suggestions for a ROM/kernel on my EVO? i would like to stick with gingerbread or aosp but cant find a ROM with or a compatible kernel with all the governers
[Android Apps and Games] 18rmiller:
It seemed like I finally found a ROM that would work (EVO Deck). after i loaded the rom i used tasker to look up the governors and it had interactive listed but when It is time for the interactive governer to be used i get a popup saying I dont have that governer. that not the only one thats like that either

Also, my status bar says CPU on demand is in use bust that task (CPU display on) is not running in tasker
[Android Apps and Games] brandall:
To clarify, you don't specifically have to have an interactive governor to use these profiles.

Some Kernels only have one governor, so you can't switch any between states such as screen off.

The Kernel I'm currently using, has interactive, ondemand, performance and conservative governors. For normal phone use (where interactive is referenced in the step-through instructions) I'm currently testing using ondemand. For screen off and low battery states, I switch to conservative.

For the Evo, you have the AOSP Tiamat kernel here. I've tested this on my desire and it worked well. I'm pretty sure Tiamat has ondemand, interactive, smartass and conservative. That should give you plenty to play with!

As I said above though, run it for a while without the profiles enable (apart from speech) watch the widgets and listen to the speech to find out the default behaviour is. You can adjust from there.

Let me know it works out ok for you.

Edit: Just checking you know you can use any AOSP kernel with any AOSP ROM? You don't have to stick to the one included or suggested. Some may give you issues and not be too compatible like the camera may not work etc... but you can flash between them without worrying too much in recovery.
[Android Apps and Games] 18rmiller:
I really was trying to use your exact setup and then start tinkering if I had to. Ill just play around with what I have. Why does it say i have all those kernels but tasker is saying i dont?

your help has been much appreciated
[Android Apps and Games] 18rmiller:
I also checked the systen folder and all of the governer are listed
[Android Apps and Games] brandall:
I'm puzzled... So you're saying when you press the magnifying glass to select the governor, Tasker brings up a list of them and you can select one without issue, but when you 'test' the task you get an error?

Can you try just setting up a new simple task with nothing but a CPU action in and see if it applies when you press test?

We'll get it sorted!
[Android Apps and Games] 18rmiller:
Seems to be working now. Even on the task you made. Is it normal that the tasker notification tells me that my "wifi at work profile" is running but not when "CPU display on" is running
[Android Apps and Games] brandall:
Glad it solved itself.

CPUDisplayOn shouldn't interfere with any other tasks... It's specific about which notifications it cancels too.. Can you explain how you've deduced one stops when the other starts?
[Android Apps and Games] 18rmiller:
I don't know if it is stopping. I don't think it is but when I pull down the bar it says wifi work but nothing about display. The notification stays up there telling me what governor is running though