yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] brandall:
Hi sag7392

I assume you're talking about the CPU-MaxManual and CPU-InteractiveManual profiles? These are to use when you want to override the other profiles - if you're using a high resource app for example, you may wish to overclock with MaxManual. If your device is low on battery, but you don't wish to use a low frequency or conservative governor, you would just enable InteractiveManual (and disable the others) to use your phone as normal.

I'm waiting for a stable kernel for the Desire that has the smartass governor so I can test it properly. I'm sure I'll implement it into the standard profiles as you've done.
[Android Apps and Games] sag7392:
No, I was referring to the DuringCall, EndCall, and DeviceBoot...which on this one, I have noticed a faster boot.

I get the one's you stated to leave unchecked. I've been playing around with the settings in others, to get a feel...since you provided a great starting point.

Also, just wanted to make sure I have the DisplayOn correct. On #2 I see perform Task which is what I have for screen off, is that correct. #3 is where you stated to move the edited task for DisplayON.

Again, I can't thank you enough for making this app easier to understand!
[Android Apps and Games] brandall:
Ah, I see... - DuringCall and EndCall only disable and then re-enable the CPU profiles - DisplayOn and DisplayOff were going crazy when you were calling voicemail for example - entering keys and then listening again when the proximity sensor turned the screen off once again etc etc - So they are stopped during a call.

DeviceBoot sets the 'regular' CPU settings depending on the phone's state (battery level etc) - I think the profile I uploaded has a 30 second wait, but I've removed this so it begins sooner in my current set up. Prior to this kicking in, your kernel determines the default governor and frequencies - As you mentioned smartass, I'm assuming this is what yours is defaulted to?

#2 in DisplayOn should be the BatteryLow settings - I'm sure there should be an IF statement for battery less than 25%. These settings are similar to DisplayOff, but not the same. I've had to change these as my device was sluggish with them, but no one else has reported that, so have left in the download!

Tutorials are a pleasure :) - feels good to give a little something back to the community for all the tools/resources/knowledge it's provided me with.
[Android Apps and Games] pasteyface:
Hi Brandall,

I have turned off the profiles for now, battery back to normal without them.

I'm running the InsertCoinHD ROM with Data++ on my HTC Desire and had set the profiles up exactly as the step-though. The only other Tasker profiles I use are location and time based and I disabled Automate It and CPU Tuner that had both previously been controlling WiFi and CPU respectively.

On the day when the phone battery ran out quickly I hardly used the phone, I spent about 20 mins texting and briefly checked the internet through 3G but was in meetings most of the day without using the phone

Noticed today that the SD Card was full,not sure what is writing to it but it wasn't full last week and I've not created any large files other than a regular Titanium Backup.

Hope to get this Tasker stuff sorted. i really like the options for the program and would rather use this than other programs to improve battery.
[Android Apps and Games] brandall:
I think this is actually to do with the AutoSync profile -it must have died before deleting the logcat file it was writing to the sd card. I think it was taskerlogcat.txt either directly to the storage card or in the Tasker folder. I imagine that will be the cause and the phone would be working very hard writing so much information.

Apologies that I didn't consider this - please delete it using a file explorer. An excellent free app for viewing what is taking up storage on the device or the SD card is DiskUsage.

Please let me know if this is the cause and I'll update the AutoSync thread in case this is happening to others. If not, we'll look at what else it could be.
[Android Apps and Games] torsrex:
Hi!

I just wanna say that I Love your profiles when I combined them with smartass!! :D

They are just awesome, and I really like the notification in the status-bar.

I also like the automatic overclocking while the phone is in charger, or a specific application is running.

The only problem I am having is that my phone freezes if I quickly lock and unlock the phone, but this is easy to live with.
[Android Apps and Games] brandall:
Thanks for the feedback torsrex, it's good to know.

The quick screen on/off and freeze (hopefully for only a few seconds though?) is a known issue. I'm sure you realise it's because the device is going from CPU-DisplayOn to CPU-DisplayOff to CPU-DisplayOn again in such close proximity, you may get echo errors in your Tasker log due to this.

