After a lot of experimentation with setCPU & Tasker with the locale
execute plugin I found that simple is good.
Switching governors can cause significant lag as the kernel tries to
load the necessary modules etc whilst trying to execute whatever
happens to be going on with your phone at the time.
I found it a lot less laggy to stick with the stock ondemand governor
and just switch the scaling_max_freq based on various profiles.
you can get the available frequencies that your kernel supports by
entering in a shell:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
from there I created several tasks: (note: the numeric values are
specific to you device)
CPUHIGH - execute @! echo 768000 > /sys/devices/system/cpu/cpu0/
cpufreq/scaling_max_freq
- 768000 is about the highest stable frequency that my device supports
(you will need to experiment as to how high you can push your own
device)
CPUMED - execute @! echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/
scaling_max_freq
- this is the stock clock speed of my device
CPULOW - execute @! echo 248000 > /sys/devices/system/cpu/cpu0/cpufreq/
scaling_max_freq
- don't make this too low if used in a screen off/on context as when
you get an incoming call it will take forever for the phone app to
load
I'm not too sure, feel free to put me straight, but, going about it
this way could maybe slightly faster than using the script? one less
process to start?
Tasker starts the locale plugin, which executes its commands in the
shell it opens... if you then point it to another script, which opens
another shell, is that not another step in the process?
I may be well off track in my understanding, maybe someone with more
knowledge than me can shed some light....
a couple of my gems using Tasker & locale execute:
mount the sdcard automatically on usb connect without disabling access
to the sd on the phone - replaces dual mount sd widget
activating swap on boot - replaces swapper
I'd really like Tasker to be able to natively read a lot of these
configuration files rather than just being limited to the sdcard...
would this be a possibility in future Pent?
GM
On Mar 14, 2:56 pm, Mark <
boarder....@gmail.com> wrote:
> Basically, exactly the title.
> I would like to use tasker to change my CPU settings based on
> conditions (eg. Underclock when the battery is low and at night).
> I'm having problems with what to type in the Locale Execute plug-in
>
> Here is the guide I followed how:
> ''I used to use SetCPU and decided to use tasker to change the speeds:
> 1) download "Locate Execute" for localehttp://
www.appbrain.com/app/locale-execute-plug-in/de.elmicha.app.Loc...