|
|
|
@ -1,10 +1,16 @@
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
#
|
|
|
|
|
# run something like
|
|
|
|
|
# $ togglecpu_pstates.sh performance
|
|
|
|
|
#
|
|
|
|
|
# script to change the power and cpu throttle governor
|
|
|
|
|
# with new intel_pstates. use at your own risk
|
|
|
|
|
# this also uses the 'old' cpufreq-set to ensure that
|
|
|
|
|
# also the 'old' system is set the same way.
|
|
|
|
|
|
|
|
|
|
# this script ends with actively showing current frequencies.
|
|
|
|
|
# exit with ctrl+c.
|
|
|
|
|
|
|
|
|
|
if [[ -z $1 ]]; then
|
|
|
|
|
echo "error. no argument."
|
|
|
|
|
echo "use [performance|default|power]"
|
|
|
|
|