This was a headache to work around due to waits, states, collision handling, notifications, display variables etc etc, but I've sussed it now and the next version (updated shortly (with step-through to update V3)) has a 5 second delay before sleep kicks in and if the screen is switched back on before this, the existing CPU state won't run again.... Sorted!

I think I said to someone on PM that once my device (Desire) has a stable kernel with smartass, I'll update the profiles to include this. If you have any tips in the mean time about in what states this works well for you, please let me know.

If your freezes are longer than a couple of seconds, then I may need to look more closely at smartass, because I believe it may perform frequency and voltage changes in screen off state instructed by the kernel? This may clash with CPU-DisplayOff? - If you know, let me know! Cheers.
[Android Apps and Games] boarder.2k9:
It was my question in the tasker google group which got CPU actions added to Tasker (we previously used Tasker and the locale execute plugin to run scripts to do it). Pretty awesome (although i didn't do any of the work) :D

Dunno if this is mentioned and stuff but it is worth noting that conservative is unstable on some devices, particularly the Galaxy S, the phone can sleep and not wakeup without a hard reboot. Also, all the profiles will hardly save any battery. It is very important to note this, if you use a governor such as Ondemand or conservative then the phone will inherently scale the CPU speed depending on the load. In some circumstances such as bugs within the phone (such as a certain thing overloading the cpu) then running powersave can help battery but also switching governors is said to use battery, so in actual fact more battery can be used.

Screen off profiles and such are the natural arguement for CPU scaling but please use a CPU monitoring app and tell me how often your cpu actually goes over its minimum value (unless you've got a messed up OS which is draining battery). Load on my Galaxy S never goes above 1% during screen off, therefore the phone runs at 100Mhz, why the need to limit it to 100Mhz when it does it anyway? This will not save any battery. However, overclocking based on apps is an awesome use for this (particularly emulators).

Clearly i will get trolls for his comment but this is how it works and after spending countless hours setting up profiles to save battery, there was no save if not higher drain compared to when i deleted them all.
[Android Apps and Games] brandall:
Hi boarder.2k9, your comments are welcome, this is a discussion forum after all and such discussion will only encourage us to increase our knowledge. I'm glad you started the thread in the Tasker group!

These profiles are fully customisable and each user can try different frequencies and governors until they feel it works with their device and individual usage. It opens the door for them, which was the purpose of them....

It can't be denied that the introduction and development of new governors (smartass) and different proactive kernel to kernel use of them (along with additional voltage/scaling set-ups), suggests that their correct use will have positive results. Each also provides different results. You therefore have to conclude that there is set-up that is best for each device (possibly usage dependent).

It also can't be denied that if you use these profiles along with my AutoSync profiles, your device will remain in deep sleep, with a lower frequency for longer than if you were running stock (to be extreme). I cannot see how that could possibly be detrimental to your battery usage. I'm not meaning to sound defensive, I just honestly can't!?

However, frequently changing the governors and frequencies and the load of having the Tasker profiles active may indeed prove to be counter productive in some individual/device set ups.

The incorrect use of the scaling governors can cause lag, but by their very nature and purpose I can't see how they could cause increased/unstable load?

There have been a fair few downloads of these profiles and no one has reported that their device uses more battery (save one that was to do with an error in the separate AutoSync profiles). I can only therefore conclude, that at the very worst, these profiles can only make your phone's battery consumption slightly and unnoticeably worse!!!

At the very best, they work......... :cool:

Your knowledge is welcome and if you consider that within the profiles the governors/frequencies should be changed to provide the most chance of saving battery, please do let me know!

Regards
[Android Apps and Games] brandall:
V4 Up

V4 Update Step-through

The below update prevents the quick screen off/screen on changes between CPU-DisplayOff and CPU-DisplayOn which can cause lag and echo errors. This was a headache to resolve due to too many reasons to list, but I've resolved it by adding a 5 second wait before the display off CPU settings are applied - if within that 5 seconds you turn the screen back on, the display off settings will not apply, consequently neither will the display on settings reapply. Someone needs to donate me some paracetamol...

It's achieved with an additional variable %CPUSS (CPU sleep state) which is set to a value of 1 within the 5 second wait and a value of 2 after (once the CPU screen off settings have applied). This way, the CPU display on settings know whether to activate, or they remain active and therefore don't reapply....

Tap CPU-DisplayOff

Tap on CPU CON 384/245

Select Edit

Press +

Select variable

Variable set

Name: %CPUSS

To: 1

Done

Drag to position 1

Done

Press +

Select Tasker

Wait

5 Seconds

Done

Drag to position 2

Press +

Select Tasker

Stop

Tick IF

%SCREEN

MATCHES

on (must be lower case)

Drag to position 3

Done

Press +

Select Variable

Variable set

Name: %CPUSS

To: 2

Done

Drag to position 4

Done

Tap CPU-DisplayOn

Tap on INT DISP ON

Select Edit

Press +

Select Tasker

Select STOP

Tick IF

%CPUSS

Maths: Equals

1

Drag to position 1

Done

Should you wish, you can delete the wait task from CPU-DeviceBoot

Enjoy!
[Android Apps and Games] Kr1sk0_a:
hey is there a way to tell if the profiles are workin properly because in the taskbar the tasker says that there are no active profiles but there is a icon a little orage man and a text "cpu interactive".I also use system panel which tells me that my cpu clock is 384 MHz when it should be 998 any suggestions what am i not doing right

EDIT: i've enabled saystate and it says me that my cpu is in interactive state with freq 384 it doesn't want to turn on displayon profile which is with freq 998
[Android Apps and Games] brandall:
What CPU settings did you enter in action 3 or 4 (depending if you are running V3/4) in INT DISP ON? You might need to double check you haven't accidentally entered the wrong ones from the step-through in post #2

Have you disabled any applications such as SetCPU that could be interfering with these profiles?

Let me know
[Android Apps and Games] Matrix72:
one small addition. If you put a Variable for charging in the profiles, then you come back in "overclock mode" aufter display was off while charging.

I put it into the charging profile set to 1 and 0 in exit task and i put it in display on to check if 1 and start task from charging profile and stop then.

Best Regards and thank you for the good work
[Android Apps and Games] brandall:
Good idea - I really went round the houses with trying to sort that a few pages back! I'll add to the FAQ.

My tip in return - avoid variables = 0 as can be confused with 'null' and you can't add 0 if you want to 'perform maths'. I would suggest NoCharge=1 and Charge=2.

Thanks again.
[Android Apps and Games] Matrix72:
Ah ok thats a good information. My knowledge of tasker is not that deep ;)
[Android Apps and Games] Kr1sk0_a:
my rom has a cpu controller included so the problem may come from it i'll try again tomorrow when i charged my battery but i have one more question.Can the tasker keep the device awake,because the battery usage shows me it's awake all the time
[Android Apps and Games] brandall:
The profiles are most likely clashing with the CPU controls within the ROM/Kernel then. These continuous conflicting instructions could be causing battery drain. Best to disable the profiles for now. Tasker performs tasks in the background with the device 'asleep' whenever possible. It should be a low resource application if used correctly.

Post back if you need any further guidance.
[Android Apps and Games] torsrex:
I use the governor smartass for the display on state and conservative for the screen off state.

If I turn the screen quickly on and of the phone freezes (totally). I will update to your new V4 tomorrow to see if this fixes the problem.

Oh, and by the way, my batterylife has GREATLY improved! Without tasker: 10h 21% left, with tasker: 15h 67% left..!
[Android Apps and Games] raz-or:
Superior to Ultimate Juice defender ?

Hi Brandall

Props for the great work you are doing with tasker, its the kind of app i wished there was when android first came out, but alas i dont have the skills (yet) to use it without creating boot loops or other odd behaviour on the simple toggle buttons i tried to create. Appreciate you taking the apps use to a whole new level and giving some control back to the user!

I'm currently using ultimate juice defender and whilst its easier to configure (with the helpful annotations as to what you want it to do) it doesn't appear to work all the time, a few o/s bugs perhaps,

I had a quick try at installing v3 but gave up but would still like to give v4 and your data checking profile on my dell streak which doesnt have the best battery life at present, around 10hrs use without UJD.

Have you done any battery life tests against UJD with both profiles? also there are a few other features that it has that would be great to see in your profiles, could you take a look?

Lastly, another request I'm afraid, can you simplify the install instructions a little, ie after importing the files, list and number exactly which profiles/tasks need to be edited to get this working? so we can then configure ??

many thanks for the hard work all the same even if you leave as is!
[Android Apps and Games] brandall:
That's great news on the battery (I'm going to quote you)! I assume this is combined with the AutoSync profiles too??

