You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/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
|