Set CPU frequencies and governors

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply

User avatar
zaini47
Posts: 18
Joined: 30 Jul 2014 01:14

Re: Set CPU frequencies and governors

Post by zaini47 » 07 Sep 2014 21:37

Ended with error...

jabberwock
Posts: 2
Joined: 09 Aug 2015 07:00

Re: Set CPU frequencies and governors

Post by jabberwock » 09 Aug 2015 07:04

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.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Set CPU frequencies and governors

Post by colabi » 09 Aug 2015 16:36

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

jabberwock
Posts: 2
Joined: 09 Aug 2015 07:00

Re: Set CPU frequencies and governors

Post by jabberwock » 10 Aug 2015 05:59

Super, colabi! Thank you! Verified working!

uveequis
Posts: 5
Joined: 02 Dec 2015 13:36

Re: Set CPU frequencies and governors

Post by uveequis » 02 Dec 2015 13:39

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.

Post Reply