I hope V4 solves the problem, if not, let me know and I'll look in more detail at the smartass governor and its behaviour when the screen is turned off.
[Android Apps and Games] brandall:
Hi raz-or, your thanks are appreciated.

I understand these profiles can look a little daunting and the draw of using UJD where it's a more guided set-up. I'm going to suggest you try my AutoSync profiles first from here, they are more plug-and-go than these. Perhaps a good look through the logic and flow control they use might get you more up to speed and confident with things? <- you'd need to disable UJD whilst you test though so it doesn't conflict.

I've read about UJD, but have never used it so cannot compare - all I can say is that Tasker allows you to completely personalise your settings based on your individual taste and usage and surely that can only lead to greater savings? I'm making assumptions of course... If there's a particular feature you are after, let me know and I'll see if I can replicate.

Have another bash at following the step-through instructions in post #2 followed by the V4 update in post #3. A bit of head scratching and learning will pay dividends for making the most of Tasker in the future- if still stuck, post back :)
[Android Apps and Games] torsrex:
The wait in V4 solved the problem! :D

I'm not using your autosync profiles (but I am using 4 different tasker profiles for morning, school, afternoon and night. Wifi and autosync are on in all the profiles except at school. I also have airplane mode on at school and at night.

I should also mention that I have changed the different frequencies to fit with my desire HD.

