Set CPU frequencies and governors
Moderator: Martin
Re: Set CPU frequencies and governors
Ended with error...
-
- Posts: 2
- Joined: 09 Aug 2015 07:00
Re: Set CPU frequencies and governors
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
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
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
-
- Posts: 2
- Joined: 09 Aug 2015 07:00
Re: Set CPU frequencies and governors
Super, colabi! Thank you! Verified working!
Re: Set CPU frequencies and governors
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.
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.