AdnanHodzic / auto-cpufreq

Automatic CPU speed & power optimizer for Linux
https://foolcontrol.org/?p=4603
GNU Lesser General Public License v3.0
5.85k stars 285 forks source link

[ Feature Request ] Temporarily change cpu governor #385

Open renzhamin opened 2 years ago

renzhamin commented 2 years ago

Is there any way to change cpu governor on the fly without editing /etc/auto-cpufreq.conf ? It would be fantastic to be able to change the governor temporarily, such as for current boot, regardless of whether device is running on battery or ac, for example:

auto-cpufreq --cpu-governor conservative # effective until next boot or restart of the service
auto-cpufreq --cpu-governor auto # usual setting respecting battery/ac mode

This can create other opportunities such as changing governor when certain application or a set of applications is found running

AdnanHodzic commented 2 years ago

Since I'm very limited with available time to do this myself, if you or anyone else wants to give it a try in implementing this functionality, please give it a try and contribute to the project and you will be credited for your work as part of future release.