Will check out your autosync profiles now ;)
[Android Apps and Games] pbp776:
I had this issue to. It would get stuck at 264 on my HTC hero. Screen off conservative 176 - 264. Screen on 176 to 710 Interactive. I change both Screen off and Screen on to ondemand and it has worked since than. Maybe my phone don't like Interactive setting. You may want to try change the governor to see if that fix your problem.
[Android Apps and Games] torsrex:
I just noticed that with the new V4, the cpu-DuringCall profile does not work, the phone just goes crazy (the screen off and screen on profile switches on and off all the time with 5 seconds delay).

Edit: never mind, the issue fixed itself after a few calls ;)

Edit 2: There is missing two commands in the battery low profile. One to clear the display on notification, and one to clear the Overclocking notification.
[Android Apps and Games] brandall:
Glad it worked :) Hope you can adjust the AutoSync profiles to let your phone 'deep-sleep' for a sync every 15 minutes instead perhaps? - should save you a bit more battery.

Thanks for the heads-up. It's a shame Interactive doesn't work for you... Might be worth investigating the available frequencies file when you're set to Interactive - maybe there's an error in there that you can adjust?

Any other Hero users found the same? If so, I'll update the first post.

Strange... Perhaps for some reason it wasn't triggering the %INCALL variable?

On this note, is everyone's device performing ok when a call comes in and wakes the device up? It will be stuck on DisplayOff low frequency settings for the duration of the call. This is working ok for me. Can easily be adjusted though if you think different governor/frequency is required.

Any black screen delays to report when first starts ringing? I can't test this as my current ROM suffers from this regardless.

Let me know...
[Android Apps and Games] raz-or:
have installed both data sync and cpu profiles, will report back on the battery levels tomorrow...

some of the features i've become accustomed to with JDU which may already be implemented in your profiles but a wishlist none the less, apologies if they are already catered for.

1. Location-aware WiFi Control (cell tower, not GPS location, e.g. enable WiFi only at home/work, disable it otherwise).

