Page 1 of 1

Set CPU frequencies and governors

Posted: 08 Jul 2014 14:05
by colabi

Re: Set CPU frequencies and governors

Posted: 07 Sep 2014 21:37
by zaini47
Ended with error...

Re: Set CPU frequencies and governors

Posted: 09 Aug 2015 07:04
by jabberwock
Works for me and thank you! I've got a request, as this is way above my brain level...

Could you give an example for two flows:
1 shortcut to switch the CPU Governor to OnDemand
1 shortcut to switch the CPU Governor to PegasusQ

I'd like to automate it more so it doesn't ask. I can then just add those to my current flows.

Thank you.

Re: Set CPU frequencies and governors

Posted: 09 Aug 2015 16:36
by colabi
Trigger Shortcut > action Execute Root Command with this command:
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Trigger Shortcut > action Execute Root Command with this command:
echo "pegasusq" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

open /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors as text, to check available governors supported by your device

Re: Set CPU frequencies and governors

Posted: 10 Aug 2015 05:59
by jabberwock
Super, colabi! Thank you! Verified working!

Re: Set CPU frequencies and governors

Posted: 02 Dec 2015 13:39
by uveequis
When executing echo "powersave" root command on the proper directory I get the error:

Action not executed successfully.

Error running exec(). Command: [su] Working Directory: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor Environment: null


What does it mean? What am I doing wrong?

Thank you.

EDIT: For anyone interested, I managed to do it using Kernel Auditor app through the plugin action.