Signed-off-by: Alejandro Mery <amery@geeks.cl>
@ -0,0 +1,12 @@
#!/bin/sh
set -eu
case "${0%%*/}" in
*_performance) governor=performance;;
*_powersave) governor=powersave;;
*) exit 1;;
esac
for f in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do
sudo -- sh -c "echo $governor > '$f'"
done
@ -0,0 +1 @@
cpu_performance