2. At sync time, could a check for location (cell tower) be implemented first to check for home/work networks, if found, great connect and sync, disable afterwards.

if not found, disable wifi and turn on 3g connection to sync, disable 3g after

2. A similar check for when user switches on the screen on, ie, do the connectivity check from 1. with wifi preferred when screen is manually switched on, as its normally switched on to use apps that need connection

3.Connectivity Control for Specific Apps

create a list of specific apps to have a data connection, allowing users to block the ones that do not ask first.
[Android Apps and Games] brandall:
Customising these and messing around with them, will no doubt increase your battery usage to start with. Once they are sorted to suit you, give it a couple of days and give me the good news :)

Check out this mini tutorial on how to use your preferred SSID's. I avoid cell tower/GPS searches to keep the battery usage to a minimum (although some people report they do use very little anyway).

See above, that can be done.

Again, above should cover, but these are written to perform when screen is off. No 'wake' is required. If you want to sync at a specific time when you turn the screen on, best to add a widget to the home screen that on-press kicks off the task. If you're just quickly checking the time, you would perhaps not want it to start up?

Earlier versions of AutoSync had a logcat included, so you could check which apps where requesting data. You can deal with these accordingly (uninstall/freeze). Preventing them being able to pull data isn't a massive concern if they only have a scheduled 1 minute window every hour - it's inbetween times it's a problem, which AutoSync was written to prevent!

Hope this answers all of your questions. If not, post back, otherwise, I'll look forward to your feedback!
[Android Apps and Games] torsrex:
Okay, first, when somebody calls and the phone is in screen off state, the ringetone stops when the screen on notification pop's up in the notification bar (the CPU INTERACTIVE-message), only allowing the ringetone to play for ca 3-5 seconds.

Second, I finally made my battery go dead :p

Final results (keep in mind that this is with my normal usage, which means: playing asphalt 6,dillo hills, tap tap revenge4, lot's of browsing, youtube,tapatalk,music etc):

Standard leedroid with screen off profile in setcpu:

10 hours to 15 hours

Standard leedroid without setcpu, but with brandall's tasker profiles customized by me to suit my settings (changed interactive to smartass, changed the frequenzies to fit with my desire HD and put the most resource-hungry apps/games in a profile that overclocked the phone to max):

1 day 22 hours and 52 minutes (!)

So there you go, I never thought that my phone would be able to get through almost two days with my kind of usage (which is not light), usually I would have to charge at about 5pm on the same day!

Now, my charger are gonna feel a bit lonely... :p

Thanks! :D
[Android Apps and Games] brandall:
hmmm... Do you use Tasker for your ring-tones too?

That's quite some usage!

^ That's not bad.....

WHOOP! I wish I could get that! Glad they are working for you :) Let's see if anyone can beat that uptime!?

Roll on the day when we can all go away for a long weekend and leave our chargers at home... I'm working on it!
[Android Apps and Games] torsrex:
Well, yes I use a tasker profile to switch between four different ringtones (this one: http://tasker.wikidot.com/changeringtone ).

Are currently checking out your autosync and wifi profiles. ;)
[Android Apps and Games] pbp776:
I think after I completed drain my battery and reboot of my phone solved the issue now I can use Interactive.

In addition I applied v4 update and solved the problem with screen on and off I was having sometimes.
[Android Apps and Games] brandall:
I'm wondering if with the low DisplayOff CPU settings, dialler activated and controlling the ring-tones, it's all just too much for Tasker/CPU. I'll have a think about giving the phone a boost on incoming call....

Good news on V4 working :) Glad you get to sample Interactive too, it's very snappy on my device - but naturally different device hardware, kernels, ROMs, usage etc means everyone's going to have a different ideal set-up and results. Hope it works well.
[Android Apps and Games] torsrex:
Yep, it was the ringetone changer that made the ringetone dissapear after the notification message. Removed it, and now everything is working great.

Just one more issue:

If my phone has been in the charger and I unplug it from the charger a few minutes after (1-60+) the phone crashes, and I must take out the battery to start it again (same as with the quick switching between screen on and screen off profile).