Changing cpu frequency

16 views
Skip to first unread message

ghostwheel

unread,
Sep 2, 2010, 8:42:44 AM9/2/10
to Tasker
I'd like to use tasker to change the cpu frequency of my phone
depending on various conditions (mainly depending what app is
running). My phone is rooted, so other apps can change cpu frequency.
This page: http://forum.cyanogenmod.com/topic/595-alternative-setcpu-script/
explains how to change the cpu from a script.
It mainly consists of echoing the frequency to /sys/devices/system/cpu/
cpu0/cpufreq/scaling_min_freq (and max_freq).
What I still haven't figured out is how to give a script root
permission so that when tasker calls it, it will be allowed to change
the frequency.
Did anyone do something similar?

thanks!

ghostwheel

unread,
Sep 2, 2010, 9:38:19 AM9/2/10
to Tasker
Ok, I partially figured it out. I think if, for example, a shell
script that contains
su -c "command"
then I will get a request to grant Tasker superuser permissions.

But there is another problem. Tasker looks for scripts in /sdcard/ase,
but these have now been moved to /sdcard/sl4a:
http://isnomore.net/2010/08/05/ase-now-sl4a-upgrade-and-heres-how/

And just copying everything over from sl4a to ase doesn't help.

Tasker should use sl4a....

short/y

unread,
Sep 2, 2010, 4:51:07 PM9/2/10
to Tasker
There's an Execute plugin for Locale that lets you write and execute
shell scripts. Use that with Tasker. Works great for me.
--
Tony

ghostwheel

unread,
Sep 2, 2010, 7:55:40 PM9/2/10
to Tasker
Thank you. That works! SL4A actually includes a locale plugin like
that, so I already had it installed.
(At first I tried the "locale execute plug-in" on the market, which I
couldn't find on the market...)

Reply all
Reply to author
Forward
0 new messages